From c2d832ba4b16a4d300f37d4f22a7cbadc9d4851f Mon Sep 17 00:00:00 2001 From: "Stanislav Lechev [0xAF]" Date: Sat, 4 Nov 2023 02:51:35 +0200 Subject: [PATCH] fix Leaflet maps when we have custom markers in /etc/openwebrx/markers.d The "default" (unknown) marker is created with LMarker class, which lacks many methods. It is a base class. With this commit, the "default" marker will be APRS marker (LAprsMarker class), which will allow the markers to be created. --- htdocs/map-leaflet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/map-leaflet.js b/htdocs/map-leaflet.js index 9d6ed547..90354862 100644 --- a/htdocs/map-leaflet.js +++ b/htdocs/map-leaflet.js @@ -440,7 +440,7 @@ MapManager.prototype.processUpdates = function(updates) { if (!update.location.color) update.location.color = self.mman.getColor(update.mode); break; default: - marker = new LMarker(); + marker = new LAprsMarker(); break; }