From 8f0b3ca3fd6d978aa96b9541f9d6c9544c0db8eb Mon Sep 17 00:00:00 2001 From: pezholio Date: Tue, 23 May 2017 11:43:37 +0100 Subject: Fix linting errors --- web/js/map-wmts-zurich.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'web/js/map-wmts-zurich.js') diff --git a/web/js/map-wmts-zurich.js b/web/js/map-wmts-zurich.js index 18a858064..6bc1c5e14 100644 --- a/web/js/map-wmts-zurich.js +++ b/web/js/map-wmts-zurich.js @@ -1,5 +1,5 @@ -/* - * Maps for FMZ using Zurich council's WMTS tile server +/* + * Maps for FMZ using Zurich council's WMTS tile server */ // From 'fullExtent' from http://www.gis.stadt-zuerich.ch/maps/rest/services/tiled95/LuftbildHybrid/MapServer?f=pjson @@ -140,7 +140,7 @@ fixmystreet.maps.matrix_ids = [ })(); -/* +/* * maps.config() is called on dom ready in map-OpenLayers.js * to setup the way the map should operate. */ @@ -165,7 +165,8 @@ fixmystreet.maps.config = function() { fixmystreet.area_format = { fillColor: 'none', strokeWidth: 4, strokeColor: 'black' }; }; -fixmystreet.maps.marker_size_for_zoom = function(zoom) { +fixmystreet.maps.marker_size = function() { + var zoom = fixmystreet.map.getZoom() + fixmystreet.zoomOffset; if (zoom >= 6) { return 'normal'; } else if (zoom >= 3) { -- cgit v1.2.3