From feaec4c31fce93ba4af9b63246ad6ab18f166b2b Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 9 Sep 2015 03:47:02 +0200 Subject: Fix popup with null type. --- map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map.js b/map.js index 0d59bce..22937f8 100644 --- a/map.js +++ b/map.js @@ -15,7 +15,7 @@ function typecolor(type) { else { return ('black'); }; }; function returnFeatureMarker(feature, latlng) { - var hasPopup = (feature.properties.location && feature.properties.type); + var hasPopup = (feature.properties.location && feature.properties.title); return L.circleMarker(latlng, { title: feature.properties.title, zIndexOffset: 1000*feature.properties.priority || 0, -- cgit v1.2.3