From bde265a8ac7a27b51fd8b7764e12c7b2ccc3d90d Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Sun, 18 Nov 2018 09:18:55 +0100 Subject: [PATCH] web: fix createInfoWindow not having any effect Fixes #1494. --- overviewer_core/data/js_src/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overviewer_core/data/js_src/util.js b/overviewer_core/data/js_src/util.js index b4cced1..5a00763 100644 --- a/overviewer_core/data/js_src/util.js +++ b/overviewer_core/data/js_src/util.js @@ -349,7 +349,9 @@ overviewer.util = { m_icon = icon; } let new_marker = new L.marker(latlng, {icon: m_icon, title: db.hovertext}); - new_marker.bindPopup(db.text); + if (marker_entry.createInfoWindow) { + new_marker.bindPopup(db.text); + } marker_group.addLayer(new_marker); } obj.marker_groups[marker_entry.displayName] = marker_group;