diff options
author | Dave Arter <davea@mysociety.org> | 2019-10-21 14:32:28 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-10-21 14:32:28 +0100 |
commit | f26f9c7cae830550fbbdb1392936556d5ef56109 (patch) | |
tree | ca303bfad6ab0c6539a96907da2bf6b571a0c083 /web/cobrands/peterborough/js.js | |
parent | c54dac7884b74cf71f2b105e55432b43053eba5e (diff) | |
parent | 5012bbb8d24def23d25f0841570d050c52956ffb (diff) |
Merge branch 'peterborough-reviewed'
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" +}); + +})(); |