File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ exports.default = {
401401
402402 //Nav Control
403403 if ( this . navControl . show ) {
404- var nav = new mapboxgl . NavigationControl ( ) ;
404+ var nav = new mapboxgl . NavigationControl ( this . navControl . options ) ;
405405 map . addControl ( nav , this . navControl . position ) ;
406406 }
407407
Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ exports.default = {
444444
445445 //Nav Control
446446 if ( this . navControl . show ) {
447- var nav = new mapboxgl . NavigationControl ( ) ;
447+ var nav = new mapboxgl . NavigationControl ( this . navControl . options ) ;
448448 map . addControl ( nav , this . navControl . position ) ;
449449 }
450450
Original file line number Diff line number Diff line change 77 < meta name ="description " content ="A Vue JS component for Mapbox GL ">
88 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
99
10- < script src ='https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.2 /mapbox-gl.js '> </ script >
11- < script src ='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.0.0 /mapbox-gl-draw.js '> </ script >
12- < link href ='https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.2 /mapbox-gl.css ' rel ='stylesheet ' />
13- < link rel ='stylesheet ' href ='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v0.19.0 /mapbox-gl-draw.css ' type ='text/css ' />
10+ < script src ='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0 /mapbox-gl.js '> </ script >
11+ < script src ='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.0.9 /mapbox-gl-draw.js '> </ script >
12+ < link href ='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0 /mapbox-gl.css ' rel ='stylesheet ' />
13+ < link rel ='stylesheet ' href ='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.0.9 /mapbox-gl-draw.css ' type ='text/css ' />
1414 < style >
1515 # map {
1616 width : 100% ;
2121 < body >
2222 < div id ="app ">
2323 < mapbox
24- access-token ="your access token "
24+ access-token ="***REMOVED*** "
2525 :map-options ="{
2626 style: 'mapbox://styles/mapbox/light-v9',
2727 center: [-96, 37.8],
Original file line number Diff line number Diff line change 308308 addControls (map ) {
309309 // Nav Control
310310 if (this .navControl .show ) {
311- const nav = new mapboxgl.NavigationControl ();
311+ const nav = new mapboxgl.NavigationControl (this . navControl . options );
312312 map .addControl (nav, this .navControl .position );
313313 }
314314
You can’t perform that action at this time.
0 commit comments