@wemap/osm 5.1.11 → 5.1.12

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.1.11",
14
+ "version": "5.1.12",
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.1.1",
32
32
  "saxes": "^5.0.1"
33
33
  },
34
- "gitHead": "ad1b007731fcd555d3802874c240aa4b567545c7"
34
+ "gitHead": "0d31164f7e74576225c6f03356498ff606bed7a2"
35
35
  }
@@ -180,7 +180,7 @@ function parseJsonSteps(jsonSteps, legCoords) {
180
180
  step.distance = jsonStep.distance;
181
181
  step.duration = jsonStep.duration;
182
182
 
183
- if (step.extras.subwayEntrance) {
183
+ if (jsonStep.extras && jsonStep.extras.subwayEntrance) {
184
184
  step.extras.subwayEntrance = true;
185
185
  if (jsonStep.extras.subwayEntranceRef) {
186
186
  step.extras.subwayEntranceRef = jsonStep.extras.subwayEntranceRef;