@mappedin/react-native-sdk 3.4.4 → 4.0.4-alpha.8
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/README.md +12 -8
- package/dist/index.d.ts +5753 -0
- package/dist/index.js +3552 -0
- package/dist/index.js.map +7 -0
- package/package.json +26 -22
- package/CHANGELOG.md +0 -42
- package/dist/get-venue/package.json +0 -44
- package/dist/get-venue/src/Mappedin.API.types.d.ts +0 -203
- package/dist/get-venue/src/Mappedin.API.types.d.ts.map +0 -1
- package/dist/get-venue/src/Mappedin.API.types.js +0 -4
- package/dist/get-venue/src/Mappedin.d.ts +0 -256
- package/dist/get-venue/src/Mappedin.d.ts.map +0 -1
- package/dist/get-venue/src/Mappedin.js +0 -248
- package/dist/get-venue/src/Mappedin.types.d.ts +0 -30
- package/dist/get-venue/src/Mappedin.types.d.ts.map +0 -1
- package/dist/get-venue/src/Mappedin.types.js +0 -1
- package/dist/get-venue/src/MappedinCategory.d.ts +0 -48
- package/dist/get-venue/src/MappedinCategory.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinCategory.js +0 -87
- package/dist/get-venue/src/MappedinCoordinate.d.ts +0 -42
- package/dist/get-venue/src/MappedinCoordinate.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinCoordinate.js +0 -43
- package/dist/get-venue/src/MappedinCoordinate.test.d.ts +0 -2
- package/dist/get-venue/src/MappedinCoordinate.test.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinCoordinate.test.js +0 -19
- package/dist/get-venue/src/MappedinDestinationSet.d.ts +0 -8
- package/dist/get-venue/src/MappedinDestinationSet.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinDestinationSet.js +0 -6
- package/dist/get-venue/src/MappedinDirections.d.ts +0 -56
- package/dist/get-venue/src/MappedinDirections.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinDirections.js +0 -42
- package/dist/get-venue/src/MappedinEvent.d.ts +0 -30
- package/dist/get-venue/src/MappedinEvent.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinEvent.js +0 -67
- package/dist/get-venue/src/MappedinJSONScene.d.ts +0 -9
- package/dist/get-venue/src/MappedinJSONScene.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinJSONScene.js +0 -24
- package/dist/get-venue/src/MappedinLocation.d.ts +0 -89
- package/dist/get-venue/src/MappedinLocation.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinLocation.js +0 -223
- package/dist/get-venue/src/MappedinLocationRankings.d.ts +0 -12
- package/dist/get-venue/src/MappedinLocationRankings.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinLocationRankings.js +0 -26
- package/dist/get-venue/src/MappedinLocationState.d.ts +0 -14
- package/dist/get-venue/src/MappedinLocationState.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinLocationState.js +0 -33
- package/dist/get-venue/src/MappedinMap.d.ts +0 -64
- package/dist/get-venue/src/MappedinMap.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinMap.js +0 -215
- package/dist/get-venue/src/MappedinMapGroup.d.ts +0 -23
- package/dist/get-venue/src/MappedinMapGroup.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinMapGroup.js +0 -62
- package/dist/get-venue/src/MappedinNavigatable.d.ts +0 -38
- package/dist/get-venue/src/MappedinNavigatable.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinNavigatable.js +0 -82
- package/dist/get-venue/src/MappedinNode.d.ts +0 -65
- package/dist/get-venue/src/MappedinNode.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinNode.js +0 -153
- package/dist/get-venue/src/MappedinPolygon.d.ts +0 -60
- package/dist/get-venue/src/MappedinPolygon.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinPolygon.js +0 -164
- package/dist/get-venue/src/MappedinRankings.d.ts +0 -32
- package/dist/get-venue/src/MappedinRankings.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinRankings.js +0 -46
- package/dist/get-venue/src/MappedinTheme.d.ts +0 -15
- package/dist/get-venue/src/MappedinTheme.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinTheme.js +0 -41
- package/dist/get-venue/src/MappedinVenue.d.ts +0 -47
- package/dist/get-venue/src/MappedinVenue.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinVenue.js +0 -61
- package/dist/get-venue/src/MappedinVortex.d.ts +0 -26
- package/dist/get-venue/src/MappedinVortex.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinVortex.js +0 -54
- package/dist/get-venue/src/default-things.d.ts +0 -14
- package/dist/get-venue/src/default-things.d.ts.map +0 -1
- package/dist/get-venue/src/default-things.js +0 -60
- package/dist/get-venue/src/fixtures/MappedinDemoMall.json +0 -1
- package/dist/get-venue/src/index.cjs.js +0 -16
- package/dist/get-venue/src/index.d.ts +0 -65
- package/dist/get-venue/src/index.d.ts.map +0 -1
- package/dist/get-venue/src/index.js +0 -16
- package/dist/get-venue/src/utils.d.ts +0 -15
- package/dist/get-venue/src/utils.d.ts.map +0 -1
- package/dist/get-venue/src/utils.js +0 -188
- package/dist/get-venue/tsconfig.docs.json +0 -7
- package/dist/get-venue/tsconfig.isomorphic.json +0 -20
- package/dist/get-venue/tsconfig.isomorphic.tsbuildinfo +0 -2262
- package/dist/get-venue/tsconfig.json +0 -19
- package/dist/get-venue/tsconfig.tsbuildinfo +0 -2758
- package/dist/sdk/src/MappedinController.d.ts +0 -45
- package/dist/sdk/src/MappedinController.d.ts.map +0 -1
- package/dist/sdk/src/MappedinController.js +0 -1
- package/dist/sdk/src/MiMapView.d.ts +0 -80
- package/dist/sdk/src/MiMapView.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.element.d.ts +0 -8
- package/dist/sdk/src/MiMapView.element.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.element.js +0 -5
- package/dist/sdk/src/MiMapView.element.web.d.ts +0 -6
- package/dist/sdk/src/MiMapView.element.web.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.element.web.js +0 -1
- package/dist/sdk/src/MiMapView.js +0 -1
- package/dist/sdk/src/MiMapView.store.d.ts +0 -197
- package/dist/sdk/src/MiMapView.store.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.store.js +0 -1
- package/dist/sdk/src/MiMapView.store.types.d.ts +0 -202
- package/dist/sdk/src/MiMapView.store.types.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.store.types.js +0 -1
- package/dist/sdk/src/MiMiniMap.d.ts +0 -31
- package/dist/sdk/src/MiMiniMap.d.ts.map +0 -1
- package/dist/sdk/src/MiMiniMap.js +0 -3
- package/dist/sdk/src/MiMiniMap.store.d.ts +0 -22
- package/dist/sdk/src/MiMiniMap.store.d.ts.map +0 -1
- package/dist/sdk/src/MiMiniMap.store.js +0 -1
- package/dist/sdk/src/assets/index.html.d.ts +0 -3
- package/dist/sdk/src/assets/index.html.d.ts.map +0 -1
- package/dist/sdk/src/assets/index.html.js +0 -1
- package/dist/sdk/src/index.d.ts +0 -186
- package/dist/sdk/src/index.d.ts.map +0 -1
- package/dist/sdk/src/index.js +0 -1
- package/dist/sdk/src/pub-sub.d.ts +0 -27
- package/dist/sdk/src/pub-sub.d.ts.map +0 -1
- package/dist/sdk/src/pub-sub.js +0 -1
- package/dist/sdk/src/utils.d.ts +0 -18
- package/dist/sdk/src/utils.d.ts.map +0 -1
- package/dist/sdk/src/utils.js +0 -1
- package/dist/sdk/tsconfig.build.tsbuildinfo +0 -6928
- package/dist/types/src/Mappedin.bridge.events.d.ts +0 -74
- package/dist/types/src/Mappedin.bridge.events.d.ts.map +0 -1
- package/dist/types/src/Mappedin.bridge.events.js +0 -1
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/index.d.ts.map +0 -1
- package/dist/types/src/index.js +0 -1
- package/dist/types/src/navigator.d.ts +0 -78
- package/dist/types/src/navigator.d.ts.map +0 -1
- package/dist/types/src/navigator.js +0 -1
- package/dist/types/tsconfig.tsbuildinfo +0 -1819
- package/dist/types_mappedin__mappedin-js/tsconfig.tsbuildinfo +0 -1781
- package/dist/types_mappedin__mappedin-js/types.d.ts +0 -205
- package/dist/types_mappedin__mappedin-js/types.d.ts.map +0 -1
- package/dist/types_mappedin__mappedin-js/types.js +0 -53
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/mappedin.html +0 -560
- package/docs/classes/mappedincategory.html +0 -373
- package/docs/classes/mappedindestinationset.html +0 -184
- package/docs/classes/mappedindirections.html +0 -258
- package/docs/classes/mappedinevent.html +0 -387
- package/docs/classes/mappedinlocation.html +0 -942
- package/docs/classes/mappedinmap.html +0 -501
- package/docs/classes/mappedinmapgroup.html +0 -329
- package/docs/classes/mappedinnode.html +0 -717
- package/docs/classes/mappedinpolygon.html +0 -714
- package/docs/classes/mappedinrankings.html +0 -288
- package/docs/classes/mappedinvenue.html +0 -494
- package/docs/classes/mappedinvortex.html +0 -331
- package/docs/classes/mapviewstore.html +0 -1233
- package/docs/enums/action_type.html +0 -188
- package/docs/enums/bearing_type.html +0 -188
- package/docs/enums/collision_ranking_tiers.html +0 -177
- package/docs/enums/e_bluedot_state.html +0 -223
- package/docs/enums/e_bluedot_state_reason.html +0 -197
- package/docs/enums/e_marker_state.html +0 -204
- package/docs/enums/marker_anchor.html +0 -188
- package/docs/enums/state.html +0 -160
- package/docs/index.html +0 -1078
- package/docs/modules.html +0 -1898
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { Mappedin } from './Mappedin';
|
|
2
|
-
import type { MappedinLocation } from './MappedinLocation';
|
|
3
|
-
import type { MappedinNode } from './MappedinNode';
|
|
4
|
-
import { MappedinNavigatable } from './MappedinNavigatable';
|
|
5
|
-
/**
|
|
6
|
-
* The {@link MappedinPolygon} class represents the 3D shape of a {@link MappedinLocation} on a {{@link MappedinMap}. Polygons have access to Locations they belong to, and any entrances to the Polygon.
|
|
7
|
-
*
|
|
8
|
-
* A Polygon can have more properties but usually the default is sufficient. The {@link Mappedin}'things' object is where you would specify what properties you want to download for Polygons. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
|
|
9
|
-
*
|
|
10
|
-
* @class MappedinPolygon
|
|
11
|
-
*/
|
|
12
|
-
export declare class MappedinPolygon extends MappedinNavigatable {
|
|
13
|
-
#private;
|
|
14
|
-
geometry: any;
|
|
15
|
-
/**
|
|
16
|
-
* Node ID.
|
|
17
|
-
*
|
|
18
|
-
* @property id {string}
|
|
19
|
-
*/
|
|
20
|
-
id: string;
|
|
21
|
-
/**
|
|
22
|
-
* ID of Map that Polygon is located on.
|
|
23
|
-
*
|
|
24
|
-
* @property map {string}
|
|
25
|
-
*/
|
|
26
|
-
map: string;
|
|
27
|
-
layer?: string;
|
|
28
|
-
layerId?: string;
|
|
29
|
-
name?: string;
|
|
30
|
-
externalId?: string;
|
|
31
|
-
vertexes?: {
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
}[];
|
|
35
|
-
constructor(mappedin: Mappedin, data: any);
|
|
36
|
-
/**
|
|
37
|
-
* Locations attached to the Polygon.
|
|
38
|
-
*
|
|
39
|
-
* @property locations {[MappedinLocation]}
|
|
40
|
-
*/
|
|
41
|
-
get locations(): MappedinLocation[];
|
|
42
|
-
/**
|
|
43
|
-
* Polygon's entrance Nodes.
|
|
44
|
-
*
|
|
45
|
-
* @property entrances {[MappedinNode]}
|
|
46
|
-
*/
|
|
47
|
-
get entrances(): MappedinNode[];
|
|
48
|
-
set entrances(entrances: MappedinNode[]);
|
|
49
|
-
/**
|
|
50
|
-
* Ranking for this polygon.
|
|
51
|
-
*/
|
|
52
|
-
get rank(): {
|
|
53
|
-
score: number;
|
|
54
|
-
node: string;
|
|
55
|
-
} | null;
|
|
56
|
-
static hydrate(polygons: any, mappedin: Mappedin): MappedinPolygon[];
|
|
57
|
-
static fetch(mappedin: Mappedin): Promise<MappedinPolygon[]>;
|
|
58
|
-
toJSON(): any;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=MappedinPolygon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MappedinPolygon.d.ts","sourceRoot":"","sources":["../../src/MappedinPolygon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,mBAAmB;;IAOtD,QAAQ,EAAE,GAAG,CAAC;IAEd;;;;OAIG;IACH,EAAE,SAAM;IAER;;;;OAIG;IACH,GAAG,SAAM;IAET,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;gBAE1B,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG;IAOzC;;;;OAIG;IACH,IAAI,SAAS,IAAI,gBAAgB,EAAE,CAwBlC;IAID;;;;OAIG;IACH,IAAI,SAAS,IAAI,YAAY,EAAE,CAoB9B;IAED,IAAI,SAAS,CAAC,SAAS,EAtBN,YAAY,EAsBN,EAEtB;IAED;;OAEG;IACH,IAAI,IAAI,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAqBjD;IAED,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,GAAG,eAAe,EAAE;WAIvD,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IA2ClE,MAAM;CAGP"}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { MappedinNavigatable } from './MappedinNavigatable';
|
|
2
|
-
import { addToSet, getArray } from './utils';
|
|
3
|
-
/**
|
|
4
|
-
* The {@link MappedinPolygon} class represents the 3D shape of a {@link MappedinLocation} on a {{@link MappedinMap}. Polygons have access to Locations they belong to, and any entrances to the Polygon.
|
|
5
|
-
*
|
|
6
|
-
* A Polygon can have more properties but usually the default is sufficient. The {@link Mappedin}'things' object is where you would specify what properties you want to download for Polygons. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
|
|
7
|
-
*
|
|
8
|
-
* @class MappedinPolygon
|
|
9
|
-
*/
|
|
10
|
-
export class MappedinPolygon extends MappedinNavigatable {
|
|
11
|
-
constructor(mappedin, data) {
|
|
12
|
-
super(mappedin);
|
|
13
|
-
this.#cache = {};
|
|
14
|
-
/**
|
|
15
|
-
* Node ID.
|
|
16
|
-
*
|
|
17
|
-
* @property id {string}
|
|
18
|
-
*/
|
|
19
|
-
this.id = '';
|
|
20
|
-
/**
|
|
21
|
-
* ID of Map that Polygon is located on.
|
|
22
|
-
*
|
|
23
|
-
* @property map {string}
|
|
24
|
-
*/
|
|
25
|
-
this.map = '';
|
|
26
|
-
this.#mappedin = mappedin;
|
|
27
|
-
this.#data = data;
|
|
28
|
-
Object.assign(this, data);
|
|
29
|
-
}
|
|
30
|
-
#mappedin;
|
|
31
|
-
#data;
|
|
32
|
-
#cache;
|
|
33
|
-
/**
|
|
34
|
-
* Locations attached to the Polygon.
|
|
35
|
-
*
|
|
36
|
-
* @property locations {[MappedinLocation]}
|
|
37
|
-
*/
|
|
38
|
-
get locations() {
|
|
39
|
-
const cache = this.#cache.locations;
|
|
40
|
-
if (typeof cache !== 'undefined') {
|
|
41
|
-
return cache;
|
|
42
|
-
}
|
|
43
|
-
const related = [];
|
|
44
|
-
const { locations } = this.#mappedin;
|
|
45
|
-
const { id } = this;
|
|
46
|
-
for (let i = 0, iLen = locations.length; i < iLen; ++i) {
|
|
47
|
-
const location = locations[i];
|
|
48
|
-
const through = location.polygons;
|
|
49
|
-
if (Array.isArray(through)) {
|
|
50
|
-
for (let j = 0, jLen = through.length; j < jLen; ++j) {
|
|
51
|
-
const tuple = through[j];
|
|
52
|
-
if (tuple.id === id) {
|
|
53
|
-
related.push(location);
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
this.#cache.locations = related;
|
|
60
|
-
return related;
|
|
61
|
-
}
|
|
62
|
-
#entrances;
|
|
63
|
-
/**
|
|
64
|
-
* Polygon's entrance Nodes.
|
|
65
|
-
*
|
|
66
|
-
* @property entrances {[MappedinNode]}
|
|
67
|
-
*/
|
|
68
|
-
get entrances() {
|
|
69
|
-
const cache = this.#cache.entrances;
|
|
70
|
-
if (typeof cache !== 'undefined') {
|
|
71
|
-
return cache;
|
|
72
|
-
}
|
|
73
|
-
const related = [];
|
|
74
|
-
const through = this.#entrances;
|
|
75
|
-
const index = this.#mappedin._nodesById;
|
|
76
|
-
if (Array.isArray(through)) {
|
|
77
|
-
for (let i = 0, iLen = through.length; i < iLen; ++i) {
|
|
78
|
-
const nodeId = through[i].id;
|
|
79
|
-
const node = index[nodeId];
|
|
80
|
-
if (node != null) {
|
|
81
|
-
related.push(node);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
this.#cache.entrances = related;
|
|
85
|
-
return related;
|
|
86
|
-
}
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
set entrances(entrances) {
|
|
90
|
-
this.#entrances = entrances;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Ranking for this polygon.
|
|
94
|
-
*/
|
|
95
|
-
get rank() {
|
|
96
|
-
const cache = this.#cache.rank;
|
|
97
|
-
if (typeof cache !== 'undefined') {
|
|
98
|
-
return cache;
|
|
99
|
-
}
|
|
100
|
-
const { rankings } = this.#mappedin;
|
|
101
|
-
// TODO: fix!
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
if (!(rankings && rankings.polygons))
|
|
104
|
-
return null;
|
|
105
|
-
// TODO: fix!
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
const thisRankData = rankings.polygons.find((x) => x.polygonId === this.id);
|
|
108
|
-
if (thisRankData) {
|
|
109
|
-
this.#cache.rank = {
|
|
110
|
-
score: thisRankData.score,
|
|
111
|
-
node: thisRankData.entranceNodeId,
|
|
112
|
-
};
|
|
113
|
-
return { score: thisRankData.score, node: thisRankData.entranceNodeId };
|
|
114
|
-
}
|
|
115
|
-
this.#cache.rank = null;
|
|
116
|
-
return null;
|
|
117
|
-
}
|
|
118
|
-
static hydrate(polygons, mappedin) {
|
|
119
|
-
return polygons.map((p) => new MappedinPolygon(mappedin, p));
|
|
120
|
-
}
|
|
121
|
-
static async fetch(mappedin) {
|
|
122
|
-
const fields = mappedin.options.things.polygons.slice();
|
|
123
|
-
if (mappedin.options.things.maps) {
|
|
124
|
-
addToSet(fields, 'map');
|
|
125
|
-
}
|
|
126
|
-
if (mappedin.options.things.nodes) {
|
|
127
|
-
addToSet(fields, 'entrances');
|
|
128
|
-
}
|
|
129
|
-
const query = {
|
|
130
|
-
fields,
|
|
131
|
-
perspective: (mappedin.options.do2D && mappedin.options.perspective) || undefined,
|
|
132
|
-
venue: mappedin.options.venue,
|
|
133
|
-
};
|
|
134
|
-
try {
|
|
135
|
-
const data = await getArray(mappedin.options, 'polygon', query);
|
|
136
|
-
// let res: TImageBlob | null = (await cache.getObject(
|
|
137
|
-
// 'polygons:media'
|
|
138
|
-
// )) as TImageBlob | null;
|
|
139
|
-
// if (res == null) {
|
|
140
|
-
// cacheImages('polygons:media', data);
|
|
141
|
-
// } else {
|
|
142
|
-
// for (let polygon of data) {
|
|
143
|
-
// const imageURL: string =
|
|
144
|
-
// polygon.image?.url || polygon.image?.original || false;
|
|
145
|
-
// if (imageURL) {
|
|
146
|
-
// let blob = res[imageURL];
|
|
147
|
-
// polygon.image.url = blob;
|
|
148
|
-
// polygon.image.original = blob;
|
|
149
|
-
// }
|
|
150
|
-
// }
|
|
151
|
-
// }
|
|
152
|
-
return data
|
|
153
|
-
.filter((item) => item.geometry.visible)
|
|
154
|
-
.map((item) => new MappedinPolygon(mappedin, item));
|
|
155
|
-
}
|
|
156
|
-
catch (e) {
|
|
157
|
-
console.error('Fetch Polygons:', e);
|
|
158
|
-
return [];
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
toJSON() {
|
|
162
|
-
return this.#data;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Mappedin } from './Mappedin';
|
|
2
|
-
import type { TPolygonRanking } from './Mappedin.API.types';
|
|
3
|
-
/**
|
|
4
|
-
* A {@link MappedinRankings} object is something that contains all the rankings for all the {@link MappedinPolygon}s in the venue. It has a `polygons` array in which each item is linked to zero or more {@link MappedinPolygon}s.
|
|
5
|
-
*
|
|
6
|
-
* Rankings shows what the priority of displaying each polygon is.
|
|
7
|
-
*
|
|
8
|
-
* A specific polygon's ranking can have the properties `polygonId`, `entranceNodeId`, `score`.
|
|
9
|
-
*
|
|
10
|
-
* The {@link Mappedin} `things` object is where you would specify what type of ranking data you want to download for the venue. Only specify what you will actually use, to minimize transfer time.
|
|
11
|
-
*
|
|
12
|
-
* See below for an example a `things` object with the available ranking properties specified:
|
|
13
|
-
*
|
|
14
|
-
* things: {
|
|
15
|
-
* venue: [],
|
|
16
|
-
* locations: [],
|
|
17
|
-
* categories: [],
|
|
18
|
-
* maps: [],
|
|
19
|
-
* rankings: ['polygons'],
|
|
20
|
-
* }
|
|
21
|
-
*
|
|
22
|
-
* @class MappedinRankings
|
|
23
|
-
*/
|
|
24
|
-
export declare class MappedinRankings {
|
|
25
|
-
#private;
|
|
26
|
-
constructor(data: any);
|
|
27
|
-
polygons: TPolygonRanking[];
|
|
28
|
-
static hydrate(rankings: any): MappedinRankings;
|
|
29
|
-
static fetch(mappedin: Mappedin): Promise<MappedinRankings | null>;
|
|
30
|
-
toJSON(): any;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=MappedinRankings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MappedinRankings.d.ts","sourceRoot":"","sources":["../../src/MappedinRankings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,gBAAgB;;gBAGf,IAAI,EAAE,GAAG;IAKrB,QAAQ,EAAE,eAAe,EAAE,CAAM;IAEjC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAG,gBAAgB;WAIlC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAgBxE,MAAM;CAGP"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { getObject } from './utils';
|
|
2
|
-
/**
|
|
3
|
-
* A {@link MappedinRankings} object is something that contains all the rankings for all the {@link MappedinPolygon}s in the venue. It has a `polygons` array in which each item is linked to zero or more {@link MappedinPolygon}s.
|
|
4
|
-
*
|
|
5
|
-
* Rankings shows what the priority of displaying each polygon is.
|
|
6
|
-
*
|
|
7
|
-
* A specific polygon's ranking can have the properties `polygonId`, `entranceNodeId`, `score`.
|
|
8
|
-
*
|
|
9
|
-
* The {@link Mappedin} `things` object is where you would specify what type of ranking data you want to download for the venue. Only specify what you will actually use, to minimize transfer time.
|
|
10
|
-
*
|
|
11
|
-
* See below for an example a `things` object with the available ranking properties specified:
|
|
12
|
-
*
|
|
13
|
-
* things: {
|
|
14
|
-
* venue: [],
|
|
15
|
-
* locations: [],
|
|
16
|
-
* categories: [],
|
|
17
|
-
* maps: [],
|
|
18
|
-
* rankings: ['polygons'],
|
|
19
|
-
* }
|
|
20
|
-
*
|
|
21
|
-
* @class MappedinRankings
|
|
22
|
-
*/
|
|
23
|
-
export class MappedinRankings {
|
|
24
|
-
constructor(data) {
|
|
25
|
-
this.polygons = [];
|
|
26
|
-
this.#data = data;
|
|
27
|
-
Object.assign(this, data);
|
|
28
|
-
}
|
|
29
|
-
#data;
|
|
30
|
-
static hydrate(rankings) {
|
|
31
|
-
return new MappedinRankings(rankings);
|
|
32
|
-
}
|
|
33
|
-
static async fetch(mappedin) {
|
|
34
|
-
try {
|
|
35
|
-
const data = await getObject(mappedin.options, 'smart-labels/polygon-label-ranking', { venue: mappedin.options.venue }, true);
|
|
36
|
-
return new MappedinRankings(data);
|
|
37
|
-
}
|
|
38
|
-
catch (e) {
|
|
39
|
-
console.error('Fetch Rankings:', e);
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
toJSON() {
|
|
44
|
-
return this.#data;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Mappedin } from './Mappedin';
|
|
2
|
-
export declare class MappedinTheme {
|
|
3
|
-
#private;
|
|
4
|
-
/**
|
|
5
|
-
* Theme ID.
|
|
6
|
-
*
|
|
7
|
-
* @property id {string}
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
constructor(data: any);
|
|
11
|
-
static hydrate(themes: any): MappedinTheme[];
|
|
12
|
-
static fetch(mappedin: Mappedin): Promise<MappedinTheme[]>;
|
|
13
|
-
toJSON(): any;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=MappedinTheme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MappedinTheme.d.ts","sourceRoot":"","sources":["../../src/MappedinTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C,qBAAa,aAAa;;IACxB;;;;OAIG;IACH,EAAE,SAAM;gBAII,IAAI,EAAE,GAAG;IAKrB,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,GAAG,aAAa,EAAE;WAI/B,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAgBhE,MAAM;CAGP"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { getArray } from './utils';
|
|
2
|
-
/*
|
|
3
|
-
* An Apollo Theme.
|
|
4
|
-
*
|
|
5
|
-
* @class MappedinTheme
|
|
6
|
-
*/
|
|
7
|
-
export class MappedinTheme {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
/**
|
|
10
|
-
* Theme ID.
|
|
11
|
-
*
|
|
12
|
-
* @property id {string}
|
|
13
|
-
*/
|
|
14
|
-
this.id = '';
|
|
15
|
-
this.#data = data;
|
|
16
|
-
Object.assign(this, data);
|
|
17
|
-
}
|
|
18
|
-
#data;
|
|
19
|
-
static hydrate(themes) {
|
|
20
|
-
return themes.map((t) => new MappedinTheme(t));
|
|
21
|
-
}
|
|
22
|
-
static async fetch(mappedin) {
|
|
23
|
-
// Is this called themes?
|
|
24
|
-
const fields = mappedin.options.things.themes.slice();
|
|
25
|
-
const query = {
|
|
26
|
-
fields,
|
|
27
|
-
venue: mappedin.options.venue,
|
|
28
|
-
};
|
|
29
|
-
try {
|
|
30
|
-
const data = await getArray(mappedin.options, 'apollo-theme', query);
|
|
31
|
-
return data.map((t) => new MappedinTheme(t));
|
|
32
|
-
}
|
|
33
|
-
catch (e) {
|
|
34
|
-
console.error('Fetch Theme:', e);
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
toJSON() {
|
|
39
|
-
return this.#data;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Mappedin } from './Mappedin';
|
|
2
|
-
import type { TLogo, TOpeningHours } from './Mappedin.API.types';
|
|
3
|
-
/**
|
|
4
|
-
* A {@link MappedinVenue} is a specific place (like a mall) with one or more Maps (typically representing different floors) and Locations (stores, washrooms, elevators, etc).
|
|
5
|
-
*
|
|
6
|
-
* A Venue can have more properties such as 'name' and 'slug'. The {@link Mappedin} 'things' object is where you would specify what properties you want to download for Venues. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
|
|
7
|
-
*
|
|
8
|
-
* See below for an example a 'things' object with available Venue properties specified:
|
|
9
|
-
*
|
|
10
|
-
* things: {
|
|
11
|
-
* venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
|
|
12
|
-
* locations: [],
|
|
13
|
-
* categories: [],
|
|
14
|
-
* maps: []
|
|
15
|
-
* }
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @class MappedinVenue
|
|
19
|
-
*/
|
|
20
|
-
export declare class MappedinVenue {
|
|
21
|
-
#private;
|
|
22
|
-
defaultMap: string;
|
|
23
|
-
address: string;
|
|
24
|
-
city: string;
|
|
25
|
-
countrycode: string;
|
|
26
|
-
externalId: string;
|
|
27
|
-
id: string;
|
|
28
|
-
latitude?: number;
|
|
29
|
-
logo?: TLogo;
|
|
30
|
-
longitude?: number;
|
|
31
|
-
metadata?: any;
|
|
32
|
-
name: string;
|
|
33
|
-
operationHours?: TOpeningHours[];
|
|
34
|
-
postal: string;
|
|
35
|
-
slug: string;
|
|
36
|
-
state: string;
|
|
37
|
-
telephone: string;
|
|
38
|
-
tzid: string;
|
|
39
|
-
tzidOverride: string;
|
|
40
|
-
utcOffset: string;
|
|
41
|
-
website: string;
|
|
42
|
-
constructor(data: any);
|
|
43
|
-
static hydrate(data: any): MappedinVenue;
|
|
44
|
-
static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
|
|
45
|
-
toJSON(): any;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=MappedinVenue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MappedinVenue.d.ts","sourceRoot":"","sources":["../../src/MappedinVenue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGjE;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAa;;IAGxB,UAAU,SAAM;IAEhB,OAAO,SAAM;IAEb,IAAI,SAAM;IAEV,WAAW,SAAM;IAEjB,UAAU,SAAM;IAEhB,EAAE,SAAM;IAER,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,KAAK,CAAC;IAEb,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IAEf,IAAI,SAAM;IAEV,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IAEjC,MAAM,SAAM;IAEZ,IAAI,SAAM;IAEV,KAAK,SAAM;IAEX,SAAS,SAAM;IAEf,IAAI,SAAM;IAEV,YAAY,SAAM;IAElB,SAAS,SAAM;IAEf,OAAO,SAAM;gBAED,IAAI,EAAE,GAAG;IAKrB,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa;WAI3B,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC;IAe9D,MAAM;CAGP"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { getArray } from './utils';
|
|
2
|
-
/**
|
|
3
|
-
* A {@link MappedinVenue} is a specific place (like a mall) with one or more Maps (typically representing different floors) and Locations (stores, washrooms, elevators, etc).
|
|
4
|
-
*
|
|
5
|
-
* A Venue can have more properties such as 'name' and 'slug'. The {@link Mappedin} 'things' object is where you would specify what properties you want to download for Venues. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
|
|
6
|
-
*
|
|
7
|
-
* See below for an example a 'things' object with available Venue properties specified:
|
|
8
|
-
*
|
|
9
|
-
* things: {
|
|
10
|
-
* venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
|
|
11
|
-
* locations: [],
|
|
12
|
-
* categories: [],
|
|
13
|
-
* maps: []
|
|
14
|
-
* }
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @class MappedinVenue
|
|
18
|
-
*/
|
|
19
|
-
export class MappedinVenue {
|
|
20
|
-
constructor(data) {
|
|
21
|
-
this.defaultMap = '';
|
|
22
|
-
this.address = '';
|
|
23
|
-
this.city = '';
|
|
24
|
-
this.countrycode = '';
|
|
25
|
-
this.externalId = '';
|
|
26
|
-
this.id = '';
|
|
27
|
-
this.name = '';
|
|
28
|
-
this.postal = '';
|
|
29
|
-
this.slug = '';
|
|
30
|
-
this.state = '';
|
|
31
|
-
this.telephone = '';
|
|
32
|
-
this.tzid = '';
|
|
33
|
-
this.tzidOverride = '';
|
|
34
|
-
this.utcOffset = '';
|
|
35
|
-
this.website = '';
|
|
36
|
-
this.#data = data;
|
|
37
|
-
Object.assign(this, data);
|
|
38
|
-
}
|
|
39
|
-
#data;
|
|
40
|
-
static hydrate(data) {
|
|
41
|
-
return new MappedinVenue(data);
|
|
42
|
-
}
|
|
43
|
-
static async fetch(mappedin) {
|
|
44
|
-
const query = {
|
|
45
|
-
fields: mappedin.options.things.venue,
|
|
46
|
-
slug: mappedin.options.venue,
|
|
47
|
-
limit: 1,
|
|
48
|
-
};
|
|
49
|
-
try {
|
|
50
|
-
const data = await getArray(mappedin.options, 'venue', query);
|
|
51
|
-
return new MappedinVenue(data[0]);
|
|
52
|
-
}
|
|
53
|
-
catch (e) {
|
|
54
|
-
console.error('Fetch Venue:', e);
|
|
55
|
-
return {};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
toJSON() {
|
|
59
|
-
return this.#data;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Mappedin } from './Mappedin';
|
|
2
|
-
/**
|
|
3
|
-
* A {@link MappedinVortex} is a special entity that represents a link between two or more {@link MappedinMap}s at a given {@link MappedinVenue}. It is typically something like an elevator or stairs. These are also known as Connections in some parts of the system.
|
|
4
|
-
*
|
|
5
|
-
* They can be marked (wheelchair) Accessible or not for pathfinding purposes. If you ask for Accessible directions, paths that include non-accessible Vortexes like Stairs will not be used.
|
|
6
|
-
*
|
|
7
|
-
* @class MappedinVortex
|
|
8
|
-
*/
|
|
9
|
-
export declare class MappedinVortex {
|
|
10
|
-
#private;
|
|
11
|
-
/**
|
|
12
|
-
* Vortex ID.
|
|
13
|
-
*
|
|
14
|
-
* @property id {string}
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
type?: string;
|
|
19
|
-
weight?: number;
|
|
20
|
-
multiplier?: number;
|
|
21
|
-
constructor(data: any);
|
|
22
|
-
static hydrate(vortexes: any): MappedinVortex[];
|
|
23
|
-
static fetch(mappedin: Mappedin): Promise<MappedinVortex[]>;
|
|
24
|
-
toJSON(): any;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=MappedinVortex.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MappedinVortex.d.ts","sourceRoot":"","sources":["../../src/MappedinVortex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C;;;;;;GAMG;AACH,qBAAa,cAAc;;IACzB;;;;OAIG;IACH,EAAE,SAAM;IAIR,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAER,IAAI,EAAE,GAAG;IAKrB,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAG,cAAc,EAAE;WAIlC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IA2BjE,MAAM;CAGP"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { addToSet, getArray } from './utils';
|
|
2
|
-
/**
|
|
3
|
-
* A {@link MappedinVortex} is a special entity that represents a link between two or more {@link MappedinMap}s at a given {@link MappedinVenue}. It is typically something like an elevator or stairs. These are also known as Connections in some parts of the system.
|
|
4
|
-
*
|
|
5
|
-
* They can be marked (wheelchair) Accessible or not for pathfinding purposes. If you ask for Accessible directions, paths that include non-accessible Vortexes like Stairs will not be used.
|
|
6
|
-
*
|
|
7
|
-
* @class MappedinVortex
|
|
8
|
-
*/
|
|
9
|
-
export class MappedinVortex {
|
|
10
|
-
constructor(data) {
|
|
11
|
-
/**
|
|
12
|
-
* Vortex ID.
|
|
13
|
-
*
|
|
14
|
-
* @property id {string}
|
|
15
|
-
*/
|
|
16
|
-
this.id = '';
|
|
17
|
-
this.#data = data;
|
|
18
|
-
Object.assign(this, data);
|
|
19
|
-
}
|
|
20
|
-
#data;
|
|
21
|
-
static hydrate(vortexes) {
|
|
22
|
-
return vortexes.map((v) => new MappedinVortex(v));
|
|
23
|
-
}
|
|
24
|
-
static async fetch(mappedin) {
|
|
25
|
-
const fields = mappedin.options.things.vortexes.slice();
|
|
26
|
-
// Some fields are required for offline directions
|
|
27
|
-
const requiredFields = [
|
|
28
|
-
'name',
|
|
29
|
-
'type',
|
|
30
|
-
'accessible',
|
|
31
|
-
'weight',
|
|
32
|
-
'multiplier',
|
|
33
|
-
'nodes',
|
|
34
|
-
];
|
|
35
|
-
requiredFields.forEach(function (field) {
|
|
36
|
-
addToSet(fields, field);
|
|
37
|
-
});
|
|
38
|
-
const query = {
|
|
39
|
-
fields,
|
|
40
|
-
venue: mappedin.options.venue,
|
|
41
|
-
};
|
|
42
|
-
try {
|
|
43
|
-
const data = await getArray(mappedin.options, 'vortex', query);
|
|
44
|
-
return data.map((v) => new MappedinVortex(v));
|
|
45
|
-
}
|
|
46
|
-
catch (e) {
|
|
47
|
-
console.error('Fetch Vortexes:', e);
|
|
48
|
-
return [];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
toJSON() {
|
|
52
|
-
return this.#data;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const defaultThings: {
|
|
2
|
-
venue: string[];
|
|
3
|
-
nodes: string[];
|
|
4
|
-
vortexes: string[];
|
|
5
|
-
polygons: string[];
|
|
6
|
-
locations: string[];
|
|
7
|
-
categories: string[];
|
|
8
|
-
maps: string[];
|
|
9
|
-
mapGroups: string[];
|
|
10
|
-
themes: string[];
|
|
11
|
-
rankings: string[];
|
|
12
|
-
locationRankings: never[];
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=default-things.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-things.d.ts","sourceRoot":"","sources":["../../src/default-things.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;CA2DzB,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export const defaultThings = {
|
|
2
|
-
venue: [
|
|
3
|
-
'slug',
|
|
4
|
-
'name',
|
|
5
|
-
'defaultMap',
|
|
6
|
-
'metadata',
|
|
7
|
-
'countrycode',
|
|
8
|
-
'tzid',
|
|
9
|
-
'logo',
|
|
10
|
-
'externalId',
|
|
11
|
-
],
|
|
12
|
-
nodes: ['externalId', 'x', 'y', 'paths', 'accessible', 'operationHours'],
|
|
13
|
-
vortexes: ['externalId', 'nodes', 'types', 'accessible'],
|
|
14
|
-
polygons: [
|
|
15
|
-
'vertexes',
|
|
16
|
-
'geometry',
|
|
17
|
-
'canvasBounds',
|
|
18
|
-
'layer',
|
|
19
|
-
'externalId',
|
|
20
|
-
'entrances',
|
|
21
|
-
],
|
|
22
|
-
locations: [
|
|
23
|
-
'externalId',
|
|
24
|
-
'name',
|
|
25
|
-
'type',
|
|
26
|
-
'picture',
|
|
27
|
-
'description',
|
|
28
|
-
'icon',
|
|
29
|
-
'logo',
|
|
30
|
-
'sortOrder',
|
|
31
|
-
'phone',
|
|
32
|
-
'operationHours',
|
|
33
|
-
'social',
|
|
34
|
-
'color',
|
|
35
|
-
'toMap',
|
|
36
|
-
'tags',
|
|
37
|
-
'shortName',
|
|
38
|
-
'detailsUrl',
|
|
39
|
-
'locationState',
|
|
40
|
-
'metadata',
|
|
41
|
-
'siblingGroups',
|
|
42
|
-
'gallery',
|
|
43
|
-
],
|
|
44
|
-
categories: ['name', 'color', 'sortOrder', 'parents'],
|
|
45
|
-
maps: [
|
|
46
|
-
'name',
|
|
47
|
-
'elevation',
|
|
48
|
-
'height',
|
|
49
|
-
'width',
|
|
50
|
-
'layers',
|
|
51
|
-
'shortName',
|
|
52
|
-
'scene',
|
|
53
|
-
'group',
|
|
54
|
-
'x_scale',
|
|
55
|
-
],
|
|
56
|
-
mapGroups: ['name'],
|
|
57
|
-
themes: ['name', 'themeData'],
|
|
58
|
-
rankings: ['polygons'],
|
|
59
|
-
locationRankings: [],
|
|
60
|
-
};
|