@wemap/geo 4.0.4 → 4.0.11
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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/geo"
|
|
13
13
|
},
|
|
14
14
|
"name": "@wemap/geo",
|
|
15
|
-
"version": "4.0.
|
|
15
|
+
"version": "4.0.11",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
18
18
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@wemap/logger": "^4.0.0",
|
|
31
31
|
"@wemap/maths": "^4.0.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "dd19a366258ad594763ffcb00e9db5fa6aec4256"
|
|
34
34
|
}
|
package/src/graph/Node.js
CHANGED
|
@@ -13,6 +13,9 @@ class Node {
|
|
|
13
13
|
/** @type {string} */
|
|
14
14
|
name = null;
|
|
15
15
|
|
|
16
|
+
/** @type {boolean} */
|
|
17
|
+
subwayEntrance = false;
|
|
18
|
+
|
|
16
19
|
/** @type {Edge[]} */
|
|
17
20
|
edges = [];
|
|
18
21
|
|
|
@@ -221,6 +224,9 @@ class Node {
|
|
|
221
224
|
if (this.name !== null) {
|
|
222
225
|
output.name = this.name;
|
|
223
226
|
}
|
|
227
|
+
if (this.subwayEntrance !== null) {
|
|
228
|
+
output.subwayEntrance = this.subwayEntrance;
|
|
229
|
+
}
|
|
224
230
|
return output;
|
|
225
231
|
}
|
|
226
232
|
|
|
@@ -231,6 +237,9 @@ class Node {
|
|
|
231
237
|
if (properties.name) {
|
|
232
238
|
this.name = properties.name;
|
|
233
239
|
}
|
|
240
|
+
if (properties.subwayEntrance) {
|
|
241
|
+
this.subwayEntrance = properties.subwayEntrance;
|
|
242
|
+
}
|
|
234
243
|
return this;
|
|
235
244
|
}
|
|
236
245
|
}
|