-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update maplibre and mapbix types versions and add missing options
- Loading branch information
Showing
4 changed files
with
54 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,4 @@ dist | |
# TernJS port file | ||
.tern-port | ||
docs/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { Map as MapboxGLMap } from 'mapbox-gl'; | ||
import { Map as MapLibreGLMap } from 'maplibre-gl'; | ||
import L = require('leaflet'); | ||
import { JawgPlaces } from '../'; | ||
|
||
|
||
new JawgPlaces.Input({input: '', accessToken: '<Access-Token>'}) | ||
new JawgPlaces.MapLibre({input: '', accessToken: '<Access-Token>'}) | ||
new JawgPlaces.Mapbox({input: '', accessToken: '<Access-Token>'}).attachMap(new MapboxGLMap()) | ||
new JawgPlaces.Leaflet({input: '', accessToken: '<Access-Token>', L: {}}) | ||
new JawgPlaces.Input({ input: '', accessToken: '<Access-Token>' }); | ||
new JawgPlaces.MapLibre({ input: '', accessToken: '<Access-Token>' }).attachMap(new MapLibreGLMap()); | ||
new JawgPlaces.Mapbox({ input: '', accessToken: '<Access-Token>' }).attachMap(new MapboxGLMap()); | ||
new JawgPlaces.Leaflet({ input: '', accessToken: '<Access-Token>', L }).attachMap(new L.Map('my-map')); |