aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilli <willi@jups42.de>2012-12-02 15:48:37 +0100
committerWilli <willi@jups42.de>2012-12-02 15:48:37 +0100
commit341797bc84fc0672e4eda0e79de815e7c2b123c8 (patch)
treefe5173fd659a823d95f0844aece22424a9e4fe80
parentc2e6cb5ed6e35c42659f10f7e5703798938335a6 (diff)
downloadhealth-map-341797bc84fc0672e4eda0e79de815e7c2b123c8.tar
health-map-341797bc84fc0672e4eda0e79de815e7c2b123c8.tar.gz
removed obsolete line
-rw-r--r--resources/map.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/resources/map.js b/resources/map.js
index b9edc79..6c7fbdf 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -44,7 +44,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]);
});
@@ -116,11 +115,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() {