@mapxus/mapxus-map-jp 10.0.1 → 10.1.1
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/dist/index.umd.js +2 -2
- package/dist/{mapxus-map-10.0.1-jp.css → mapxus-map-10.1.1-jp.css} +0 -0
- package/dist/mapxus-map-10.1.1-jp.js +0 -0
- package/dist/utils.cjs +1 -1
- package/es/index.d.ts +248 -225
- package/es/index.mjs +891 -856
- package/es/{languages-D7yV3lDz.mjs → languages-Bg_kZzv4.mjs} +24 -23
- package/es/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/mapxus-map-10.0.1-jp.js +0 -0
package/dist/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("d3-dispatch"),n=require("@mapxus/mapxus-auth-jp"),p="10.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("d3-dispatch"),n=require("@mapxus/mapxus-auth-jp"),p="10.1.1",T={version:p},S=T.version,f="https://map-api.mapxus.co.jp/bms",l=10,E=1;class e{static instance;_globalDispatcher;_httpSession;_theme=null;_isSDKInitialized=!1;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}setGlobalDispatcher(s){this._globalDispatcher=s}getGlobalDispatcher(){return this._globalDispatcher}async getHttpSession(){return this._httpSession||(this.registerSDK(),this._httpSession=await n.HTTPSession.create(n.SDKName.MapSDK,n.base64Encode(`version-${S}`)),this._httpSession.setBaseURL(f),this._httpSession.setRetryConfig(3)),this._httpSession}registerSDK(){this._isSDKInitialized||(this._isSDKInitialized=!0,n.reportLog(`${n.SDKName.MapSDK} initialized`))}get theme(){return this._theme}setTheme(s){this._theme=s}clear(){this._httpSession.destroy(),this._globalDispatcher=null,e.instance=null}}const c=["unauthorized","initError"],r=globalThis,o=A.dispatch(...c);e.getInstance().setGlobalDispatcher(o);r.MapxusMapEvents=r.MapxusMapEvents||{};r.MapxusMapEvents.on=function(t,s){return o.on(t,s),{off:()=>o.on(t,null)}};var i=(t=>(t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar",t))(i||{});function I(t){let s=null;return u(t)?s=i.ENGLISH:N(t)?s=i.CHINESE_SIMPLIFIED:_(t)?s=i.CHINESE_TRADITIONAL:O(t)?s=i.CHINESE_TRADITIONAL_TW:R(t)?s=i.JAPANESE:D(t)?s=i.KOREAN:H(t)?s=i.FILIPINO:d(t)?s=i.INDONESIAN:M(t)?s=i.PORTUGUESE:m(t)?s=i.THAI:v(t)?s=i.VIETNAMESE:K(t)&&(s=i.ARABIC),s}function u(t){return/^en(-(US|GB|AU))?$/.test(t)}function N(t){return/^zh(-(Hans|CN))?$/.test(t)}function _(t){return/^zh-(Hant|HK|MO)$/.test(t)}function O(t){return t==="zh-TW"}function R(t){return/^ja(-JP)?$/.test(t)}function D(t){return/^ko(-KR)?$/.test(t)}function H(t){return/^(fil|tl)(-PH)?$/.test(t)}function d(t){return/^id(-ID)?$/.test(t)}function M(t){return/^pt(-(BR|PT))?$/.test(t)}function m(t){return/^th(-TH)?$/.test(t)}function v(t){return/^vi(-VN)?$/.test(t)}function K(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}const h="reserve_mapxus-level-fill",a="reserve_mapxus-shared-level-fill",L={convertBrowserLangToPresetLang:I,VERSION:S,OFFSET:l,PAGE:E,ERRORS:c,ASSISTANT_LAYER_INDOOR_FLOORS:h,ASSISTANT_LAYER_SHARED_FLOORS:a};exports.ASSISTANT_LAYER_INDOOR_FLOORS=h;exports.ASSISTANT_LAYER_SHARED_FLOORS=a;exports.ERRORS=c;exports.OFFSET=l;exports.PAGE=E;exports.VERSION=S;exports.convertBrowserLangToPresetLang=I;exports.default=L;
|
package/es/index.d.ts
CHANGED
|
@@ -43,231 +43,6 @@ export interface ISelectedHighlightStyle {
|
|
|
43
43
|
lineOpacity?: number;
|
|
44
44
|
lineOffset?: number;
|
|
45
45
|
}
|
|
46
|
-
export type TSelectedIndoorData = {
|
|
47
|
-
venue: MapGeoJSONFeature;
|
|
48
|
-
building: MapGeoJSONFeature;
|
|
49
|
-
floor?: IFloor;
|
|
50
|
-
} | {
|
|
51
|
-
sharedFloor: ISharedFloor;
|
|
52
|
-
venue: MapGeoJSONFeature;
|
|
53
|
-
} | null;
|
|
54
|
-
export type TFeatureMap = Map<string, MapGeoJSONFeature>;
|
|
55
|
-
export interface ILayeredOptions {
|
|
56
|
-
selectedVenueId: string | null;
|
|
57
|
-
venueMap: TFeatureMap;
|
|
58
|
-
buildingMap: TFeatureMap;
|
|
59
|
-
sharedFloorMap: TFeatureMap;
|
|
60
|
-
}
|
|
61
|
-
export interface IDisplayedLevel {
|
|
62
|
-
level: string;
|
|
63
|
-
overlap: string[] | null;
|
|
64
|
-
venueId: string;
|
|
65
|
-
}
|
|
66
|
-
export interface ILayeredData {
|
|
67
|
-
displayedLevels: IDisplayedLevel[];
|
|
68
|
-
selectedLevelIds: string[];
|
|
69
|
-
alwaysDisplayedSharedLevelIds: string[];
|
|
70
|
-
maskBuildingIds: string[];
|
|
71
|
-
maskSharedFloorIds: string[];
|
|
72
|
-
}
|
|
73
|
-
declare class FloorsLayeredHandler {
|
|
74
|
-
private _isMaskMode;
|
|
75
|
-
private _hiddenBuildings;
|
|
76
|
-
private _history;
|
|
77
|
-
constructor(maskMode: boolean);
|
|
78
|
-
getLayeredData(options: ILayeredOptions): ILayeredData;
|
|
79
|
-
getHiddenBuildings(): string[];
|
|
80
|
-
}
|
|
81
|
-
declare class DragPanHandler {
|
|
82
|
-
private _maplibre;
|
|
83
|
-
private _isAnimated;
|
|
84
|
-
private _bounds;
|
|
85
|
-
private _boundsPadding;
|
|
86
|
-
private _center;
|
|
87
|
-
private _fitBoundsTimer;
|
|
88
|
-
constructor(maplibre: maplibregl$1.Map, padding: number | PaddingOptions);
|
|
89
|
-
setAnimated(animated: boolean): void;
|
|
90
|
-
setBounds(bounds: LngLatBoundsLike | null): void;
|
|
91
|
-
getBounds(): LngLatBoundsLike | null;
|
|
92
|
-
setCenter(lnglat: LngLatLike | null): void;
|
|
93
|
-
fitBounds(): Promise<unknown>;
|
|
94
|
-
panToCenter(): void;
|
|
95
|
-
}
|
|
96
|
-
export declare class Indoor extends TinyEmitter {
|
|
97
|
-
private _map;
|
|
98
|
-
private _features;
|
|
99
|
-
private _allVenuesMap;
|
|
100
|
-
private _allBuildingsMap;
|
|
101
|
-
private _allSharedLevelsMap;
|
|
102
|
-
private _curBuildingId;
|
|
103
|
-
private _curBuildingFeature;
|
|
104
|
-
private _curSharedLevelId;
|
|
105
|
-
private _floor;
|
|
106
|
-
private _sharedFloor;
|
|
107
|
-
private _outdoorMapShown;
|
|
108
|
-
private _originIndoorLayers;
|
|
109
|
-
private _outdoorLayers;
|
|
110
|
-
private _curVenueId;
|
|
111
|
-
private _curVenueFeature;
|
|
112
|
-
private _selectedHighlightStyle;
|
|
113
|
-
private _upperLayers;
|
|
114
|
-
private _commonPoiLayers;
|
|
115
|
-
private _sectionFillLineLayers;
|
|
116
|
-
private _sectionSymbolLayers;
|
|
117
|
-
private _middleLayers;
|
|
118
|
-
private _lowerLayers;
|
|
119
|
-
private _excludedPoisInMiddle;
|
|
120
|
-
private _dispatch;
|
|
121
|
-
private readonly _startWithIndoorView;
|
|
122
|
-
private _indoorMapLoaded;
|
|
123
|
-
private _isSelectSharedFloor;
|
|
124
|
-
private readonly _isMaskMode;
|
|
125
|
-
private _upperLevels;
|
|
126
|
-
private _middleLevels;
|
|
127
|
-
private _lowerLevels;
|
|
128
|
-
private _featureIncomplete;
|
|
129
|
-
private _fitBounds;
|
|
130
|
-
private _dragPan;
|
|
131
|
-
private _history;
|
|
132
|
-
private _maskBuildings;
|
|
133
|
-
private _maskSharedFloors;
|
|
134
|
-
private _enableIndoorClickSelection;
|
|
135
|
-
private _enableOutdoorClickSelection;
|
|
136
|
-
private _zIndexHistory;
|
|
137
|
-
private _floorSwitchScope;
|
|
138
|
-
private _isDestroyed;
|
|
139
|
-
private _abortQueryFeature;
|
|
140
|
-
private _debounceRendering;
|
|
141
|
-
layeredHandler: FloorsLayeredHandler;
|
|
142
|
-
dragPanHandler: DragPanHandler;
|
|
143
|
-
constructor(props: {
|
|
144
|
-
map: maplibregl$1.Map;
|
|
145
|
-
fitBounds: boolean;
|
|
146
|
-
boundsPadding: number | PaddingOptions;
|
|
147
|
-
maskNonSelectedAreas: boolean;
|
|
148
|
-
startWithIndoorView: boolean;
|
|
149
|
-
outdoorMapShown: boolean;
|
|
150
|
-
enableIndoorClickSelection: boolean;
|
|
151
|
-
enableOutdoorClickSelection: boolean;
|
|
152
|
-
floorSwitchScope: FloorSwitchScope;
|
|
153
|
-
selectedHighlightStyle?: ISelectedHighlightStyle;
|
|
154
|
-
});
|
|
155
|
-
destroy(): void;
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated
|
|
158
|
-
* Set whether to allow exiting building.
|
|
159
|
-
* @param allow
|
|
160
|
-
*/
|
|
161
|
-
setAllowOutdoorSwitch(allow: boolean): this;
|
|
162
|
-
/**
|
|
163
|
-
* @deprecated
|
|
164
|
-
* Set whether to allow switching building.
|
|
165
|
-
* @param allow
|
|
166
|
-
*/
|
|
167
|
-
setAllowBuildingSwitch(allow: boolean): this;
|
|
168
|
-
setAllowIndoorClickSelect(allow: boolean): void;
|
|
169
|
-
setAllowOutdoorClickSelect(allow: boolean): void;
|
|
170
|
-
setFloorSwitchScope(scope: FloorSwitchScope): void;
|
|
171
|
-
/**
|
|
172
|
-
* Get the current floor's information.
|
|
173
|
-
*/
|
|
174
|
-
get floor(): IFloor | ISharedFloor | null;
|
|
175
|
-
/**
|
|
176
|
-
* Get the current building's information.
|
|
177
|
-
* @returns {MapGeoJSONFeature | null}
|
|
178
|
-
*/
|
|
179
|
-
get building(): MapGeoJSONFeature | null;
|
|
180
|
-
/**
|
|
181
|
-
* Get the current venue's information.
|
|
182
|
-
* @returns {MapGeoJSONFeature | null}
|
|
183
|
-
*/
|
|
184
|
-
get venue(): MapGeoJSONFeature | null;
|
|
185
|
-
/**
|
|
186
|
-
* Get the geo features of bbox.
|
|
187
|
-
*/
|
|
188
|
-
get features(): MapGeoJSONFeature[];
|
|
189
|
-
/**
|
|
190
|
-
* Get features from bbox by id.
|
|
191
|
-
* @param id
|
|
192
|
-
* @param options
|
|
193
|
-
*/
|
|
194
|
-
getFeaturesById(id: string, options?: {
|
|
195
|
-
layerIds?: string[];
|
|
196
|
-
filter?: (feature: MapGeoJSONFeature) => boolean;
|
|
197
|
-
}): MapGeoJSONFeature[];
|
|
198
|
-
/**
|
|
199
|
-
* Switch floor by ordinal.
|
|
200
|
-
* @param ordinal
|
|
201
|
-
*/
|
|
202
|
-
switchFloorByOrdinal(ordinal: string | null): Promise<void>;
|
|
203
|
-
setOutdoorMapShown(shown: boolean): void;
|
|
204
|
-
/**
|
|
205
|
-
* Set the style of the selected floor border. If set to null, the border will be invisible.
|
|
206
|
-
* @param style {ISelectedHighlightStyle | null}
|
|
207
|
-
*/
|
|
208
|
-
setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): void;
|
|
209
|
-
/**
|
|
210
|
-
* Listen for the indoor map state, including the changes of venue, building and floor.
|
|
211
|
-
* @param listener
|
|
212
|
-
*/
|
|
213
|
-
onMapChange(listener: (params: {
|
|
214
|
-
venue: MapGeoJSONFeature | null;
|
|
215
|
-
building: MapGeoJSONFeature | null;
|
|
216
|
-
floor: IFloor;
|
|
217
|
-
}) => void): {
|
|
218
|
-
unsubscribe: VoidFunction;
|
|
219
|
-
};
|
|
220
|
-
/**
|
|
221
|
-
* Select a building feature
|
|
222
|
-
* @param feature {MapGeoJSONFeature | null}
|
|
223
|
-
* @param options {floorId?: string, dragPan?: boolean}
|
|
224
|
-
*/
|
|
225
|
-
selectBuilding(feature: MapGeoJSONFeature | null, options?: {
|
|
226
|
-
floorId?: string;
|
|
227
|
-
featureIncomplete?: boolean;
|
|
228
|
-
}): Promise<void>;
|
|
229
|
-
selectSharedFloor(sharedFloor: ISharedFloor, venue: MapGeoJSONFeature, options?: {
|
|
230
|
-
featureIncomplete?: boolean;
|
|
231
|
-
}): Promise<void>;
|
|
232
|
-
updateCustomLayers(): void;
|
|
233
|
-
updateRendering(): void;
|
|
234
|
-
panToBuildingCenter(): Promise<void>;
|
|
235
|
-
panToVenueCenter(): Promise<void>;
|
|
236
|
-
private _waitForFeatureLoaded;
|
|
237
|
-
setDragPan(dragPan: boolean | "restrict"): void;
|
|
238
|
-
setFitBounds(fitBounds: boolean): void;
|
|
239
|
-
queryIndoorFeaturesByClickPoint(point: PointLike): Promise<TSelectedIndoorData>;
|
|
240
|
-
selectByClickMap(data: TSelectedIndoorData): Promise<void>;
|
|
241
|
-
private _bindMaplibreEventListeners;
|
|
242
|
-
private _clear;
|
|
243
|
-
private _getIndoorFeatures;
|
|
244
|
-
private _getBuildingFloorByOrdinal;
|
|
245
|
-
private _isCurrentFeature;
|
|
246
|
-
private _setOutdoorVisibility;
|
|
247
|
-
private _addReserveFloorLayers;
|
|
248
|
-
private _addBuildingMaskLayer;
|
|
249
|
-
private _updateUnselectedMask;
|
|
250
|
-
private _addSelectedHighlightLayers;
|
|
251
|
-
private _filterSelectedHighlight;
|
|
252
|
-
private _copyOverlapLayers;
|
|
253
|
-
private _copySharedFloorBackgroundLayers;
|
|
254
|
-
private _updateFeatures;
|
|
255
|
-
private _calExcludedPoisInMiddle;
|
|
256
|
-
private _updateSelectedFeatures;
|
|
257
|
-
private _layerFloors;
|
|
258
|
-
private _layerSelectedLevels;
|
|
259
|
-
private _layerUnselectedLevels;
|
|
260
|
-
private _filterLayers;
|
|
261
|
-
private _filterIndoorLayers;
|
|
262
|
-
private _queryVenueFeature;
|
|
263
|
-
private _getBuildingDisplayedOrdinal;
|
|
264
|
-
private _updateFloorState;
|
|
265
|
-
private _checkAndPanToBuilding;
|
|
266
|
-
private _queryVisibleFeature;
|
|
267
|
-
private _queryRenderedFeatures;
|
|
268
|
-
private _dispatchIndoorMapLoaded;
|
|
269
|
-
private _changeOtherVenuesHistory;
|
|
270
|
-
}
|
|
271
46
|
export interface ILocation {
|
|
272
47
|
lat: number;
|
|
273
48
|
lon: number;
|
|
@@ -511,6 +286,223 @@ export interface IMapChangeEvent {
|
|
|
511
286
|
building: MapGeoJSONFeature | null;
|
|
512
287
|
floor: IFloor | ISharedFloor | null;
|
|
513
288
|
}
|
|
289
|
+
export type TFeatureMap = Map<string, MapGeoJSONFeature>;
|
|
290
|
+
export interface ILayeredOptions {
|
|
291
|
+
selectedVenueId: string | null;
|
|
292
|
+
venueMap: TFeatureMap;
|
|
293
|
+
buildingMap: TFeatureMap;
|
|
294
|
+
sharedFloorMap: TFeatureMap;
|
|
295
|
+
}
|
|
296
|
+
export interface IDisplayedLevel {
|
|
297
|
+
level: string;
|
|
298
|
+
overlap: string[] | null;
|
|
299
|
+
venueId: string;
|
|
300
|
+
}
|
|
301
|
+
export interface ILayeredData {
|
|
302
|
+
displayedLevels: IDisplayedLevel[];
|
|
303
|
+
selectedLevelIds: string[];
|
|
304
|
+
alwaysDisplayedSharedLevelIds: string[];
|
|
305
|
+
maskBuildingIds: string[];
|
|
306
|
+
maskSharedFloorIds: string[];
|
|
307
|
+
}
|
|
308
|
+
declare class FloorsLayeredHandler {
|
|
309
|
+
private _isMaskMode;
|
|
310
|
+
private _hiddenBuildings;
|
|
311
|
+
private _history;
|
|
312
|
+
constructor(maskMode: boolean);
|
|
313
|
+
getLayeredData(options: ILayeredOptions): ILayeredData;
|
|
314
|
+
getHiddenBuildings(): string[];
|
|
315
|
+
}
|
|
316
|
+
declare class DragPanHandler {
|
|
317
|
+
private _maplibre;
|
|
318
|
+
private _isAnimated;
|
|
319
|
+
private _bounds;
|
|
320
|
+
private _boundsPadding;
|
|
321
|
+
private _center;
|
|
322
|
+
private _fitBoundsTimer;
|
|
323
|
+
constructor(maplibre: maplibregl$1.Map, padding: number | PaddingOptions);
|
|
324
|
+
setAnimated(animated: boolean): void;
|
|
325
|
+
setBounds(bounds: LngLatBoundsLike | null): void;
|
|
326
|
+
getBounds(): LngLatBoundsLike | null;
|
|
327
|
+
setCenter(lnglat: LngLatLike | null): void;
|
|
328
|
+
fitBounds(): Promise<unknown>;
|
|
329
|
+
panToCenter(): void;
|
|
330
|
+
}
|
|
331
|
+
export declare class Indoor extends TinyEmitter {
|
|
332
|
+
private _map;
|
|
333
|
+
private _features;
|
|
334
|
+
private _allVenuesMap;
|
|
335
|
+
private _allBuildingsMap;
|
|
336
|
+
private _allSharedLevelsMap;
|
|
337
|
+
private _curBuildingId;
|
|
338
|
+
private _curBuildingFeature;
|
|
339
|
+
private _curSharedLevelId;
|
|
340
|
+
private _floor;
|
|
341
|
+
private _sharedFloor;
|
|
342
|
+
private _outdoorMapShown;
|
|
343
|
+
private _originIndoorLayers;
|
|
344
|
+
private _outdoorLayers;
|
|
345
|
+
private _curVenueId;
|
|
346
|
+
private _curVenueFeature;
|
|
347
|
+
private _selectedHighlightStyle;
|
|
348
|
+
private _upperLayers;
|
|
349
|
+
private _commonPoiLayers;
|
|
350
|
+
private _sectionFillLineLayers;
|
|
351
|
+
private _sectionSymbolLayers;
|
|
352
|
+
private _middleLayers;
|
|
353
|
+
private _lowerLayers;
|
|
354
|
+
private _excludedPoisInMiddle;
|
|
355
|
+
private _dispatch;
|
|
356
|
+
private readonly _startWithIndoorView;
|
|
357
|
+
private _indoorMapLoaded;
|
|
358
|
+
private _isSelectSharedFloor;
|
|
359
|
+
private readonly _isMaskMode;
|
|
360
|
+
private _upperLevels;
|
|
361
|
+
private _middleLevels;
|
|
362
|
+
private _lowerLevels;
|
|
363
|
+
private _featureIncomplete;
|
|
364
|
+
private _fitBounds;
|
|
365
|
+
private _dragPan;
|
|
366
|
+
private _history;
|
|
367
|
+
private _maskBuildings;
|
|
368
|
+
private _maskSharedFloors;
|
|
369
|
+
private _enableIndoorClickSelection;
|
|
370
|
+
private _enableOutdoorClickSelection;
|
|
371
|
+
private _zIndexHistory;
|
|
372
|
+
private _floorSwitchScope;
|
|
373
|
+
private _isDestroyed;
|
|
374
|
+
private _abortQueryFeature;
|
|
375
|
+
private _debounceRendering;
|
|
376
|
+
layeredHandler: FloorsLayeredHandler;
|
|
377
|
+
dragPanHandler: DragPanHandler;
|
|
378
|
+
constructor(props: {
|
|
379
|
+
map: maplibregl$1.Map;
|
|
380
|
+
fitBounds: boolean;
|
|
381
|
+
boundsPadding: number | PaddingOptions;
|
|
382
|
+
maskNonSelectedAreas: boolean;
|
|
383
|
+
startWithIndoorView: boolean;
|
|
384
|
+
outdoorMapShown: boolean;
|
|
385
|
+
enableIndoorClickSelection: boolean;
|
|
386
|
+
enableOutdoorClickSelection: boolean;
|
|
387
|
+
floorSwitchScope: FloorSwitchScope;
|
|
388
|
+
selectedHighlightStyle?: ISelectedHighlightStyle;
|
|
389
|
+
});
|
|
390
|
+
destroy(): void;
|
|
391
|
+
/**
|
|
392
|
+
* @deprecated
|
|
393
|
+
* Set whether to allow exiting building.
|
|
394
|
+
* @param allow
|
|
395
|
+
*/
|
|
396
|
+
setAllowOutdoorSwitch(allow: boolean): this;
|
|
397
|
+
/**
|
|
398
|
+
* @deprecated
|
|
399
|
+
* Set whether to allow switching building.
|
|
400
|
+
* @param allow
|
|
401
|
+
*/
|
|
402
|
+
setAllowBuildingSwitch(allow: boolean): this;
|
|
403
|
+
setAllowIndoorClickSelect(allow: boolean): void;
|
|
404
|
+
setAllowOutdoorClickSelect(allow: boolean): void;
|
|
405
|
+
setFloorSwitchScope(scope: FloorSwitchScope): void;
|
|
406
|
+
/**
|
|
407
|
+
* Get the current floor's information.
|
|
408
|
+
*/
|
|
409
|
+
get floor(): IFloor | ISharedFloor | null;
|
|
410
|
+
/**
|
|
411
|
+
* Get the current building's information.
|
|
412
|
+
* @returns {MapGeoJSONFeature | null}
|
|
413
|
+
*/
|
|
414
|
+
get building(): MapGeoJSONFeature | null;
|
|
415
|
+
/**
|
|
416
|
+
* Get the current venue's information.
|
|
417
|
+
* @returns {MapGeoJSONFeature | null}
|
|
418
|
+
*/
|
|
419
|
+
get venue(): MapGeoJSONFeature | null;
|
|
420
|
+
/**
|
|
421
|
+
* Get the geo features of bbox.
|
|
422
|
+
*/
|
|
423
|
+
get features(): MapGeoJSONFeature[];
|
|
424
|
+
/**
|
|
425
|
+
* Get features from bbox by id.
|
|
426
|
+
* @param id
|
|
427
|
+
* @param options
|
|
428
|
+
*/
|
|
429
|
+
getFeaturesById(id: string, options?: {
|
|
430
|
+
layerIds?: string[];
|
|
431
|
+
filter?: (feature: MapGeoJSONFeature) => boolean;
|
|
432
|
+
}): MapGeoJSONFeature[];
|
|
433
|
+
/**
|
|
434
|
+
* Switch floor by ordinal.
|
|
435
|
+
* @param ordinal
|
|
436
|
+
*/
|
|
437
|
+
switchFloorByOrdinal(ordinal: string | null): Promise<void>;
|
|
438
|
+
setOutdoorMapShown(shown: boolean): void;
|
|
439
|
+
/**
|
|
440
|
+
* Set the style of the selected floor border. If set to null, the border will be invisible.
|
|
441
|
+
* @param style {ISelectedHighlightStyle | null}
|
|
442
|
+
*/
|
|
443
|
+
setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): void;
|
|
444
|
+
/**
|
|
445
|
+
* Listen for the indoor map state, including the changes of venue, building and floor.
|
|
446
|
+
* @param listener
|
|
447
|
+
*/
|
|
448
|
+
onMapChange(listener: (params: {
|
|
449
|
+
venue: MapGeoJSONFeature | null;
|
|
450
|
+
building: MapGeoJSONFeature | null;
|
|
451
|
+
floor: IFloor;
|
|
452
|
+
}) => void): {
|
|
453
|
+
unsubscribe: VoidFunction;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* Select a building feature
|
|
457
|
+
* @param feature {MapGeoJSONFeature | null}
|
|
458
|
+
* @param options {floorId?: string, dragPan?: boolean}
|
|
459
|
+
*/
|
|
460
|
+
selectBuilding(feature: MapGeoJSONFeature | null, options?: {
|
|
461
|
+
floorId?: string;
|
|
462
|
+
featureIncomplete?: boolean;
|
|
463
|
+
}): Promise<void>;
|
|
464
|
+
selectSharedFloor(sharedFloor: ISharedFloor, venue: MapGeoJSONFeature, options?: {
|
|
465
|
+
featureIncomplete?: boolean;
|
|
466
|
+
}): Promise<void>;
|
|
467
|
+
updateCustomLayers(): void;
|
|
468
|
+
updateRendering(): void;
|
|
469
|
+
panToBuildingCenter(): Promise<void>;
|
|
470
|
+
panToVenueCenter(): Promise<void>;
|
|
471
|
+
private _waitForFeatureLoaded;
|
|
472
|
+
setDragPan(dragPan: boolean | "restrict"): void;
|
|
473
|
+
setFitBounds(fitBounds: boolean): void;
|
|
474
|
+
selectByClickMap(data: IMapClickEvent): Promise<void>;
|
|
475
|
+
queryIndoorInfoByPoint(point: PointLike): IMapClickEvent;
|
|
476
|
+
private _bindMaplibreEventListeners;
|
|
477
|
+
private _clear;
|
|
478
|
+
private _getIndoorFeatures;
|
|
479
|
+
private _getBuildingFloorByOrdinal;
|
|
480
|
+
private _isCurrentFeature;
|
|
481
|
+
private _setOutdoorVisibility;
|
|
482
|
+
private _addReserveFloorLayers;
|
|
483
|
+
private _addBuildingMaskLayer;
|
|
484
|
+
private _updateUnselectedMask;
|
|
485
|
+
private _addSelectedHighlightLayers;
|
|
486
|
+
private _filterSelectedHighlight;
|
|
487
|
+
private _copyOverlapLayers;
|
|
488
|
+
private _copySharedFloorBackgroundLayers;
|
|
489
|
+
private _updateFeatures;
|
|
490
|
+
private _calExcludedPoisInMiddle;
|
|
491
|
+
private _updateSelectedFeatures;
|
|
492
|
+
private _layerFloors;
|
|
493
|
+
private _layerSelectedLevels;
|
|
494
|
+
private _layerUnselectedLevels;
|
|
495
|
+
private _filterLayers;
|
|
496
|
+
private _filterIndoorLayers;
|
|
497
|
+
private _queryVenueFeature;
|
|
498
|
+
private _getBuildingDisplayedOrdinal;
|
|
499
|
+
private _updateFloorState;
|
|
500
|
+
private _checkAndPanToBuilding;
|
|
501
|
+
private _queryVisibleFeature;
|
|
502
|
+
private _queryRenderedFeatures;
|
|
503
|
+
private _dispatchIndoorMapLoaded;
|
|
504
|
+
private _changeOtherVenuesHistory;
|
|
505
|
+
}
|
|
514
506
|
export declare class BuildingFilterControl implements IControl {
|
|
515
507
|
private _map;
|
|
516
508
|
private _maplibre;
|
|
@@ -915,6 +907,13 @@ declare class Map$1 implements IMapxusMap {
|
|
|
915
907
|
*/
|
|
916
908
|
setOutdoorMapShown(shown: boolean): void;
|
|
917
909
|
/**
|
|
910
|
+
* Query indoor features and coordinate by screen point.
|
|
911
|
+
* @param point
|
|
912
|
+
* @returns
|
|
913
|
+
*/
|
|
914
|
+
queryIndoorInfoByPoint(point: PointLike): IMapClickEvent;
|
|
915
|
+
/**
|
|
916
|
+
* @deprecated Use "queryIndoorInfoByPoint()" instead.
|
|
918
917
|
* Query indoor features by screen point({x, y}).
|
|
919
918
|
* @param point
|
|
920
919
|
* @returns
|
|
@@ -1274,6 +1273,19 @@ export declare class RoutePainter {
|
|
|
1274
1273
|
private _updateLayers;
|
|
1275
1274
|
private _filterRouteOpacity;
|
|
1276
1275
|
}
|
|
1276
|
+
export declare enum FeatureType {
|
|
1277
|
+
Poi = "POI"
|
|
1278
|
+
}
|
|
1279
|
+
export interface ICategoryTree {
|
|
1280
|
+
category: string;
|
|
1281
|
+
child: ICategoryTree[];
|
|
1282
|
+
description: string | null;
|
|
1283
|
+
featureType: FeatureType;
|
|
1284
|
+
id: string;
|
|
1285
|
+
parents: string[];
|
|
1286
|
+
title: TMultilingualString;
|
|
1287
|
+
}
|
|
1288
|
+
export type TCategoryTreesResponse = IResponse<ICategoryTree[]>;
|
|
1277
1289
|
export interface IVenueInlineSharedFloor extends IFloorBase, IMapServices {
|
|
1278
1290
|
name: IMultilingualName;
|
|
1279
1291
|
refBuilding: Array<string>;
|
|
@@ -1720,6 +1732,7 @@ export declare class PoisService {
|
|
|
1720
1732
|
*/
|
|
1721
1733
|
searchByCategory(options: TSearchByCategoryOptions): Promise<TPoiResponse<TPoi | TSharedPoi>>;
|
|
1722
1734
|
/**
|
|
1735
|
+
* @deprecated Use CategoryService.searchCategories() instead.
|
|
1723
1736
|
* Search poi categories by venue id, building id, or floor id.
|
|
1724
1737
|
* @param {TSearchCategoriesOptions} options
|
|
1725
1738
|
*/
|
|
@@ -1735,6 +1748,15 @@ export declare class RouteService {
|
|
|
1735
1748
|
*/
|
|
1736
1749
|
search(options: IRouteSearchOptions): Promise<IResponse<IResponseRoute>>;
|
|
1737
1750
|
}
|
|
1751
|
+
export declare class CategoryService {
|
|
1752
|
+
constructor();
|
|
1753
|
+
/**
|
|
1754
|
+
* Search poi categories by venue id, building id, or floor id.
|
|
1755
|
+
* @param {TSearchCategoriesOptions} options
|
|
1756
|
+
*/
|
|
1757
|
+
searchCategories(options: TSearchCategoriesOptions): Promise<TCategoriesResponse>;
|
|
1758
|
+
searchCategoryTrees(featureType: FeatureType): Promise<TCategoryTreesResponse>;
|
|
1759
|
+
}
|
|
1738
1760
|
export interface IMapxusLib {
|
|
1739
1761
|
Map: typeof Map$1;
|
|
1740
1762
|
/** @deprecated */
|
|
@@ -1758,6 +1780,7 @@ export interface IMapxusLib {
|
|
|
1758
1780
|
BuildingsService: typeof BuildingsService;
|
|
1759
1781
|
PoisService: typeof PoisService;
|
|
1760
1782
|
RouteService: typeof RouteService;
|
|
1783
|
+
CategoryService: typeof CategoryService;
|
|
1761
1784
|
}
|
|
1762
1785
|
declare const mapxusLib: IMapxusLib;
|
|
1763
1786
|
|