add map controls
Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
239f1078a7
commit
484de1ea2d
1 changed files with 12 additions and 1 deletions
|
@ -118,7 +118,18 @@
|
||||||
maxPitch: 85,
|
maxPitch: 85,
|
||||||
style: style
|
style: style
|
||||||
});
|
});
|
||||||
map.addControl(new maplibregl.NavigationControl());
|
map.addControl(new maplibregl.NavigationControl({
|
||||||
|
visualizePitch: true,
|
||||||
|
showZoom: true,
|
||||||
|
showCompass: true
|
||||||
|
}));
|
||||||
|
{{#is_terrain}}
|
||||||
|
map.addControl(
|
||||||
|
new maplibregl.TerrainControl({
|
||||||
|
source: "terrain",
|
||||||
|
})
|
||||||
|
);
|
||||||
|
{{/is_terrain}}
|
||||||
{{^is_terrain}}
|
{{^is_terrain}}
|
||||||
var inspect = new MaplibreInspect({
|
var inspect = new MaplibreInspect({
|
||||||
showInspectMap: true,
|
showInspectMap: true,
|
||||||
|
|
Loading…
Reference in a new issue