From 77083c1ac4cdf452585afe2b3d95644ad829e012 Mon Sep 17 00:00:00 2001 From: Richard Wiseman Date: Thu, 9 Mar 2023 16:55:09 +0000 Subject: [PATCH] Allow the icon URL to be only a full path (#223) --- worldmap/worldmap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index 05075bf..d305dd0 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -1793,7 +1793,7 @@ function setMarker(data) { marker = L.marker(ll, {title:data.name, icon:myMarker, draggable:drag}); labelOffset = [12,-4]; } - else if (data.icon.match(/^https?:.*$/)) { + else if (data.icon.match(/^https?:.*$|^\//)) { var sz = data.iconSize ?? 32; myMarker = L.icon({ iconUrl: data.icon,