Added scale to the maps.

This commit is contained in:
pablorevilla-meshtastic
2026-05-19 09:42:02 -07:00
parent 671af01e0b
commit 29e5b36dbf
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -190,6 +190,11 @@ function applyTranslationsMap(root = document) {
var map = L.map('map');
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png',
{ maxZoom:19, attribution:'© OpenStreetMap' }).addTo(map);
L.control.scale({
position: 'bottomleft',
metric: true,
imperial: true
}).addTo(map);
// Data structures
var nodes = [], markers = {}, markerById = {}, nodeMap = new Map();
+5
View File
@@ -828,6 +828,11 @@ function initMap(){
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution:'© OpenStreetMap'
}).addTo(map);
L.control.scale({
position: 'bottomleft',
metric: true,
imperial: true
}).addTo(map);
}
async function toggleCoverage() {