Add map scale widget.

This commit is contained in:
Dan Albert
2021-05-12 23:30:54 -07:00
parent 4e498e6932
commit 45f0c3c85f
2 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ const Colors = Object.freeze({
});
var map = L.map("map").setView([0, 0], 3);
L.control.scale({ maxWidth: 200 }).addTo(map);
// https://esri.github.io/esri-leaflet/api-reference/layers/basemap-layer.html
var baseLayers = {