diff options
author | Struan Donald <struan@exo.org.uk> | 2018-04-04 09:49:38 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-03 21:35:40 +0100 |
commit | 30426bc093541066f8cc2f40b4a23261d5e4526c (patch) | |
tree | 528a2d6b8f481ba63f31f0ef09477445678a5e62 /web/js/map-OpenLayers.js | |
parent | 9f341adabd2a22de7e13c43e860bb3741017bf58 (diff) |
[UK] Pull in cobrand asset files on national site.
Also add body name to layer defaults, so they are only used where appropriate.
Switch mapit area javascript calls to GeoJSON, so we can drop KML support in
OpenLayers.wfs.js which saves a small amount of bandwidth.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 07acf248c..b2b74648c 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -542,8 +542,8 @@ $.extend(fixmystreet.utils, { renderers: ['SVGBig', 'VML', 'Canvas'], strategies: [ new OpenLayers.Strategy.Fixed() ], protocol: new OpenLayers.Protocol.HTTP({ - url: "/mapit/area/" + fixmystreet.area[i] + ".kml?simplify_tolerance=0.0001", - format: new OpenLayers.Format.KML() + url: "/mapit/area/" + fixmystreet.area[i] + ".geojson?simplify_tolerance=0.0001", + format: new OpenLayers.Format.GeoJSON() }) }); fixmystreet.map.addLayer(area); |