aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-12-16 16:13:30 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-12-16 16:13:30 +0000
commit44ab167797df1f8497ef67c2b9467def796f08d7 (patch)
treee79037ccfa3d1172ef414173c0fc6243b964341b /web
parent03b715f6134e40fcce592e9c33b8a8f119dc814c (diff)
[Angus,Bristol] Don't try and add assets if no map
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/angus/js.js8
-rw-r--r--web/cobrands/bristol/js.js4
2 files changed, 12 insertions, 0 deletions
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'
}));
+
+})();
diff --git a/web/cobrands/bristol/js.js b/web/cobrands/bristol/js.js
index 129037d23..1fc23d61a 100644
--- a/web/cobrands/bristol/js.js
+++ b/web/cobrands/bristol/js.js
@@ -1,5 +1,9 @@
(function(){
+if (!fixmystreet.maps) {
+ return;
+}
+
var options = {
wfs_url: "https://maps.bristol.gov.uk/arcgis/services/ext/FixMyStreetSupportData/MapServer/WFSServer",
wfs_feature: "COD_ASSETS_POINT",