Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Jones authored and Michael Jones committed Nov 22, 2023
1 parent ec0d7bc commit 7466287
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions public/templates/viewer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,14 @@
crs: L.CRS.EPSG3395,
continuousWorld: true,
worldCopyJump: false
});
var gl = L.maplibreGL({
style: '{{public_url}}styles/{{id}}/style.json' + keyParam
});
var gl = L.maplibreGL({
style: '{{public_url}}styles/{{id}}/style.json' + keyParam,
hash: true,
maplibreLogo: true
}).addTo(map);
map.addControl(new maplibregl.NavigationControl({
visualizePitch: true,
showZoom: true,
showCompass: true
}));
map.addControl(new MaplibreInspect({
showMapPopupOnHover: false,
showInspectMapPopupOnHover: false,
selectThreshold: 5
map.addControl(new L.Control.Zoom({
position: 'topright'
}));
} else {
var map = L.map('map', {
Expand Down

0 comments on commit 7466287

Please sign in to comment.