aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-wmts-zurich.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 16:31:51 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 16:41:58 +0100
commit01105c917f8f43bae9949de499a4a0268f5d2a0c (patch)
tree2cd7b3ba29864df5199c5a71af16e83f8c7f3115 /web/js/map-wmts-zurich.js
parent74ce84b43c0e714849d7ad021fb0400356ce2fa8 (diff)
Tweak WMTS JavaScript to match merged branch.
Use $.each rather than .forEach.
Diffstat (limited to 'web/js/map-wmts-zurich.js')
-rw-r--r--web/js/map-wmts-zurich.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/js/map-wmts-zurich.js b/web/js/map-wmts-zurich.js
index 1995cb401..fc1dfa08f 100644
--- a/web/js/map-wmts-zurich.js
+++ b/web/js/map-wmts-zurich.js
@@ -3,13 +3,13 @@
*/
// From 'fullExtent' from http://www.gis.stadt-zuerich.ch/maps/rest/services/tiled95/LuftbildHybrid/MapServer?f=pjson
-var layer_bounds = new OpenLayers.Bounds(
+fixmystreet.maps.layer_bounds = new OpenLayers.Bounds(
2676000.9069999997, // W
1241399.842, // S
2689900.9069999997, // E
1254599.842); // N
-var matrix_ids = [
+fixmystreet.maps.matrix_ids = [
// The two highest zoom levels are pretty much useless so they're disabled.
// {
// "matrixHeight": 882,
@@ -184,7 +184,7 @@ fixmystreet.maps.config = function() {
fixmystreet.controls.push( new OpenLayers.Control.PermalinkFMS('key-tool-problems-nearby', '/around') );
}
- setup_wmts_base_map();
+ this.setup_wmts_base_map();
fixmystreet.area_format = { fillColor: 'none', strokeWidth: 4, strokeColor: 'black' };
};