0

web: fix createInfoWindow not having any effect

Fixes #1494.
This commit is contained in:
Nicolas F
2018-11-18 09:18:55 +01:00
parent 2918637539
commit bde265a8ac

View File

@@ -349,7 +349,9 @@ overviewer.util = {
m_icon = icon; m_icon = icon;
} }
let new_marker = new L.marker(latlng, {icon: m_icon, title: db.hovertext}); 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); marker_group.addLayer(new_marker);
} }
obj.marker_groups[marker_entry.displayName] = marker_group; obj.marker_groups[marker_entry.displayName] = marker_group;