diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-02-14 09:22:32 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-14 09:22:32 +0000 |
commit | f661c0f41eb30b024c17888889b7d725ab412ddf (patch) | |
tree | 46b634121d0e060e66a32f48c72b43d332d5b986 /web/cobrands/peterborough/assets.js | |
parent | f5744500d82c8a3cf2a70ce0544d778579b1694a (diff) | |
parent | 014fc9b46e92e46a6884748004bf014fd479f400 (diff) |
Merge branch 'missing-council-js'
Diffstat (limited to 'web/cobrands/peterborough/assets.js')
-rw-r--r-- | web/cobrands/peterborough/assets.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/web/cobrands/peterborough/assets.js b/web/cobrands/peterborough/assets.js new file mode 100644 index 000000000..47172712d --- /dev/null +++ b/web/cobrands/peterborough/assets.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" +}); + +})(); |