aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/bristol/js.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-11-11 07:48:57 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-11-11 07:48:57 +0000
commitdace204d71f395b07c4f746599bc9f3d6e620886 (patch)
treed8382bafc3d27c6686b7ece1ab396db18d33343b /web/cobrands/bristol/js.js
parent881fc519900cfc2a5675925c8ac7e5080435db42 (diff)
parentcab0360bdbe587abe68a9e5921bd19200714ff39 (diff)
Merge branch 'issues/commercial/787-bristol-assets'
Diffstat (limited to 'web/cobrands/bristol/js.js')
-rw-r--r--web/cobrands/bristol/js.js46
1 files changed, 46 insertions, 0 deletions
diff --git a/web/cobrands/bristol/js.js b/web/cobrands/bristol/js.js
new file mode 100644
index 000000000..129037d23
--- /dev/null
+++ b/web/cobrands/bristol/js.js
@@ -0,0 +1,46 @@
+(function(){
+
+var options = {
+ wfs_url: "https://maps.bristol.gov.uk/arcgis/services/ext/FixMyStreetSupportData/MapServer/WFSServer",
+ wfs_feature: "COD_ASSETS_POINT",
+ max_resolution: 0.33072982812632296,
+ min_resolution: 0.00001,
+ asset_id_field: 'COD_ASSET_ID',
+ asset_type: 'spot',
+ propertyNames: [ 'COD_ASSET_ID', 'COD_USRN' ],
+ attributes: {
+ asset_id: 'COD_ASSET_ID',
+ usrn: 'COD_USRN'
+ },
+ geometryName: 'SHAPE'
+};
+
+$(fixmystreet.add_assets($.extend({}, options, {
+ wfs_feature: "COD_ASSETS_AREA",
+ asset_type: 'area',
+ asset_category: "Bridges/Subways",
+ asset_item: 'bridge/subway'
+})));
+
+$(fixmystreet.add_assets($.extend({}, options, {
+ asset_category: "Gully/Drainage",
+ asset_item: 'gully',
+ filter_key: 'COD_ASSET_TYPE',
+ filter_value: 'GULLY'
+})));
+
+$(fixmystreet.add_assets($.extend({}, options, {
+ asset_category: "Grit Bins",
+ asset_item: 'grit bin',
+ filter_key: 'COD_ASSET_TYPE',
+ filter_value: 'GRITBIN'
+})));
+
+$(fixmystreet.add_assets($.extend({}, options, {
+ asset_category: "Street Lighting",
+ asset_item: 'street light',
+ filter_key: 'COD_ASSET_TYPE',
+ filter_value: 'SL'
+})));
+
+})();