aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilli <willi@jups42.de>2012-12-02 14:15:54 +0100
committerWilli <willi@jups42.de>2012-12-02 14:15:54 +0100
commit4f424e6c73b6b44639a333dcd14851397ddd5712 (patch)
tree434331bc5876cb014acc7bbde799252b8a03b0d4
parentaebdba9aeb439074c7ad555a3d16f7047fe44a91 (diff)
downloadhealth-map-4f424e6c73b6b44639a333dcd14851397ddd5712.tar
health-map-4f424e6c73b6b44639a333dcd14851397ddd5712.tar.gz
removed breakpoint, again tried to set style
-rw-r--r--resources/map.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/resources/map.js b/resources/map.js
index 592eae1..cebadc7 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -29,12 +29,15 @@ $(document).ready(function() {
function addHospitalLayer(){
var filteredLayers = _.map(self.hospitalAttributes, function (attr) {
return L.geoJson(self.hospitals, {
- onEachFeature: function(feature, layer) {
- layer.bindPopup(self.popupTemplate({ properties: feature.properties }));
- },
- filter: function(feature, layer) {
- return _.contains(_.keys(feature.properties), attr);
- }
+ // style: function (feature) {
+ // return {color: 'red'};
+ // },
+ onEachFeature: function(feature, layer) {
+ layer.bindPopup(self.popupTemplate({ properties: feature.properties }));
+ },
+ filter: function(feature, layer) {
+ return _.contains(_.keys(feature.properties), attr);
+ }
});
});
@@ -42,7 +45,6 @@ $(document).ready(function() {
"Hospitals" : self.hospitalLayer
}).addTo(map);
- debugger;
_.each(filteredLayers, function(layer, i) {
self.layers.addOverlay(layer, self.hospitalAttributes[i]);
});