diff --git a/index.html b/index.html index 8925e28..70582ce 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ /// var openTopoMap = L.tileLayer("http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png", { minZoom: 12, - maxZoom: 16, + maxZoom: 17, attribution: 'Map data © OpenStreetMap contributors, ' + 'CC-BY-SA, ' + 'Kartendarstellung: © OpenTopoMap' @@ -54,13 +54,13 @@ var osmMapnik = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { minZoom: 12, - maxZoom: 16, + maxZoom: 19, attribution: 'Map data © OpenStreetMap contributors' }); var osmMapnikBlackWhite = L.tileLayer("http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png", { minZoom: 12, - maxZoom: 16, + maxZoom: 18, attribution: 'Map data © OpenStreetMap contributors' }); @@ -83,7 +83,7 @@ "bench": benchs, "hunting stand": huntingstands, "entrance (cave, adit)": entrances, - "surveillance": surveillances, + "surveillance camera": surveillances, "advertising": advertising, "traffic sign": trafficsign }; @@ -105,6 +105,7 @@ var debug = false; var osmIds = {}; var defaultRadius = 150; + var cameraRadius = 30; var defaultSegmentAngle = 45; /// @@ -198,7 +199,7 @@ overpassUrl += 'node["amenity"="hunting_stand"]({{bbox}});'; overpassUrl += 'node["natural"="cave_entrance"]({{bbox}});'; overpassUrl += 'node["man_made"="adit"]({{bbox}});'; - overpassUrl += 'node["camera:direction"]({{bbox}});'; + overpassUrl += 'node["surveillance:type"="camera"]({{bbox}});'; overpassUrl += 'node["advertising"]({{bbox}});'; overpassUrl += 'node[traffic_sign][direction][direction!~"^(forward|backward)$"]({{bbox}});'; overpassUrl += ')'; @@ -250,9 +251,12 @@ var radius = defaultRadius; - // move camera:direction to direction - if ('camera:direction' in element.tags) { - element.tags.direction = element.tags["camera:direction"]; + if (element.tags["surveillance:type"] === "camera") { + radius = cameraRadius; + + if ('camera:direction' in element.tags) { + element.tags.direction = element.tags["camera:direction"]; + } } if ('direction' in element.tags) {