mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 08:13:57 +00:00
show scale bar on map
This commit is contained in:
@@ -22,6 +22,8 @@ const getMapExport = (geoJson) => {
|
|||||||
})
|
})
|
||||||
.addTo(map);
|
.addTo(map);
|
||||||
|
|
||||||
|
Leaflet.control.scale().addTo(map);
|
||||||
|
|
||||||
const geoJsonObj = leaflet
|
const geoJsonObj = leaflet
|
||||||
.geoJSON(${JSON.stringify(geoJson)}, {
|
.geoJSON(${JSON.stringify(geoJson)}, {
|
||||||
style: function () {
|
style: function () {
|
||||||
|
|||||||
@@ -69,6 +69,8 @@
|
|||||||
})
|
})
|
||||||
.addTo(map);
|
.addTo(map);
|
||||||
|
|
||||||
|
leaflet.control.scale().addTo(map);
|
||||||
|
|
||||||
addObjectToMap();
|
addObjectToMap();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user