show scale bar on map

This commit is contained in:
Jeremy
2025-04-07 12:48:31 -07:00
parent ea9a5b0eb0
commit 2cc81211af
2 changed files with 4 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ const getMapExport = (geoJson) => {
})
.addTo(map);
Leaflet.control.scale().addTo(map);
const geoJsonObj = leaflet
.geoJSON(${JSON.stringify(geoJson)}, {
style: function () {