From 44ab167797df1f8497ef67c2b9467def796f08d7 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 16 Dec 2016 16:13:30 +0000 Subject: [Angus,Bristol] Don't try and add assets if no map --- web/cobrands/angus/js.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/cobrands/angus/js.js') diff --git a/web/cobrands/angus/js.js b/web/cobrands/angus/js.js index af70fd92f..f3e7bf211 100644 --- a/web/cobrands/angus/js.js +++ b/web/cobrands/angus/js.js @@ -1,3 +1,9 @@ +(function(){ + +if (!fixmystreet.maps) { + return; +} + $(fixmystreet.add_assets({ wfs_url: "https://data.angus.gov.uk/geoserver/services/wfs", wfs_feature: "lighting_column_v", @@ -13,3 +19,5 @@ $(fixmystreet.add_assets({ }, geometryName: 'g' })); + +})(); -- cgit v1.2.3