[CQMap] Changed font size css to em (better for scalability)

pull/2037/head
Andreas 2023-03-16 11:01:08 +01:00
rodzic 5ac115ceee
commit 177a7f3266
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -151,9 +151,9 @@ function load_cq_map2(data) {
color: mapColor,
strokeOpacity: 0.3,
strokeWeight: 2,
}).addTo(map);
}).addTo(map);
var title = '<span class="grid-text" style="cursor: default"><font style="color: \'white\'; font-size: 24px; font-weight: 900;">' + (Number(i)+Number(1)) + '</font></span>';
var title = '<span class="grid-text" style="cursor: default"><font style="color: \'white\'; font-size: 1.5em; font-weight: 900;">' + (Number(i)+Number(1)) + '</font></span>';
var myIcon = L.divIcon({className: 'my-div-icon', html: title});
L.marker(
@ -162,7 +162,7 @@ function load_cq_map2(data) {
title: (Number(i)+Number(1)),
zIndex: 1000,
}
).addTo(map).on('click', onClick);
).addTo(map).on('click', onClick);
}
/*Legend specific*/