aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/map.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/resources/map.js b/resources/map.js
index 4c8c9cd..482a5f7 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -47,7 +47,6 @@ $(document).ready(function() {
self.layers = L.control.layers(null, {
"Hospitals" : self.hospitalLayer
}).addTo(map);
-
_.each(filteredLayers, function(layer, i) {
self.layers.addOverlay(layer, self.hospitalAttributes[i]);
});
@@ -122,11 +121,10 @@ $(document).ready(function() {
if (isHierarchical.exec(key)) {
key = key.split(':')[1];
}
- if (!_.contains(self.hospitalAttributes, key) && isBoolean(val)) {
+ if ((!_.contains(self.hospitalAttributes, key)) && isBoolean(val)) {
self.hospitalAttributes.push(key);
}
});
- self.hospitalAttributes;
}
function geojsonLayer() {