diff options
author | Marius Halden <marius.h@lden.org> | 2017-11-03 16:13:59 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-11-03 16:13:59 +0100 |
commit | 42d874db498d0fabae92d0c87acf99054d92391b (patch) | |
tree | d0cf5afdee3d244c4e5da6fe1ab9acba620634df /web/js/map-wmts-bristol.js | |
parent | 19a7c5dda85a47a68040c742791e9cd9d3e52be6 (diff) | |
parent | dc7613329c275cd158fdde8faf1c0e301f5b7202 (diff) |
Merge tag 'v2.2' into fiksgatami-dev
Diffstat (limited to 'web/js/map-wmts-bristol.js')
-rw-r--r-- | web/js/map-wmts-bristol.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/web/js/map-wmts-bristol.js b/web/js/map-wmts-bristol.js index 70cd1b66b..4a48da27f 100644 --- a/web/js/map-wmts-bristol.js +++ b/web/js/map-wmts-bristol.js @@ -1,4 +1,4 @@ -/* +/* * Maps for FMS using Bristol City Council's WMTS tile server */ @@ -102,7 +102,7 @@ fixmystreet.maps.matrix_ids = [ } ]; -/* +/* * maps.config() is called on dom ready in map-OpenLayers.js * to setup the way the map should operate. */ @@ -125,11 +125,12 @@ fixmystreet.maps.config = function() { if ( fixmystreet.page == 'report' ) { fixmystreet.controls.push( new OpenLayers.Control.PermalinkFMS('key-tool-problems-nearby', '/around') ); } - + this.setup_wmts_base_map(); }; -fixmystreet.maps.marker_size_for_zoom = function(zoom) { +fixmystreet.maps.marker_size = function() { + var zoom = fixmystreet.map.getZoom() + fixmystreet.zoomOffset; if (zoom >= 7) { return 'normal'; } else if (zoom >= 4) { |