@wemap/osm 0.2.5 → 0.2.7
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 +3 -3
- package/src/model/OsmParser.js +5 -0
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/osm"
|
|
12
12
|
},
|
|
13
13
|
"name": "@wemap/osm",
|
|
14
|
-
"version": "0.2.
|
|
14
|
+
"version": "0.2.7",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/wemap/wemap-utils-js/issues"
|
|
17
17
|
},
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wemap/geo": "^0.3.
|
|
29
|
+
"@wemap/geo": "^0.3.5",
|
|
30
30
|
"@wemap/logger": "^0.1.6",
|
|
31
31
|
"lodash.isnumber": "^3.0.3",
|
|
32
32
|
"sax": "^1.2.4"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8f0c34af735495a9ca59be1f1a2c4b1c2aab9688"
|
|
35
35
|
}
|
package/src/model/OsmParser.js
CHANGED
|
@@ -74,6 +74,11 @@ class OsmParser {
|
|
|
74
74
|
continue;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
if (node.tags.level) {
|
|
78
|
+
node.coords.level = Level.fromString(node.tags.level);
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
|
|
77
82
|
// Get node level from ways connected to this node.
|
|
78
83
|
// Node level is intersection of all levels of connected ways.
|
|
79
84
|
let tmpLevel = node.coords.level;
|