summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-09-09 03:47:02 +0200
committerJonas Smedegaard <dr@jones.dk>2015-09-09 03:47:02 +0200
commitfeaec4c31fce93ba4af9b63246ad6ab18f166b2b (patch)
tree09cffda764ef5f33d79dcddfdbd5a7966f7dc461
parent82986488864cbd7b2122d036f4001790b57b2fec (diff)
Fix popup with null type.
-rw-r--r--map.js2
1 files changed, 1 insertions, 1 deletions
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,