mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add map scale widget.
This commit is contained in:
parent
4e498e6932
commit
45f0c3c85f
@ -18,7 +18,7 @@
|
|||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://unpkg.com/leaflet-groupedlayercontrol@0.6.1/dist/leaflet.groupedlayercontrol.min.css"
|
href="https://unpkg.com/leaflet-groupedlayercontrol@0.6.1/dist/leaflet.groupedlayercontrol.min.css"
|
||||||
crossorigin="sha384-jTaPj8/7LfdZXicEJ/SUWan4gkbYw6lXyoRUNPMmNV3fYVfBzHJK8wD6A8Djh+3A">
|
crossorigin="">
|
||||||
<script
|
<script
|
||||||
src="https://unpkg.com/leaflet-groupedlayercontrol@0.6.1/dist/leaflet.groupedlayercontrol.min.js"
|
src="https://unpkg.com/leaflet-groupedlayercontrol@0.6.1/dist/leaflet.groupedlayercontrol.min.js"
|
||||||
integrity="sha384-XAr1poM2RCR9/QQFki7ylrGSdmvYE0NuHghuRuxb/k9zJQA53y6qR5te5jJRZlcL"
|
integrity="sha384-XAr1poM2RCR9/QQFki7ylrGSdmvYE0NuHghuRuxb/k9zJQA53y6qR5te5jJRZlcL"
|
||||||
|
|||||||
@ -20,6 +20,7 @@ const Colors = Object.freeze({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var map = L.map("map").setView([0, 0], 3);
|
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
|
// https://esri.github.io/esri-leaflet/api-reference/layers/basemap-layer.html
|
||||||
var baseLayers = {
|
var baseLayers = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user