mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add map scale widget.
This commit is contained in:
parent
4e498e6932
commit
45f0c3c85f
@ -18,7 +18,7 @@
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://unpkg.com/leaflet-groupedlayercontrol@0.6.1/dist/leaflet.groupedlayercontrol.min.css"
|
||||
crossorigin="sha384-jTaPj8/7LfdZXicEJ/SUWan4gkbYw6lXyoRUNPMmNV3fYVfBzHJK8wD6A8Djh+3A">
|
||||
crossorigin="">
|
||||
<script
|
||||
src="https://unpkg.com/leaflet-groupedlayercontrol@0.6.1/dist/leaflet.groupedlayercontrol.min.js"
|
||||
integrity="sha384-XAr1poM2RCR9/QQFki7ylrGSdmvYE0NuHghuRuxb/k9zJQA53y6qR5te5jJRZlcL"
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user