diff --git a/public/js/map.js b/public/js/map.js index 13bd015..43cdf74 100644 --- a/public/js/map.js +++ b/public/js/map.js @@ -2,6 +2,7 @@ import { Map as MaplibreMap, NavigationControl, Popup, + ScaleControl, addProtocol, } from "/vendor/maplibre-gl/maplibre-gl.mjs"; import { GpxPanelControl } from "/js/gpx.js"; @@ -427,6 +428,7 @@ const gnssControl = new GnssControl(map); // the "GNSS" sidebar icon actually turns it on — not just whenever a // receiver happens to have a fix. See locate.js. map.addControl(new LocateControl(gnssControl), "top-left"); +map.addControl(new ScaleControl({ unit: "metric" }), "bottom-left"); // A small inset map showing where the current view sits in context — NPS's // own overview plugin (docs/nps-resources.adoc's "overview" entry, still on