diff options
-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 |