diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-08 11:22:10 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:36:25 +0100 |
commit | d68c2cf2d1a227c4a5f446e78290f0835a869a25 (patch) | |
tree | c357e4bbf66328fbe480d9bede53f47f6d5d7a64 /web/cobrands/bexley/js.js | |
parent | d41f072a30c4a91925771d38fb224ee271805d8f (diff) |
[Bexley] Initial cobrand.
Diffstat (limited to 'web/cobrands/bexley/js.js')
-rw-r--r-- | web/cobrands/bexley/js.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/web/cobrands/bexley/js.js b/web/cobrands/bexley/js.js new file mode 100644 index 000000000..e55827fbb --- /dev/null +++ b/web/cobrands/bexley/js.js @@ -0,0 +1,48 @@ +(function(){ + +if (!fixmystreet.maps) { + return; +} + +var defaults = { + http_options: { + url: "https://tilma.mysociety.org/mapserver/bexley", + params: { + SERVICE: "WFS", + VERSION: "1.1.0", + REQUEST: "GetFeature", + SRSNAME: "urn:ogc:def:crs:EPSG::3857" + } + }, + format_class: OpenLayers.Format.GML.v3.MultiCurveFix, // Not sure needed any more + max_resolution: 4.777314267158508, + min_resolution: 0.5971642833948135, + geometryName: 'msGeometry', + srsName: "EPSG:3857", + body: "London Borough of Bexley", + strategy_class: OpenLayers.Strategy.FixMyStreet +}; + +fixmystreet.assets.add(defaults, { + http_options: { + params: { + TYPENAME: "Streets", + } + }, + always_visible: true, + non_interactive: true, + nearest_radius: 20, + usrn: { + attribute: 'NSG_REF', + field: 'NSGRef' + }, + stylemap: new OpenLayers.StyleMap({ + 'default': new OpenLayers.Style({ + fill: false, + stroke: false + }) + }) +}); + +})(); + |