Merge pull request #1090 from dataspun/leaflet-map-scale

show scale bar on map
This commit is contained in:
Jan Prochazka
2025-04-08 17:30:05 +02:00
committed by GitHub
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 () {