From 30426bc093541066f8cc2f40b4a23261d5e4526c Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 4 Apr 2018 09:49:38 +0100 Subject: [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. --- web/js/map-OpenLayers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/js/map-OpenLayers.js') 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); -- cgit v1.2.3