Skip to content

Commit 82ed426

Browse files
Update Mapbox.vue
I needed to pass `showCompass: false`. This PR enable that i.e passing navigation control options. https://www.mapbox.com/mapbox-gl-js/api/#navigationcontrol
1 parent e7783de commit 82ed426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Mapbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
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

0 commit comments

Comments
 (0)