aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2020-07-23 12:17:17 +0100
committerStruan Donald <struan@exo.org.uk>2020-09-18 15:16:40 +0100
commite76efec747d695ec88af26864a5a3a66ebb93ee2 (patch)
tree7f055511257197086fcf0c64d2e43b43e702b8ff
parent53b9535d0151af3e4c1b50e17b3a5304873a2a23 (diff)
[Northamptonshire] distinguish PRoW assets by type
Use the styleid to identify PRoW types and colour them differently in V2 layers
-rw-r--r--web/cobrands/northamptonshire/assets.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/cobrands/northamptonshire/assets.js b/web/cobrands/northamptonshire/assets.js
index b5d557049..6bfb73bea 100644
--- a/web/cobrands/northamptonshire/assets.js
+++ b/web/cobrands/northamptonshire/assets.js
@@ -367,20 +367,20 @@ fixmystreet.assets.add(northants_road_defaults, {
function ncc_match_prow_type(f, styleId) {
return f &&
f.attributes &&
- f.attributes.layerStyleId &&
- f.attributes.layerStyleId == styleId;
+ f.attributes.styleId &&
+ f.attributes.styleId == styleId;
}
function ncc_prow_is_fp(f) {
- return ncc_match_prow_type(f, is_live ? 6190 : 1454);
+ return ncc_match_prow_type(f, '5d483b84fe2ad809d85a8dab' );
}
function ncc_prow_is_bw(f) {
- return ncc_match_prow_type(f, is_live ? 6192 : 1453);
+ return ncc_match_prow_type(f, '5d483b84fe2ad809d85a8dac');
}
function ncc_prow_is_boat(f) {
- return ncc_match_prow_type(f, is_live ? 6193: 1455);
+ return ncc_match_prow_type(f, '5d483b84fe2ad809d85a8dad');
}
var rule_footpath = new OpenLayers.Rule({