aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilli <willi@jups42.de>2012-12-01 18:20:22 +0100
committerWilli <willi@jups42.de>2012-12-01 18:20:22 +0100
commita06e32fc80ddb69a9c2c9be9e27677b98fc604cd (patch)
treeb40ab14ae3cf206bda547b6f5150b4686e0852ab
parent0a94d892169f26c17326b7840e420530b4bb9176 (diff)
downloadhealth-map-a06e32fc80ddb69a9c2c9be9e27677b98fc604cd.tar
health-map-a06e32fc80ddb69a9c2c9be9e27677b98fc604cd.tar.gz
deleted non-working style code
-rw-r--r--resources/map.js15
1 files changed, 0 insertions, 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 &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'
});
- // L.geoJson(self.hospitalLayer, {
- // pointToLayer: function(feature, latlng) {
- // debugger;
- // L.circleMarker(latlng);
- // }
- // })
}
function initLayerControl() {