@@ -20,7 +20,7 @@ function functor(x) {
20
20
}
21
21
22
22
const Map = function ( options ) {
23
- const evented = new mapboxgl . Evented ( ) ;
23
+ const evented = new maplibregl . Evented ( ) ;
24
24
this . on = evented . on ;
25
25
this . once = evented . once ;
26
26
this . _update = ( ) => { } ;
@@ -42,12 +42,12 @@ const Map = function (options) {
42
42
43
43
try {
44
44
this . center = this . options . center
45
- ? new mapboxgl . LngLat ( this . options . center . lng , this . options . center . lat )
46
- : new mapboxgl . LngLat ( 0 , 0 ) ;
45
+ ? new maplibregl . LngLat ( this . options . center . lng , this . options . center . lat )
46
+ : new maplibregl . LngLat ( 0 , 0 ) ;
47
47
} catch ( e ) {
48
48
this . center = this . options . center
49
- ? new mapboxgl . LngLat ( this . options . center [ 0 ] , this . options . center [ 1 ] )
50
- : new mapboxgl . LngLat ( 0 , 0 ) ;
49
+ ? new maplibregl . LngLat ( this . options . center [ 0 ] , this . options . center [ 1 ] )
50
+ : new maplibregl . LngLat ( 0 , 0 ) ;
51
51
}
52
52
this . resize = function ( ) { } ;
53
53
this . style = {
@@ -189,7 +189,7 @@ const Map = function (options) {
189
189
this . getBounds = function ( ) {
190
190
return (
191
191
this . bounds ||
192
- mapboxgl . LngLatBounds . convert ( [
192
+ maplibregl . LngLatBounds . convert ( [
193
193
[ - 180 , - 90 ] ,
194
194
[ 180 , 90 ]
195
195
] )
@@ -206,9 +206,9 @@ const Map = function (options) {
206
206
} ;
207
207
this . setCenter = function ( x ) {
208
208
if ( x instanceof Array ) {
209
- this . center = new mapboxgl . LngLat ( x [ 0 ] , x [ 1 ] ) ;
209
+ this . center = new maplibregl . LngLat ( x [ 0 ] , x [ 1 ] ) ;
210
210
} else if ( x instanceof Object ) {
211
- this . center = new mapboxgl . LngLat ( x . lng , x . lat ) ;
211
+ this . center = new maplibregl . LngLat ( x . lng , x . lat ) ;
212
212
}
213
213
} ;
214
214
@@ -266,7 +266,7 @@ const Map = function (options) {
266
266
} ;
267
267
} ;
268
268
this . unproject = function ( point ) {
269
- return new mapboxgl . LngLat ( - 73.9876 , 40.7661 ) ;
269
+ return new maplibregl . LngLat ( - 73.9876 , 40.7661 ) ;
270
270
} ;
271
271
272
272
this . queryRenderedFeatures = function ( pointOrBox , queryParams ) {
0 commit comments