diff options
author | Struan Donald <struan@exo.org.uk> | 2020-02-17 16:09:00 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-02-17 16:10:25 +0000 |
commit | 93ef440036c3204d14a992989fe2467a56752465 (patch) | |
tree | a022ac952e5f0b12344488d2c78c30fc76335c23 | |
parent | af949b141ac8d48cac53b72070e63596f5cb5b3a (diff) |
[Northamptonshire] config for live PROW layers
-rw-r--r-- | web/cobrands/northamptonshire/assets.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/cobrands/northamptonshire/assets.js b/web/cobrands/northamptonshire/assets.js index 8d3bc2824..b6f8f07f3 100644 --- a/web/cobrands/northamptonshire/assets.js +++ b/web/cobrands/northamptonshire/assets.js @@ -577,15 +577,15 @@ function ncc_match_prow_type(f, styleId) { } function ncc_prow_is_fp(f) { - return ncc_match_prow_type(f, 1454); + return ncc_match_prow_type(f, is_live ? 6190 : 1454); } function ncc_prow_is_bw(f) { - return ncc_match_prow_type(f, 1453); + return ncc_match_prow_type(f, is_live ? 6192 : 1453); } function ncc_prow_is_boat(f) { - return ncc_match_prow_type(f, 1455); + return ncc_match_prow_type(f, is_live ? 6193: 1455); } var rule_footpath = new OpenLayers.Rule({ @@ -627,8 +627,8 @@ prow_style.addRules([rule_footpath, rule_boat, rule_bridleway]); fixmystreet.assets.add(northants_road_defaults, { http_options: { - layerid: 310, - layerVersion: '310.1-', + layerid: is_live ? 1110 : 310, + layerVersion: is_live ? '1110.1-' : '310.1-', }, stylemap: new OpenLayers.StyleMap({ 'default': prow_style |