kopia lustrzana https://github.com/jakecoppinger/safe-cycling-map
Added side specifiers to bike lanes
rodzic
bdca4fbecc
commit
f79da06b03
|
@ -40,7 +40,7 @@ export function isOrangeRoad(feature: Feature<Geometry, GeoJsonProperties>): boo
|
|||
if (p.maxspeed <= 40) {
|
||||
return true;
|
||||
}
|
||||
if (p.cycleway === 'lane') {
|
||||
if (p.cycleway === 'lane' || p['cycleway:left'] === 'lane' || p['cycleway:right'] === 'lane' || p['cycleway:both'] === 'lane') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -81,4 +81,4 @@ export function isGreenRoad(feature: Feature<Geometry, GeoJsonProperties>): bool
|
|||
return true;
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue