@mapxus/mapxus-map-jp 9.2.0 → 9.3.0

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/es/index.d.ts CHANGED
@@ -43,6 +43,10 @@ export declare enum ThemeType {
43
43
  SECTION_DISPLAY_BY_COLOR = "mapxus_v7_with_section_v2",
44
44
  SECTION_DISPLAY_BY_CATEGORY = "mapxus_v7_with_section_v3"
45
45
  }
46
+ export declare enum FloorSwitchScope {
47
+ VENUE = 0,
48
+ GLOBAL = 1
49
+ }
46
50
  export declare enum AccessControlOrigin {
47
51
  Access = "access_control",
48
52
  Map = "map"
@@ -305,23 +309,23 @@ export interface IMapOtherOptions {
305
309
  floorSelectorEnabled?: boolean;
306
310
  buildingSelectorEnabled?: boolean;
307
311
  /**
308
- * @description 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
312
+ * 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
309
313
  * the priority is: poiId > floorId > buildingId > venueId.
310
314
  */
311
315
  venueId?: string;
312
316
  /**
313
- * @description 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
317
+ * 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
314
318
  * the priority is: poiId > floorId > buildingId > venueId.
315
319
  */
316
320
  buildingId?: string;
317
321
  /**
318
- * @description 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
322
+ * 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
319
323
  * the priority is: poiId > floorId > buildingId > venueId.
320
324
  */
321
325
  floorId?: string;
322
326
  sharedFloorId?: string;
323
327
  /**
324
- * @description Initialize the map with POI as the center point, use it with maplibregl.Map 'zoom' option.
328
+ * Initialize the map with POI as the center point, use it with maplibregl.Map 'zoom' option.
325
329
  * 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
326
330
  * the priority is: poiId > floorId > buildingId > venueId.
327
331
  */
@@ -333,30 +337,31 @@ export interface IMapOtherOptions {
333
337
  selectedHighlightStyle?: ISelectedHighlightStyle;
334
338
  floorSelectorStyle?: IFloorSelectorStyle;
335
339
  /**
336
- * @description Whether unselected buildings are masked, default is false.
340
+ * Whether unselected buildings are masked, default is false.
337
341
  */
338
342
  maskNonSelectedAreas?: boolean;
339
343
  /**
340
344
  * @deprecated use "fitBounds" instead.
341
- * @description Whether the boundary of the selected building fits the screen, default is false.
345
+ * Whether the boundary of the selected building fits the screen, default is false.
342
346
  * Can only be used for 'floorId', 'buildingId' and 'venueId' initialization, not for 'poiId'.
343
347
  * When it is true, the 'boundsPadding' option is valid, and the 'zoom' option of maplibregl.Map is invalid.
344
348
  */
345
349
  fitBuildingBounds?: boolean;
346
350
  fitBounds?: boolean;
347
351
  /**
348
- * @description The amount of padding in pixels to add to the given bounds, default is 30.
352
+ * The amount of padding in pixels to add to the given bounds, default is 30.
349
353
  * Requires 'fitBuildingBounds' to be 'true'.
350
354
  * Parameter value ref to: https://maplibre.org/maplibre-gl-js/docs/API/types/maplibregl.PaddingOptions/
351
355
  */
352
356
  boundsPadding?: number | maplibregl$1.PaddingOptions;
353
357
  language?: PresetLanguage;
354
- /** @description Auto Select Building by panning building to map center, default is false. */
358
+ /** Auto Select Building by panning building to map center, default is false. */
355
359
  autoSelectBuilding?: boolean;
356
360
  transformRequest?: maplibregl$1.RequestTransformFunction | null;
357
361
  mapxusLogoEnabled?: boolean;
358
362
  enableIndoorClickSelection?: boolean;
359
363
  enableOutdoorClickSelection?: boolean;
364
+ floorSwitchScope?: FloorSwitchScope;
360
365
  }
361
366
  export interface IMapAccessWithAppId {
362
367
  appId: string;
@@ -470,19 +475,157 @@ export interface IRoutePoint {
470
475
  }
471
476
  export interface IRouteSearchOptions {
472
477
  /**
473
- * @description Points are in order, from -> stops -> to.
478
+ * Points are in order, from -> stops -> to.
474
479
  * The length of points must be: 1 < {points.length} < 6.
475
480
  */
476
481
  points: IRoutePoint[];
477
482
  /**
478
- * @description Default is "foot".
483
+ * Default is "foot".
479
484
  */
480
485
  vehicle?: VehicleType;
481
486
  /**
482
- * @description Language-specific response. Default is "en".
487
+ * Language-specific response. Default is "en".
483
488
  */
484
489
  locale?: PresetLanguage;
485
490
  }
491
+ export interface IRouteMarkers {
492
+ from: string | null;
493
+ to: string | null;
494
+ stops: Array<string | null> | null;
495
+ }
496
+ export interface IRouteStyle<T> {
497
+ indoorLineColor?: string | ExpressionSpecification;
498
+ outdoorLineColor?: string | ExpressionSpecification;
499
+ dashedLineColor?: string | ExpressionSpecification;
500
+ shuttleBusLineColor?: string | ExpressionSpecification;
501
+ lineWidth?: number | ExpressionSpecification;
502
+ dashedLineWidth?: number | ExpressionSpecification;
503
+ disableDashedLine?: boolean;
504
+ /** Optional number in range [0, 1]. Defaults to 0.5. "inactiveRouteOpacity" will be 1 if the parameter is greater than 1, and it will be 0 if the parameter is less than 0. */
505
+ inactiveRouteOpacity?: number;
506
+ /** Optional number in range [0, 1]. Defaults to 1. "outdoorLineOpacity" will be 1 if the parameter is greater than 1, and it will be 0 if the parameter is less than 0. */
507
+ outdoorLineOpacity?: number;
508
+ markers?: T;
509
+ markerIconSize?: number | ExpressionSpecification;
510
+ lineSymbol?: {
511
+ /**
512
+ * Icon url or sprite name.
513
+ */
514
+ image?: string | null;
515
+ size?: number | ExpressionSpecification;
516
+ spacing?: number | ExpressionSpecification;
517
+ };
518
+ }
519
+ export type TRouteStyleOptions = IRouteStyle<Partial<IRouteMarkers> | Array<string | null>>;
520
+ export declare class RoutePainter {
521
+ private readonly _maplibreMap;
522
+ private _routeStyle;
523
+ private _styleDiffs;
524
+ private _filterBy;
525
+ private _curVenue;
526
+ private _curBuilding;
527
+ private _curOrdinal;
528
+ private _renderBoundaryLayer;
529
+ constructor(maplibreMap: maplibregl$1.Map, routeStyle?: TRouteStyleOptions);
530
+ /**
531
+ * Set the style of the route.
532
+ * @param routeStyle {TRouteStyleOptions | null} When null, reset to the initial style.
533
+ */
534
+ setStyle(routeStyle: TRouteStyleOptions | null): Promise<void>;
535
+ /**
536
+ * @deprecated Use 'setStyle' instead.
537
+ * Set image[s] of the stop marker[s].
538
+ * @param icons Array of sprite names or URLs, or the object with specifying icon.
539
+ * Markers use images in order of icons array.
540
+ * First is as from-marker, last is as to-marker, the middles are as stop-markers.
541
+ * If icons array has only one element, all stop markers use this image.
542
+ * Image file must be in png, webp, or jpg format.
543
+ * Null means none image.
544
+ */
545
+ setMarkerIcons(icons: Array<string | null> | {
546
+ from?: string | null;
547
+ to?: string | null;
548
+ stops?: Array<string | null> | null;
549
+ }): Promise<void>;
550
+ /**
551
+ * @deprecated Use 'setStyle' instead.
552
+ * Set all icons scale.
553
+ * @param size number in range [0, ∞), default is 1.
554
+ */
555
+ setMarkerIconSize(size: number): this;
556
+ /**
557
+ * @deprecated Use 'setStyle' instead.
558
+ * Set the route color of the indoor part.
559
+ * @param color The color type is a color in the sRGB color space.
560
+ * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
561
+ * Predefined HTML colors names, like yellow and blue, are also permitted.
562
+ */
563
+ setIndoorLineColor(color: string): this;
564
+ /**
565
+ * @deprecated Use 'setStyle' instead.
566
+ * Set the route color of the outdoor part.
567
+ * @param color The color type is a color in the sRGB color space.
568
+ * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
569
+ * Predefined HTML colors names, like yellow and blue, are also permitted.
570
+ */
571
+ setOutdoorLineColor(color: string): this;
572
+ /**
573
+ * @deprecated Use 'setStyle' instead.
574
+ * Set color of dashed lines which connected the start and end markers.
575
+ * @param color The color type is a color in the sRGB color space.
576
+ * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
577
+ * Predefined HTML colors names, like yellow and blue, are also permitted.
578
+ */
579
+ setDashedLineColor(color: string): this;
580
+ /**
581
+ * @deprecated Use 'setStyle' instead.
582
+ * Set color of shuttle bus line.
583
+ * @param color The color type is a color in the sRGB color space.
584
+ * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
585
+ * Predefined HTML colors names, like yellow and blue, are also permitted.
586
+ */
587
+ setBusLineColor(color: string): this;
588
+ /**
589
+ * Render route on the map.
590
+ * @param path Route path from RouteService.search response.
591
+ * @param markerLocations Coordinate([lng, lat]) array of markers, order from beginning to end.
592
+ */
593
+ render(path: IRoutePath, markerLocations: Array<[
594
+ number,
595
+ number
596
+ ]>): void;
597
+ /**
598
+ * Remove route from the map.
599
+ */
600
+ remove(): void;
601
+ /**
602
+ * Filter paths' opacity by venue and ordinal.
603
+ * @param venueId {string | null | undefined}
604
+ * @param ordinal {string | null | undefined}
605
+ */
606
+ setFilterByVenue(venueId: string | null | undefined, ordinal: string | null | undefined): void;
607
+ /**
608
+ * Filter paths' opacity by building and ordinal.
609
+ * @param buildingId {string | null | undefined}
610
+ * @param ordinal {string | null | undefined}
611
+ */
612
+ setFilterByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
613
+ private _classifyFeatures;
614
+ private _createLineFeature;
615
+ private _createIconFeature;
616
+ private _renderSolidLines;
617
+ private _renderDashedLines;
618
+ private _renderConnectors;
619
+ private _renderMarkers;
620
+ private _addCollectionSource;
621
+ private _addLineLayer;
622
+ private _renderLineSymbols;
623
+ private _addIconLayer;
624
+ private _updateStyleProperties;
625
+ private _loadMarkerIcons;
626
+ private _updateLayers;
627
+ private _filterRouteOpacity;
628
+ }
486
629
  export interface IVenueInlineSharedFloor extends IFloorBase, IMapServices {
487
630
  name: IMultilingualName;
488
631
  refBuilding: Array<string>;
@@ -777,7 +920,7 @@ export declare class FloorsControl implements IControl {
777
920
  setEnabled(enabled: boolean): void;
778
921
  getDefaultPosition(): ControlPosition;
779
922
  /**
780
- * @description Switch floor by ordinal
923
+ * Switch floor by ordinal
781
924
  * @param ordinal
782
925
  * @param dragPan
783
926
  */
@@ -925,6 +1068,33 @@ export type TSelectedIndoorData = {
925
1068
  sharedFloor: ISharedFloor;
926
1069
  venue: MapGeoJSONFeature;
927
1070
  } | null;
1071
+ export type TFeatureMap = Map<string, MapGeoJSONFeature>;
1072
+ export interface ILayeredOptions {
1073
+ selectedVenueId: string | null;
1074
+ venueMap: TFeatureMap;
1075
+ buildingMap: TFeatureMap;
1076
+ sharedFloorMap: TFeatureMap;
1077
+ }
1078
+ export interface IDisplayedLevel {
1079
+ level: string;
1080
+ overlap: string[] | null;
1081
+ venueId: string;
1082
+ }
1083
+ export interface ILayeredData {
1084
+ displayedLevels: IDisplayedLevel[];
1085
+ selectedLevelIds: string[];
1086
+ alwaysDisplayedSharedLevelIds: string[];
1087
+ maskBuildingIds: string[];
1088
+ maskSharedFloorIds: string[];
1089
+ }
1090
+ declare class FloorsLayeredHandler {
1091
+ private _isMaskMode;
1092
+ private _hiddenBuildings;
1093
+ private _history;
1094
+ constructor(maskMode: boolean);
1095
+ getLayeredData(options: ILayeredOptions): ILayeredData;
1096
+ getHiddenBuildings(): string[];
1097
+ }
928
1098
  declare class DragPanHandler {
929
1099
  private _maplibre;
930
1100
  private _isAnimated;
@@ -976,15 +1146,16 @@ export declare class Indoor extends TinyEmitter {
976
1146
  private _fitBounds;
977
1147
  private _dragPan;
978
1148
  private _history;
979
- private _hiddenBuildings;
980
1149
  private _maskBuildings;
981
1150
  private _maskSharedFloors;
982
1151
  private _enableIndoorClickSelection;
983
1152
  private _enableOutdoorClickSelection;
984
1153
  private _zIndexHistory;
1154
+ private _floorSwitchScope;
985
1155
  private _isDestroyed;
986
1156
  private _abortQueryFeature;
987
1157
  private _debounceRendering;
1158
+ layeredHandler: FloorsLayeredHandler;
988
1159
  dragPanHandler: DragPanHandler;
989
1160
  constructor(props: {
990
1161
  map: maplibregl$1.Map;
@@ -995,43 +1166,45 @@ export declare class Indoor extends TinyEmitter {
995
1166
  outdoorMapShown: boolean;
996
1167
  enableIndoorClickSelection: boolean;
997
1168
  enableOutdoorClickSelection: boolean;
1169
+ floorSwitchScope: FloorSwitchScope;
998
1170
  selectedHighlightStyle?: ISelectedHighlightStyle;
999
1171
  });
1000
1172
  destroy(): void;
1001
1173
  /**
1002
1174
  * @deprecated
1003
- * @description Set whether to allow exiting building.
1175
+ * Set whether to allow exiting building.
1004
1176
  * @param allow
1005
1177
  */
1006
1178
  setAllowOutdoorSwitch(allow: boolean): this;
1007
1179
  /**
1008
1180
  * @deprecated
1009
- * @description Set whether to allow switching building.
1181
+ * Set whether to allow switching building.
1010
1182
  * @param allow
1011
1183
  */
1012
1184
  setAllowBuildingSwitch(allow: boolean): this;
1013
1185
  setAllowIndoorClickSelect(allow: boolean): void;
1014
1186
  setAllowOutdoorClickSelect(allow: boolean): void;
1187
+ setFloorSwitchScope(scope: FloorSwitchScope): void;
1015
1188
  /**
1016
- * @description Get the current floor's information.
1189
+ * Get the current floor's information.
1017
1190
  */
1018
1191
  get floor(): IFloor | ISharedFloor | null;
1019
1192
  /**
1020
- * @description Get the current building's information.
1193
+ * Get the current building's information.
1021
1194
  * @returns {MapGeoJSONFeature | null}
1022
1195
  */
1023
1196
  get building(): MapGeoJSONFeature | null;
1024
1197
  /**
1025
- * @description Get the current venue's information.
1198
+ * Get the current venue's information.
1026
1199
  * @returns {MapGeoJSONFeature | null}
1027
1200
  */
1028
1201
  get venue(): MapGeoJSONFeature | null;
1029
1202
  /**
1030
- * @description Get the geo features of bbox.
1203
+ * Get the geo features of bbox.
1031
1204
  */
1032
1205
  get features(): MapGeoJSONFeature[];
1033
1206
  /**
1034
- * @description Get features from bbox by id.
1207
+ * Get features from bbox by id.
1035
1208
  * @param id
1036
1209
  * @param options
1037
1210
  */
@@ -1040,18 +1213,18 @@ export declare class Indoor extends TinyEmitter {
1040
1213
  filter?: (feature: MapGeoJSONFeature) => boolean;
1041
1214
  }): MapGeoJSONFeature[];
1042
1215
  /**
1043
- * @description Switch floor by ordinal.
1216
+ * Switch floor by ordinal.
1044
1217
  * @param ordinal
1045
1218
  */
1046
1219
  switchFloorByOrdinal(ordinal: string | null): Promise<void>;
1047
1220
  setOutdoorMapShown(shown: boolean): void;
1048
1221
  /**
1049
- * @description Set the style of the selected floor border. If set to null, the border will be invisible.
1222
+ * Set the style of the selected floor border. If set to null, the border will be invisible.
1050
1223
  * @param style {ISelectedHighlightStyle | null}
1051
1224
  */
1052
1225
  setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): void;
1053
1226
  /**
1054
- * @description Listen for the indoor map state, including the changes of venue, building and floor.
1227
+ * Listen for the indoor map state, including the changes of venue, building and floor.
1055
1228
  * @param listener
1056
1229
  */
1057
1230
  onMapChange(listener: (params: {
@@ -1062,7 +1235,7 @@ export declare class Indoor extends TinyEmitter {
1062
1235
  unsubscribe: VoidFunction;
1063
1236
  };
1064
1237
  /**
1065
- * @description Select a building feature
1238
+ * Select a building feature
1066
1239
  * @param feature {MapGeoJSONFeature | null}
1067
1240
  * @param options {floorId?: string, dragPan?: boolean}
1068
1241
  */
@@ -1093,7 +1266,6 @@ export declare class Indoor extends TinyEmitter {
1093
1266
  private _updateUnselectedMask;
1094
1267
  private _addSelectedHighlightLayers;
1095
1268
  private _filterSelectedHighlight;
1096
- private _getBuildingDefaultOrdinal;
1097
1269
  private _copyOverlapLayers;
1098
1270
  private _copySharedFloorBackgroundLayers;
1099
1271
  private _updateFeatures;
@@ -1102,19 +1274,16 @@ export declare class Indoor extends TinyEmitter {
1102
1274
  private _layerFloors;
1103
1275
  private _layerSelectedLevels;
1104
1276
  private _layerUnselectedLevels;
1105
- private _classifyFloors;
1106
- private _calcVenueInitDisplayedData;
1107
- private _getBuildingDisplayedLevel;
1108
1277
  private _filterLayers;
1109
1278
  private _filterIndoorLayers;
1110
1279
  private _queryVenueFeature;
1111
1280
  private _getBuildingDisplayedOrdinal;
1112
1281
  private _updateFloorState;
1113
- private _resetSelectedDisplayedLevel;
1114
1282
  private _checkAndPanToBuilding;
1115
1283
  private _queryVisibleFeature;
1116
1284
  private _queryRenderedFeatures;
1117
1285
  private _dispatchIndoorMapLoaded;
1286
+ private _changeOtherVenuesHistory;
1118
1287
  }
1119
1288
  declare class Map$1 implements IMapxusMap {
1120
1289
  private _map;
@@ -1127,7 +1296,6 @@ declare class Map$1 implements IMapxusMap {
1127
1296
  private _dispatch;
1128
1297
  private _fitBounds;
1129
1298
  private _history;
1130
- private _hiddenBuildings;
1131
1299
  private _debounceHTTPErrorHandler;
1132
1300
  private _transformRequestHandler;
1133
1301
  private _tokenRefreshingPromise;
@@ -1144,7 +1312,7 @@ declare class Map$1 implements IMapxusMap {
1144
1312
  floorSelector: FloorSelectorHandler;
1145
1313
  constructor(options: IMapOption);
1146
1314
  /**
1147
- * @description This function will be called once the indoor source loaded.
1315
+ * This function will be called once the indoor source loaded.
1148
1316
  * @param callback
1149
1317
  */
1150
1318
  renderComplete(callback: VoidFunction): void;
@@ -1155,47 +1323,47 @@ declare class Map$1 implements IMapxusMap {
1155
1323
  */
1156
1324
  setTransformRequest(handler: maplibregl$1.RequestTransformFunction): void;
1157
1325
  /**
1158
- * @description Get map indoor instance.
1326
+ * Get map indoor instance.
1159
1327
  * @deprecated indoor instance won't be provided publicly in the future.
1160
1328
  */
1161
1329
  getIndoor(): Indoor;
1162
1330
  /**
1163
- * @description Get maplibre map instance.
1331
+ * Get maplibre map instance.
1164
1332
  */
1165
1333
  getMaplibre(): maplibregl$1.Map;
1166
1334
  /**
1167
- * @description Get current selected floor info.
1335
+ * Get current selected floor info.
1168
1336
  * @return {IFloor | ISharedFloor | null}
1169
1337
  */
1170
1338
  get floor(): IFloor | ISharedFloor | null;
1171
1339
  /**
1172
- * @description Get current selected building info.
1340
+ * Get current selected building info.
1173
1341
  * @return {MapGeoJSONFeature | null}
1174
1342
  */
1175
1343
  get building(): MapGeoJSONFeature | null;
1176
1344
  /**
1177
- * @description Get current selected venue info.
1345
+ * Get current selected venue info.
1178
1346
  * @return {MapGeoJSONFeature | null}
1179
1347
  */
1180
1348
  get venue(): MapGeoJSONFeature | null;
1181
1349
  /**
1182
- * @description Set map language.
1350
+ * Set map language.
1183
1351
  * @param language {PresetLanguage} convertBrowserLangToPresetLang(Window.navigator.language).
1184
1352
  */
1185
1353
  setLanguage(language: PresetLanguage): void;
1186
1354
  /**
1187
- * @description Get map language.
1355
+ * Get map language.
1188
1356
  * @return {PresetLanguage}
1189
1357
  */
1190
1358
  getLanguage(): PresetLanguage;
1191
1359
  /**
1192
- * @description Set outdoor map to be shown or hidden.
1360
+ * Set outdoor map to be shown or hidden.
1193
1361
  * @param shown
1194
1362
  */
1195
1363
  setOutdoorMapShown(shown: boolean): void;
1196
1364
  queryIndoorFeaturesByPoint(point: IScreenPoint): INormalLevelIndoorFeatures | ISharedLevelIndoorFeatures | null;
1197
1365
  /**
1198
- * @description Get features from bbox by coordinates [and ordinal].
1366
+ * Get features from bbox by coordinates [and ordinal].
1199
1367
  * @deprecated Use "queryIndoorFeaturesByPoint()" instead.
1200
1368
  * @param coordinates
1201
1369
  * @param ordinal
@@ -1209,21 +1377,21 @@ declare class Map$1 implements IMapxusMap {
1209
1377
  level: MapGeoJSONFeature | null;
1210
1378
  };
1211
1379
  /**
1212
- * @description Query rendered features from bbox by id. One id may correspond to multiple features,
1380
+ * Query rendered features from bbox by id. One id may correspond to multiple features,
1213
1381
  * coz of a feature may be multi-polygon(feature collection).
1214
1382
  * @param id
1215
1383
  * @param options {layerIds: string[], filter: (feature: MapGeoJSONFeature) => boolean}
1216
1384
  */
1217
1385
  getFeaturesById(id: string, options?: IFeaturesFilterOptions): MapGeoJSONFeature[];
1218
1386
  /**
1219
- * @description Switch floor by ordinal of current selected building.
1387
+ * Switch floor by ordinal of current selected building.
1220
1388
  * @param ordinal {string | null} The ordinal of the target floor.
1221
1389
  * If ordinal is null, the map will exit indoor view.
1222
1390
  * If current selected building has no the target ordinal, there's an error will be thrown.
1223
1391
  */
1224
1392
  switchFloorByOrdinal(ordinal: string | null): Promise<void>;
1225
1393
  /**
1226
- * @description Select indoor by locating the target floor.
1394
+ * Select indoor by locating the target floor.
1227
1395
  * @param floorId
1228
1396
  * @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
1229
1397
  * Default is true.
@@ -1231,42 +1399,42 @@ declare class Map$1 implements IMapxusMap {
1231
1399
  selectFloorById(floorId: string, options?: IPanToOptions): Promise<void>;
1232
1400
  selectSharedFloorById(sharedFloorId: string, options?: IPanToOptions): Promise<void>;
1233
1401
  /**
1234
- * @description Select indoor by locating the target building.
1402
+ * Select indoor by locating the target building.
1235
1403
  * @param buildingId
1236
1404
  * @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
1237
1405
  * Default is true.
1238
1406
  */
1239
1407
  selectBuildingById(buildingId: string, options?: IPanToOptions): Promise<void>;
1240
1408
  /**
1241
- * @description Select indoor by locating the target venue.
1409
+ * Select indoor by locating the target venue.
1242
1410
  * @param venueId 'venueId' can be string or null. Exit indoors if venueId is null.
1243
1411
  * @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
1244
1412
  * Default is true.
1245
1413
  */
1246
1414
  selectVenueById(venueId: string | null, options?: IPanToOptions): Promise<void>;
1247
1415
  /**
1248
- * @description Listen for mouse click events on the map.
1416
+ * Listen for mouse click events on the map.
1249
1417
  * @param listener
1250
1418
  */
1251
1419
  onMapClickListener(listener: (param: IMapClickEvent) => void): {
1252
1420
  unsubscribe: VoidFunction;
1253
1421
  };
1254
1422
  /**
1255
- * @description Listen for mouse click events on indoor POI
1423
+ * Listen for mouse click events on indoor POI
1256
1424
  * @param listener
1257
1425
  */
1258
1426
  onPoiClickListener(listener: (param: IPoiClickEvent) => void): {
1259
1427
  unsubscribe: VoidFunction;
1260
1428
  };
1261
1429
  /**
1262
- * @description Listen for mouse click events at a point.
1430
+ * Listen for mouse click events at a point.
1263
1431
  * @param listener
1264
1432
  */
1265
1433
  onPointClickListener(listener: (param: IPointClickEvent) => void): {
1266
1434
  unsubscribe: VoidFunction;
1267
1435
  };
1268
1436
  /**
1269
- * @description Listen for the indoor map status, including the changes of venue, building and floor.
1437
+ * Listen for the indoor map status, including the changes of venue, building and floor.
1270
1438
  * @param listener
1271
1439
  */
1272
1440
  onMapChangeListener(listener: (param: IMapChangeEvent) => void): {
@@ -1274,20 +1442,20 @@ declare class Map$1 implements IMapxusMap {
1274
1442
  };
1275
1443
  /**
1276
1444
  * @deprecated Use "setTheme()" instead.
1277
- * @description Switch the map style
1445
+ * Switch the map style
1278
1446
  * @param theme ThemeType | string(customized map style file name)
1279
1447
  */
1280
1448
  switchTheme(theme: string): void;
1281
1449
  setTheme(theme: ThemeType | string): void;
1282
1450
  /**
1283
1451
  * @deprecated Use 'setSelectedHighlightStyle' instead.
1284
- * @description Set the SelectedBuildingBorder's style. If set to null, the border will be invisible.
1452
+ * Set the SelectedBuildingBorder's style. If set to null, the border will be invisible.
1285
1453
  * @param style {ISelectedHighlightStyle | null}
1286
1454
  */
1287
1455
  setSelectedBuildingBorderStyle(style: ISelectedHighlightStyle | null): this;
1288
1456
  setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): this;
1457
+ setFloorSwitchScope(scope: FloorSwitchScope): void;
1289
1458
  private _setup;
1290
- private _setIndoorFilter;
1291
1459
  private _setStyle;
1292
1460
  private _addControl;
1293
1461
  private _selectPoiById;
@@ -1296,7 +1464,7 @@ declare class Map$1 implements IMapxusMap {
1296
1464
  private _updatePermission;
1297
1465
  private _selectCenterBuilding;
1298
1466
  /**
1299
- * @description Query building features within the center rectangle(width: 1/2 width of map view, height: 1/2 height of map view) of map.
1467
+ * Query building features within the center rectangle(width: 1/2 width of map view, height: 1/2 height of map view) of map.
1300
1468
  * @returns Map<buildingId, buildingFeature>
1301
1469
  */
1302
1470
  private _getCenterBuildingUnitsMap;
@@ -1315,37 +1483,37 @@ export declare class Marker {
1315
1483
  private _iconAnchor;
1316
1484
  constructor(maplibreMap: maplibregl$1.Map);
1317
1485
  /**
1318
- * @description Set custom marker image.
1486
+ * Set custom marker image.
1319
1487
  * @param icon Sprite name in map style or the URL of the image file.
1320
1488
  * Image file must be in png, webp, or jpg format.
1321
1489
  */
1322
1490
  setIcon(icon: string): Promise<void>;
1323
1491
  /**
1324
- * @description Set marker image size.
1492
+ * Set marker image size.
1325
1493
  * @param imageScale Default is 1.
1326
1494
  */
1327
1495
  setIconSize(imageScale: number): void;
1328
1496
  /**
1329
- * @description Set marker image anchor. Part of the icon placed closest to the anchor.
1497
+ * Set marker image anchor. Part of the icon placed closest to the anchor.
1330
1498
  * @param anchor
1331
1499
  */
1332
1500
  setIconAnchor(anchor: TAnchorPosition): void;
1333
1501
  /**
1334
- * @description Marker layer id getter.
1502
+ * Marker layer id getter.
1335
1503
  */
1336
1504
  get layerId(): string;
1337
1505
  /**
1338
- * @description Marker source id getter.
1506
+ * Marker source id getter.
1339
1507
  */
1340
1508
  get sourceId(): string;
1341
1509
  /**
1342
- * @description Draw marker[s] on map.
1510
+ * Draw marker[s] on map.
1343
1511
  * @param array {IMarkerOptions | IMarkerOptionsWithFeatureId[]} Coordinate and properties arrays of marker[s].
1344
1512
  * If you need to use updateData(), the parameter must be IMarkerOptionsWithFeatureId[].
1345
1513
  */
1346
1514
  create(array: Array<IMarkerOptions | IMarkerOptionsWithFeatureId>): void;
1347
1515
  /**
1348
- * @description Add, delete or update features of this marker layer.
1516
+ * Add, delete or update features of this marker layer.
1349
1517
  * This approach requires unique IDs for every feature in the source!!! Including create() parameters.
1350
1518
  * @param diff {remove: number[], add: IMarkerOptionsWithFeatureId[], update: IMarkerOptionsWithFeatureId[]}
1351
1519
  * remove: Array of feature IDs to remove.
@@ -1358,11 +1526,11 @@ export declare class Marker {
1358
1526
  update?: IMarkerOptionsWithFeatureId[];
1359
1527
  }): void;
1360
1528
  /**
1361
- * @description Remove marker[s] layer and source.
1529
+ * Remove marker[s] layer and source.
1362
1530
  */
1363
1531
  remove(): void;
1364
1532
  /**
1365
- * @description Add marker event listener.
1533
+ * Add marker event listener.
1366
1534
  * @param eventKey
1367
1535
  * @param callback
1368
1536
  */
@@ -1370,14 +1538,14 @@ export declare class Marker {
1370
1538
  off: () => void;
1371
1539
  };
1372
1540
  /**
1373
- * @description Filter marker by custom properties.
1541
+ * Filter marker by custom properties.
1374
1542
  * @param filterExpression A expression specifying conditions on source features.
1375
1543
  * Only features that match the filter are displayed. Refer:
1376
1544
  * https://maplibre.org/maplibre-style-spec/expressions/
1377
1545
  */
1378
1546
  setFilter(filterExpression: FilterSpecification): void;
1379
1547
  /**
1380
- * @description Filter marker by venueId and ordinal.
1548
+ * Filter marker by venueId and ordinal.
1381
1549
  * Required 'venueId' and 'ordinal' in properties.
1382
1550
  * Markers not matched 'venueId' and 'ordinal' would be hidden;
1383
1551
  * Outdoor markers always are shown.
@@ -1386,7 +1554,7 @@ export declare class Marker {
1386
1554
  */
1387
1555
  setFilterByVenue(venueId: string | null | undefined, ordinal: string | null | undefined): void;
1388
1556
  /**
1389
- * @description Filter marker by buildingId and ordinal.
1557
+ * Filter marker by buildingId and ordinal.
1390
1558
  * Required 'buildingId' and 'ordinal' in properties.
1391
1559
  * Markers not matched 'buildingId' and 'ordinal' would be hidden;
1392
1560
  * Outdoor markers always are shown.
@@ -1395,14 +1563,14 @@ export declare class Marker {
1395
1563
  */
1396
1564
  setFilterByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
1397
1565
  /**
1398
- * @description Set marker's icon-opacity by custom properties.
1566
+ * Set marker's icon-opacity by custom properties.
1399
1567
  * @param filterExpression A expression specifying conditions on source features.
1400
1568
  * Only features that match the filter are displayed. Refer:
1401
1569
  * https://maplibre.org/maplibre-style-spec/expressions/
1402
1570
  */
1403
1571
  setOpacity(filterExpression: FilterSpecification): void;
1404
1572
  /**
1405
- * @description Set marker's icon-opacity by venueId and ordinal.
1573
+ * Set marker's icon-opacity by venueId and ordinal.
1406
1574
  * Required 'venueId' and 'ordinal' in properties.
1407
1575
  * Opacities of markers matched 'venueId' and 'ordinal' are 1, others are 0.5.
1408
1576
  * Outdoor markers' opacity always are 1.
@@ -1412,7 +1580,7 @@ export declare class Marker {
1412
1580
  */
1413
1581
  setOpacityByVenue(venueId: string | null | undefined, ordinal: string | null | undefined, inactiveOpacity?: number): void;
1414
1582
  /**
1415
- * @description Set marker's icon-opacity by buildingId and ordinal.
1583
+ * Set marker's icon-opacity by buildingId and ordinal.
1416
1584
  * Required 'buildingId' and 'ordinal' in properties.
1417
1585
  * Opacities of markers matched 'buildingId' and 'ordinal' are 1, others are 0.5.
1418
1586
  * Outdoor markers' opacity always are 1.
@@ -1443,145 +1611,6 @@ export declare class Poi {
1443
1611
  private _queryIndoorFeaturesBySharedFloor;
1444
1612
  private _queryIndoorFeaturesByFloor;
1445
1613
  }
1446
- export interface IRouteMarkers {
1447
- from: string | null;
1448
- to: string | null;
1449
- stops: Array<string | null> | null;
1450
- }
1451
- export interface IRouteStyle<T> {
1452
- indoorLineColor?: string | ExpressionSpecification;
1453
- outdoorLineColor?: string | ExpressionSpecification;
1454
- dashedLineColor?: string | ExpressionSpecification;
1455
- shuttleBusLineColor?: string | ExpressionSpecification;
1456
- lineWidth?: number | ExpressionSpecification;
1457
- dashedLineWidth?: number | ExpressionSpecification;
1458
- disableDashedLine?: boolean;
1459
- /** Optional number in range [0, 1]. Defaults to 0.5. "inactiveRouteOpacity" will be 1 if the parameter is greater than 1, and it will be 0 if the parameter is less than 0. */
1460
- inactiveRouteOpacity?: number;
1461
- /** Optional number in range [0, 1]. Defaults to 1. "outdoorLineOpacity" will be 1 if the parameter is greater than 1, and it will be 0 if the parameter is less than 0. */
1462
- outdoorLineOpacity?: number;
1463
- markers?: T;
1464
- markerIconSize?: number | ExpressionSpecification;
1465
- lineSymbol?: {
1466
- /**
1467
- * @description Icon url or sprite name.
1468
- */
1469
- image?: string | null;
1470
- size?: number | ExpressionSpecification;
1471
- spacing?: number | ExpressionSpecification;
1472
- };
1473
- }
1474
- export type TRouteStyleOptions = IRouteStyle<Partial<IRouteMarkers> | Array<string | null>>;
1475
- export declare class RoutePainter {
1476
- private readonly _maplibreMap;
1477
- private _routeStyle;
1478
- private _styleDiffs;
1479
- private _filterBy;
1480
- private _curVenue;
1481
- private _curBuilding;
1482
- private _curOrdinal;
1483
- private _renderBoundaryLayer;
1484
- constructor(maplibreMap: maplibregl$1.Map, routeStyle?: TRouteStyleOptions);
1485
- /**
1486
- * @description Set the style of the route.
1487
- * @param routeStyle {TRouteStyleOptions | null} When null, reset to the initial style.
1488
- */
1489
- setStyle(routeStyle: TRouteStyleOptions | null): Promise<void>;
1490
- /**
1491
- * @deprecated Use 'setStyle' instead.
1492
- * @description Set image[s] of the stop marker[s].
1493
- * @param icons {**Array<string | null> | {from?: string | null; to?: string | null; stops?: Array<string | null> | null;}**}
1494
- * Array of sprite names or URLs, or the object with specifying icon.
1495
- * Markers use images in order of icons array.
1496
- * First is as from-marker, last is as to-marker, the middles are as stop-markers.
1497
- * If icons array has only one element, all stop markers use this image.
1498
- * Image file must be in png, webp, or jpg format.
1499
- * Null means none image.
1500
- */
1501
- setMarkerIcons(icons: Array<string | null> | {
1502
- from?: string | null;
1503
- to?: string | null;
1504
- stops?: Array<string | null> | null;
1505
- }): Promise<void>;
1506
- /**
1507
- * @deprecated Use 'setStyle' instead.
1508
- * @description Set all icons scale.
1509
- * @param size number in range [0, ∞), default is 1.
1510
- */
1511
- setMarkerIconSize(size: number): this;
1512
- /**
1513
- * @deprecated Use 'setStyle' instead.
1514
- * @description Set the route color of the indoor part.
1515
- * @param color The color type is a color in the sRGB color space.
1516
- * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
1517
- * Predefined HTML colors names, like yellow and blue, are also permitted.
1518
- */
1519
- setIndoorLineColor(color: string): this;
1520
- /**
1521
- * @deprecated Use 'setStyle' instead.
1522
- * @description Set the route color of the outdoor part.
1523
- * @param color The color type is a color in the sRGB color space.
1524
- * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
1525
- * Predefined HTML colors names, like yellow and blue, are also permitted.
1526
- */
1527
- setOutdoorLineColor(color: string): this;
1528
- /**
1529
- * @deprecated Use 'setStyle' instead.
1530
- * @description Set color of dashed lines which connected the start and end markers.
1531
- * @param color The color type is a color in the sRGB color space.
1532
- * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
1533
- * Predefined HTML colors names, like yellow and blue, are also permitted.
1534
- */
1535
- setDashedLineColor(color: string): this;
1536
- /**
1537
- * @deprecated Use 'setStyle' instead.
1538
- * @description Set color of shuttle bus line.
1539
- * @param color The color type is a color in the sRGB color space.
1540
- * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
1541
- * Predefined HTML colors names, like yellow and blue, are also permitted.
1542
- */
1543
- setBusLineColor(color: string): this;
1544
- /**
1545
- * @description Render route on the map.
1546
- * @param path Route path from RouteService.search response.
1547
- * @param markerLocations Coordinate([lng, lat]) array of markers, order from beginning to end.
1548
- */
1549
- render(path: IRoutePath, markerLocations: Array<[
1550
- number,
1551
- number
1552
- ]>): void;
1553
- /**
1554
- * @description Remove route from the map.
1555
- */
1556
- remove(): void;
1557
- /**
1558
- * @description Filter paths' opacity by venue and ordinal.
1559
- * @param venueId {string | null | undefined}
1560
- * @param ordinal {string | null | undefined}
1561
- */
1562
- setFilterByVenue(venueId: string | null | undefined, ordinal: string | null | undefined): void;
1563
- /**
1564
- * @description Filter paths' opacity by building and ordinal.
1565
- * @param buildingId {string | null | undefined}
1566
- * @param ordinal {string | null | undefined}
1567
- */
1568
- setFilterByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
1569
- private _classifyFeatures;
1570
- private _createLineFeature;
1571
- private _createIconFeature;
1572
- private _renderSolidLines;
1573
- private _renderDashedLines;
1574
- private _renderConnectors;
1575
- private _renderMarkers;
1576
- private _addCollectionSource;
1577
- private _addLineLayer;
1578
- private _renderLineSymbols;
1579
- private _addIconLayer;
1580
- private _updateStyleProperties;
1581
- private _loadMarkerIcons;
1582
- private _updateLayers;
1583
- private _filterRouteOpacity;
1584
- }
1585
1614
  /**
1586
1615
  * AccessControl class, for providing token and managing token lifecycle.
1587
1616
  * Three events are emitted:
@@ -1621,22 +1650,22 @@ export declare class VenuesService {
1621
1650
  private _request;
1622
1651
  constructor();
1623
1652
  /**
1624
- * @description Search venues by ids.
1653
+ * Search venues by ids.
1625
1654
  * @param ids Single id string or string ids in array. The number of IDs cannot exceed 10.
1626
1655
  */
1627
1656
  searchByIds(ids: string | string[]): TPromiseVenues;
1628
1657
  /**
1629
- * @description Search venues by center and distance.
1658
+ * Search venues by center and distance.
1630
1659
  * @param {ISearchByDistanceOptions} options
1631
1660
  */
1632
1661
  searchByDistance(options: ISearchByDistanceOptions): TPromiseVenues;
1633
1662
  /**
1634
- * @description Search venues in a rectangular area.
1663
+ * Search venues in a rectangular area.
1635
1664
  * @param {ISearchByBoundsOptions} options
1636
1665
  */
1637
1666
  searchByBounds(options: ISearchByBoundsOptions): TPromiseVenues;
1638
1667
  /**
1639
- * @description Search venues by global.
1668
+ * Search venues by global.
1640
1669
  * @param {ISearchByKeywordsOptions} options
1641
1670
  */
1642
1671
  searchByGlobal(options: ISearchByKeywordsOptions): TPromiseVenues;
@@ -1649,27 +1678,27 @@ export declare class BuildingsService {
1649
1678
  private _request;
1650
1679
  constructor();
1651
1680
  /**
1652
- * @description Search buildings by id[s].
1681
+ * Search buildings by id[s].
1653
1682
  * @param ids Single id string or string ids in array. The number of IDs cannot exceed 10.
1654
1683
  */
1655
1684
  searchByIds(ids: string | string[]): TPromiseBuildings;
1656
1685
  /**
1657
- * @description Search buildings by center and distance.
1686
+ * Search buildings by center and distance.
1658
1687
  * @param {ISearchByDistanceOptions} options
1659
1688
  */
1660
1689
  searchByDistance(options: ISearchByDistanceOptions): TPromiseBuildings;
1661
1690
  /**
1662
- * @description Search buildings in a rectangular area.
1691
+ * Search buildings in a rectangular area.
1663
1692
  * @param {ISearchByBoundsOptions} options
1664
1693
  */
1665
1694
  searchByBounds(options: ISearchByBoundsOptions): TPromiseBuildings;
1666
1695
  /**
1667
- * @description Search buildings global.
1696
+ * Search buildings global.
1668
1697
  * @param {ISearchByKeywordsOptions} options
1669
1698
  */
1670
1699
  searchByGlobal(options: ISearchByKeywordsOptions): TPromiseBuildings;
1671
1700
  /**
1672
- * @description Search building by floor id.
1701
+ * Search building by floor id.
1673
1702
  * @param floorId
1674
1703
  */
1675
1704
  searchByFloorId(floorId: string): TPromiseBuildings;
@@ -1682,36 +1711,36 @@ export declare class PoisService {
1682
1711
  private _request;
1683
1712
  constructor();
1684
1713
  /**
1685
- * @description Search POIs by id[s].
1714
+ * Search POIs by id[s].
1686
1715
  * @param ids Single id string or string ids in array. The number of IDs cannot exceed 100.
1687
1716
  */
1688
1717
  searchByIds(ids: string | string[]): TPromisePois<IPoi | ISharedPoi>;
1689
1718
  /**
1690
- * @description Search POIs by radius distance of the center point.
1719
+ * Search POIs by radius distance of the center point.
1691
1720
  * @param options {ISearchByDistanceOptions}
1692
1721
  */
1693
1722
  searchByDistance(options: ISearchByDistanceOptions): TPromisePois<IPoi | ISharedPoi>;
1694
1723
  /**
1695
- * @description Search POIs in a rectangular area.
1724
+ * Search POIs in a rectangular area.
1696
1725
  * @param options {IPoiSearchByBoundsOptions}
1697
1726
  * 'orderBy' cannot be used with 'keywords'.
1698
1727
  */
1699
1728
  searchByBounds(options: IPoiSearchByBoundsOptions): TPromisePois<IPoi | ISharedPoi>;
1700
1729
  /**
1701
- * @description Search POIs of a building.
1730
+ * Search POIs of a building.
1702
1731
  * @param options {ISearchByBuildingOptions}
1703
1732
  * 'orderBy' cannot be used with 'keywords'.
1704
1733
  */
1705
1734
  searchByBuilding(options: ISearchByBuildingOptions): TPromisePois<IPoi>;
1706
1735
  /**
1707
- * @description Search POIs of a venue.
1736
+ * Search POIs of a venue.
1708
1737
  * @param options {ISearchByVenueOptions}
1709
1738
  * 'orderBy' cannot be used with 'keywords'.
1710
1739
  */
1711
1740
  searchByVenue(options: ISearchByVenueOptions): TPromisePois<IPoi | ISharedPoi>;
1712
1741
  /**
1713
1742
  * @deprecated Use 'searchByFloors()' instead.
1714
- * @description Search POIs of a floor.
1743
+ * Search POIs of a floor.
1715
1744
  * @param options {TSearchByFloorOptions}
1716
1745
  * 'orderBy' cannot be used with 'keywords'.
1717
1746
  */
@@ -1723,17 +1752,17 @@ export declare class PoisService {
1723
1752
  */
1724
1753
  searchByFloors(options: TSearchByFloorsOptions): TPromisePois<IPoi | ISharedPoi>;
1725
1754
  /**
1726
- * @description Search surrounding POIs based on the user's location and orientation.
1755
+ * Search surrounding POIs based on the user's location and orientation.
1727
1756
  * @param {TSearchByOrientationOptions} options
1728
1757
  */
1729
1758
  searchByOrientation(options: TSearchByOrientationOptions): TPromiseOrientationPois;
1730
1759
  /**
1731
- * @description Search POIs by category or excluded categories.
1760
+ * Search POIs by category or excluded categories.
1732
1761
  * @param {TSearchByCategoryOptions} options
1733
1762
  */
1734
1763
  searchByCategory(options: TSearchByCategoryOptions): TPromisePois<IPoi | ISharedPoi>;
1735
1764
  /**
1736
- * @description Search poi categories by venue id, building id, or floor id.
1765
+ * Search poi categories by venue id, building id, or floor id.
1737
1766
  * @param {TSearchCategoriesOptions} options
1738
1767
  */
1739
1768
  searchCategories(options: TSearchCategoriesOptions): TPromiseCategories;
@@ -1745,19 +1774,11 @@ export declare class RouteService {
1745
1774
  private _request;
1746
1775
  constructor();
1747
1776
  /**
1748
- * @description Search the route of two or more points.
1777
+ * Search the route of two or more points.
1749
1778
  * @param options {IRouteSearchOptions}
1750
1779
  */
1751
1780
  search(options: IRouteSearchOptions): TPromiseRoute;
1752
1781
  }
1753
- export type InputProduct = "UI_SDK" | "ANYWHERE";
1754
- /**
1755
- * @private
1756
- * This method is internal and should not be exposed in the documentation.
1757
- */
1758
- export declare const __internal: {
1759
- [x: symbol]: (names: InputProduct[]) => void;
1760
- };
1761
1782
  export interface IMapxusLib {
1762
1783
  Map: typeof Map$1;
1763
1784
  /** @deprecated */
@@ -1784,60 +1805,11 @@ export interface IMapxusLib {
1784
1805
  PoisService: typeof PoisService;
1785
1806
  RouteService: typeof RouteService;
1786
1807
  }
1787
- export interface IMapxusUtils {
1788
- convertBrowserLangToPresetLang: (lang: string) => PresetLanguage | null;
1789
- getAccessToken: (appId: string, secret: string, platform?: TPlatform, origin?: string) => Promise<{
1790
- accessToken: string;
1791
- expiredTime: number;
1792
- }>;
1793
- getIdentifier: () => Promise<string>;
1794
- setGetTokenAsync: (fn: TAccessTokenGetter) => void;
1795
- setupTokenManager: () => Promise<void>;
1796
- VERSION: string;
1797
- OFFSET: number;
1798
- PAGE: number;
1799
- ERRORS: readonly [
1800
- "unauthorized",
1801
- "initError"
1802
- ];
1803
- ASSISTANT_LAYER_INDOOR_FLOORS: string;
1804
- ASSISTANT_LAYER_SHARED_FLOORS: string;
1805
- __internal: {
1806
- [x: symbol]: (names: InputProduct[]) => void;
1807
- };
1808
- }
1809
- export declare const VERSION: string;
1810
- export declare const OFFSET: number;
1811
- export declare const PAGE: number;
1812
- export declare const ERRORS: readonly [
1813
- "unauthorized",
1814
- "initError"
1815
- ];
1816
- /**
1817
- * @description Convert browser language to preset language
1818
- * @param language {string} window.navigator.language
1819
- */
1820
- export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
1821
- /**
1822
- * Get access token
1823
- * @param appId
1824
- * @param secret
1825
- * @param platform get accessToken of the specific platform(ios or android), optional
1826
- * @param origin the reference of appId, optional
1827
- * @returns {accessToken: string; expiresIn: number;} expiresIn means the valid time of accessToken
1828
- */
1829
- export declare function getAccessToken(appId: string, secret: string, platform?: TPlatform, origin?: string): Promise<{
1830
- accessToken: string;
1831
- expiredTime: number;
1832
- }>;
1833
- export declare const ASSISTANT_LAYER_INDOOR_FLOORS = "reserve_mapxus-level-fill";
1834
- export declare const ASSISTANT_LAYER_SHARED_FLOORS = "reserve_mapxus-shared-level-fill";
1835
- export declare function getIdentifier(): Promise<string>;
1836
- export declare function setGetTokenAsync(fn: TAccessTokenGetter): void;
1837
- export declare function setupTokenManager(): Promise<void>;
1808
+ declare const mapxusLib: IMapxusLib;
1838
1809
 
1839
1810
  export {
1840
1811
  Map$1 as Map,
1812
+ mapxusLib as default,
1841
1813
  };
1842
1814
 
1843
1815
  export {};