From deb9d734a53d9f4bcf7fbae1057ffbd3aae4654f Mon Sep 17 00:00:00 2001 From: "Stanislav Lechev [0xAF]" Date: Tue, 8 Aug 2023 04:43:53 +0300 Subject: [PATCH] fix some issues on leaflet map --- htdocs/lib/MapManager.js | 2 +- htdocs/map-leaflet.html | 7 +- htdocs/map-leaflet.js | 204 ++++++++++++++++++++++++++++++--------- 3 files changed, 162 insertions(+), 51 deletions(-) diff --git a/htdocs/lib/MapManager.js b/htdocs/lib/MapManager.js index 9ef84025..69468e70 100644 --- a/htdocs/lib/MapManager.js +++ b/htdocs/lib/MapManager.js @@ -33,7 +33,7 @@ function MapManager() { self.clock = new Clock($('#openwebrx-clock-utc')); // Clicking clock display toggles legend box on/off - $('#openwebrx-clock-utc').on('click', function() { + $('#openwebrx-clock-utc').css('cursor', 'pointer').on('click', function() { var el = document.getElementById('openwebrx-map-selectors'); if (el) { el.style.display = el.style.display === 'none'? diff --git a/htdocs/map-leaflet.html b/htdocs/map-leaflet.html index 51f44669..833e370e 100644 --- a/htdocs/map-leaflet.html +++ b/htdocs/map-leaflet.html @@ -17,12 +17,7 @@

Map

- +

Colors