add map controls
Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
02210f0bb8
commit
4d33886f72
1 changed files with 0 additions and 8 deletions
|
@ -120,25 +120,17 @@
|
||||||
maxPitch: 85,
|
maxPitch: 85,
|
||||||
style: style
|
style: style
|
||||||
});
|
});
|
||||||
|
|
||||||
map.addControl(new maplibregl.NavigationControl({
|
map.addControl(new maplibregl.NavigationControl({
|
||||||
visualizePitch: true,
|
visualizePitch: true,
|
||||||
showZoom: true,
|
showZoom: true,
|
||||||
showCompass: true
|
showCompass: true
|
||||||
}));
|
}));
|
||||||
{{#is_terrain}}
|
{{#is_terrain}}
|
||||||
|
|
||||||
map.addControl(
|
map.addControl(
|
||||||
new maplibregl.TerrainControl({
|
new maplibregl.TerrainControl({
|
||||||
source: "terrain",
|
source: "terrain",
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
map.addControl(
|
|
||||||
new ElevationInfoControl({
|
|
||||||
url: "{{public_url}}data/{{id}}/elevation/{z}/{x}/{y}"
|
|
||||||
})
|
|
||||||
);
|
|
||||||
{{/is_terrain}}
|
{{/is_terrain}}
|
||||||
{{^is_terrain}}
|
{{^is_terrain}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue