From a06e32fc80ddb69a9c2c9be9e27677b98fc604cd Mon Sep 17 00:00:00 2001 From: Willi Date: Sat, 1 Dec 2012 18:20:22 +0100 Subject: deleted non-working style code --- resources/map.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/resources/map.js b/resources/map.js index 1b28a03..c206327 100644 --- a/resources/map.js +++ b/resources/map.js @@ -8,7 +8,6 @@ $(document).ready(function() { layers: [self.tileLayer, self.hospitalLayer] }); - $('body').bind('hospitalsfetched', renderHospitalIcon); map.on('locationfound', onLocationFound); map.on('locationerror', onLocationError); @@ -18,15 +17,7 @@ $(document).ready(function() { function geojsonLayer() { var converter = new op2geojson(); var data = converter.geojson(); - var style = { - color: "red", - weight : 50, - opacity : 0.65 - }; var layer = L.geoJson(data, { - style: function(feature) { - return style; - }, onEachFeature: function(feature, layer) { layer.bindPopup(feature.properties.name); } @@ -40,12 +31,6 @@ $(document).ready(function() { maxZoom: 18, attribution: 'Map data © OpenStreetMap contributors' }); - // L.geoJson(self.hospitalLayer, { - // pointToLayer: function(feature, latlng) { - // debugger; - // L.circleMarker(latlng); - // } - // }) } function initLayerControl() { -- cgit v1.2.3