diff options
author | Dave Arter <davea@mysociety.org> | 2019-09-22 21:08:53 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-10-21 14:31:01 +0100 |
commit | 61eed3a3a2b46ca4005cf9dc32e2b04292727240 (patch) | |
tree | 1208dd1dae1432008e023c2d54c74aa96ebd6281 /web/cobrands/peterborough/js.js | |
parent | eb5bbc4d12d81d2ecae971102050ac67cf050c00 (diff) |
[Peterborough] Add USRN/site_code lookup
Diffstat (limited to 'web/cobrands/peterborough/js.js')
-rw-r--r-- | web/cobrands/peterborough/js.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/web/cobrands/peterborough/js.js b/web/cobrands/peterborough/js.js new file mode 100644 index 000000000..47172712d --- /dev/null +++ b/web/cobrands/peterborough/js.js @@ -0,0 +1,41 @@ +(function(){ + +if (!fixmystreet.maps) { + return; +} + +var defaults = { + http_options: { + url: "https://tilma.mysociety.org/mapserver/peterborough", + params: { + SERVICE: "WFS", + VERSION: "1.1.0", + REQUEST: "GetFeature", + SRSNAME: "urn:ogc:def:crs:EPSG::3857" + } + }, + max_resolution: 4.777314267158508, + min_resolution: 0.5971642833948135, + geometryName: 'msGeometry', + srsName: "EPSG:3857", + body: "Peterborough City Council", + strategy_class: OpenLayers.Strategy.FixMyStreet +}; + +fixmystreet.assets.add(defaults, { + http_options: { + params: { + TYPENAME: "highways" + } + }, + stylemap: fixmystreet.assets.stylemap_invisible, + non_interactive: true, + always_visible: true, + usrn: { + attribute: 'Usrn', + field: 'site_code' + }, + name: "Adopted Highways" +}); + +})(); |