UX fix
This commit is contained in:
parent
d93c13c162
commit
99db3476e8
3 changed files with 25 additions and 1 deletions
|
|
@ -310,6 +310,10 @@
|
|||
map.createPane('locatePane').style.zIndex = 650;
|
||||
L.control.zoom({ position: 'topright' }).addTo(map);
|
||||
var lastUpdatedText = (document.getElementById('last-updated') || {}).textContent || '';
|
||||
var lastUpdatedMobile = document.getElementById('last-updated-mobile');
|
||||
if (lastUpdatedMobile && lastUpdatedText) {
|
||||
lastUpdatedMobile.textContent = lastUpdatedText;
|
||||
}
|
||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
attribution: '© <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> | Données: <a href="https://regieessencequebec.ca">Régie de l\'énergie du Québec</a>' + (lastUpdatedText ? ' | ' + lastUpdatedText : ''),
|
||||
maxZoom: 18,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue