@wemap/osm 5.0.3 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/osm"
|
|
12
12
|
},
|
|
13
13
|
"name": "@wemap/osm",
|
|
14
|
-
"version": "5.0.
|
|
14
|
+
"version": "5.0.4",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
17
17
|
},
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@wemap/maths": "^5.0.0",
|
|
32
32
|
"sax": "^1.2.4"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8793fda524d493f3b954d8b61d3d523a32b2f275"
|
|
35
35
|
}
|
|
@@ -8,7 +8,12 @@ import OsmWay from '../../model/OsmWay.js';
|
|
|
8
8
|
|
|
9
9
|
export const HIGHWAYS_PEDESTRIANS = ['footway', 'steps', 'pedestrian', 'living_street', 'path', 'track', 'sidewalk'];
|
|
10
10
|
|
|
11
|
-
export const DEFAULT_WAY_SELECTOR = way =>
|
|
11
|
+
export const DEFAULT_WAY_SELECTOR = way => {
|
|
12
|
+
return HIGHWAYS_PEDESTRIANS.includes(way.tags.highway)
|
|
13
|
+
|| way.tags.footway === 'sidewalk'
|
|
14
|
+
|| way.tags.public_transport === 'platform'
|
|
15
|
+
|| way.tags.railway === 'platform';
|
|
16
|
+
};
|
|
12
17
|
|
|
13
18
|
/**
|
|
14
19
|
* @param {Network<OsmElement>} network
|