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