diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-07 09:12:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-07 15:03:57 +0100 |
commit | 88f8334157416f33d0bd81a38b46b25005cbbc15 (patch) | |
tree | 977f97c2b2be68bcef233db352e2bb83d2e53a53 /web | |
parent | 578450b408af9cc0a307f80ae0bfec48c34d6498 (diff) |
[Bristol] Fix display of assets on .com map.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/bristol/assets.js | 6 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/web/cobrands/bristol/assets.js b/web/cobrands/bristol/assets.js index 6d2020bfe..1b32379dc 100644 --- a/web/cobrands/bristol/assets.js +++ b/web/cobrands/bristol/assets.js @@ -7,7 +7,10 @@ if (!fixmystreet.maps) { var options = { wfs_url: "https://maps.bristol.gov.uk/arcgis/services/ext/FixMyStreetSupportData/MapServer/WFSServer", wfs_feature: "COD_ASSETS_POINT", - max_resolution: 0.33072982812632296, + max_resolution: { + 'bristol': 0.33072982812632296, + 'fixmystreet': 4.777314267158508 + }, min_resolution: 0.00001, asset_id_field: 'COD_ASSET_ID', asset_type: 'spot', @@ -17,6 +20,7 @@ var options = { usrn: 'COD_USRN' }, body: "Bristol City Council", + srsName: "EPSG:27700", geometryName: 'SHAPE' }; diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index f53d26bbb..31dcaec07 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -491,12 +491,17 @@ fixmystreet.assets = { options.asset_category = [ options.asset_category ]; } + var max_resolution = options.max_resolution; + if (typeof max_resolution === 'object') { + max_resolution = max_resolution[fixmystreet.cobrand]; + } + var layer_options = { fixmystreet: options, strategies: [new StrategyClass()], protocol: protocol, visibility: false, - maxResolution: options.max_resolution, + maxResolution: max_resolution, minResolution: options.min_resolution, styleMap: options.stylemap || get_asset_stylemap(), assets: true |