add pitch to navigation map control
This commit is contained in:
parent
51a1ee33db
commit
8fb41837cc
2 changed files with 6 additions and 2 deletions
|
@ -71,7 +71,11 @@
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
newMap.addControl(new mapboxgl.NavigationControl());
|
newMap.addControl(
|
||||||
|
new mapboxgl.NavigationControl({
|
||||||
|
visualizePitch: true
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
if (geocoder) {
|
if (geocoder) {
|
||||||
newMap.addControl(
|
newMap.addControl(
|
||||||
|
|
|
@ -12,7 +12,7 @@ title: Map controls
|
||||||
|
|
||||||
### <Diff size="16" class="inline-block" style="margin-bottom: 2px" /> Map navigation
|
### <Diff size="16" class="inline-block" style="margin-bottom: 2px" /> Map navigation
|
||||||
|
|
||||||
The controls at the top allow you to zoom in <Plus size="16" class="inline-block" style="margin-bottom: 2px" /> and out <Minus size="16" class="inline-block" style="margin-bottom: 2px" />, and to change the orientation of the map <Compass size="16" class="inline-block" style="margin-bottom: 2px" />.
|
The controls at the top allow you to zoom in <Plus size="16" class="inline-block" style="margin-bottom: 2px" /> and out <Minus size="16" class="inline-block" style="margin-bottom: 2px" />, and to change the orientation and tilt of the map <Compass size="16" class="inline-block" style="margin-bottom: 2px" />.
|
||||||
|
|
||||||
<DocsNote>
|
<DocsNote>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue