@mapxus/mapxus-map-jp 9.1.0 → 9.2.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
@@ -1,10 +1,10 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
3
  import { AxiosPromise } from 'axios';
4
- import { EventEmitter } from 'events';
5
4
  import { GeoJsonProperties, LineString, Point } from 'geojson';
6
5
  import maplibregl$1 from 'maplibre-gl';
7
- import { ControlPosition, ExpressionSpecification, FilterSpecification, IControl, LngLat, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike, RequireAtLeastOne } from 'maplibre-gl';
6
+ import { ControlPosition, ExpressionSpecification, FilterSpecification, IControl, LngLat, LngLatBoundsLike, LngLatLike, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike } from 'maplibre-gl';
7
+ import { TinyEmitter } from 'tiny-emitter';
8
8
 
9
9
  export declare enum PresetLanguage {
10
10
  ENGLISH = "en",
@@ -21,15 +21,27 @@ export declare enum PresetLanguage {
21
21
  ARABIC = "ar"
22
22
  }
23
23
  export declare enum ThemeType {
24
- CHRISTMAS = "christmas",
25
- HALLOWEEN = "halloween",
26
- MAPPY_BEE = "mappyBee",
27
- MAPXUS = "mapxus",
28
- LANDS_D = "landsD",
29
- COMMON = "common",
24
+ /** @deprecated **/
25
+ CHRISTMAS = "christmas_mims2_v1",
26
+ /** @deprecated **/
27
+ HALLOWEEN = "halloween_mims2_v1",
28
+ /** @deprecated **/
29
+ MAPPY_BEE = "mappybee_mims2_v2",
30
+ /** @deprecated **/
31
+ MAPXUS = "mapxus_mims2_v1",
32
+ /** @deprecated **/
33
+ LANDS_D = "lands_d_mims2_v1",
34
+ /** @deprecated **/
35
+ COMMON = "common_mims2_v1",
30
36
  /** @deprecated MAPXUS_V2 will be removed soon, please use MAPXUS_DEFAULT instead. */
31
37
  MAPXUS_V2 = "mapxus_v2",
32
- MAPXUS_DEFAULT = "mapxus_default"
38
+ MAPXUS_DEFAULT = "mapxus_v8",
39
+ ROSE_TEA = "rose_tea",
40
+ PEAR_SORBET = "pear_sorbet",
41
+ CITY_WALK = "city_walk",
42
+ MOCHA_MOUSSE = "mocha_mousse",
43
+ SECTION_DISPLAY_BY_COLOR = "mapxus_v7_with_section_v2",
44
+ SECTION_DISPLAY_BY_CATEGORY = "mapxus_v7_with_section_v3"
33
45
  }
34
46
  export declare enum AccessControlOrigin {
35
47
  Access = "access_control",
@@ -41,14 +53,31 @@ export interface IBbox {
41
53
  minLat: number;
42
54
  minLon: number;
43
55
  }
56
+ export type TPointFeature = GeoJSON.Feature<Point, GeoJsonProperties>;
57
+ export type TLineStringFeature = GeoJSON.Feature<LineString, GeoJsonProperties>;
44
58
  export type TMultilingualString = Partial<Record<PresetLanguage, string>>;
45
59
  export interface IMultilingualName extends TMultilingualString {
46
60
  default: string;
47
61
  }
48
- export type IMultilingualAddress = Record<keyof IMultilingualName, {
49
- housenumber: string;
50
- street: string;
51
- }>;
62
+ export interface IFloor {
63
+ code: string;
64
+ id: string;
65
+ ordinal: string;
66
+ }
67
+ export interface ISharedFloor {
68
+ id: string;
69
+ ordinal: string;
70
+ name: IMultilingualName;
71
+ }
72
+ export interface IFloorSelectorStyle {
73
+ fontColor?: string;
74
+ activeFontColor?: string;
75
+ backgroundColor?: string;
76
+ activeBackgroundColor?: string;
77
+ itemSize?: number;
78
+ itemCount?: number;
79
+ defaultFolded?: boolean;
80
+ }
52
81
  export interface ILocation {
53
82
  lat: number;
54
83
  lon: number;
@@ -58,6 +87,66 @@ export type TResponseResult<T> = AxiosPromise<{
58
87
  message: string;
59
88
  result: T;
60
89
  }>;
90
+ export type IMultilingualAddress = Record<keyof IMultilingualName, {
91
+ housenumber: string;
92
+ street: string;
93
+ }>;
94
+ export interface IBuildingBasicInfo {
95
+ address: IMultilingualAddress;
96
+ bbox: IBbox;
97
+ city?: string;
98
+ country: string;
99
+ description: TMultilingualString;
100
+ labelCenter: ILocation;
101
+ name: IMultilingualName;
102
+ region: string;
103
+ type: string;
104
+ }
105
+ export interface IBusinessInfo {
106
+ appUrl?: {
107
+ android?: string;
108
+ ios?: string;
109
+ };
110
+ businessStatus?: {
111
+ status: "OPEN" | "TEMPORARILY_CLOSED";
112
+ };
113
+ email?: string;
114
+ icon?: string;
115
+ openingHours?: string;
116
+ phone?: string;
117
+ photos?: Array<IPhotoSpec>;
118
+ publicData?: string[];
119
+ totalPhotoCount?: number;
120
+ website?: string;
121
+ }
122
+ export interface IMapServices {
123
+ signalMap: boolean;
124
+ visualMap: boolean;
125
+ }
126
+ export interface IFloorBase {
127
+ id: string;
128
+ ordinal: number;
129
+ }
130
+ export interface IBuildingInlineFloor extends IFloorBase, IMapServices {
131
+ code: string;
132
+ }
133
+ export interface IBuilding extends IBuildingBasicInfo, IBusinessInfo, IMapServices {
134
+ buildingId: string;
135
+ buildingName: IMultilingualName;
136
+ buildingOutlineId: number;
137
+ defaultFloor?: string;
138
+ floors: IBuildingInlineFloor[];
139
+ groundFloor: string;
140
+ isPrivate: "yes" | "no";
141
+ organization: string;
142
+ venueId: string;
143
+ venueName: IMultilingualName;
144
+ }
145
+ export interface IResponseBuildings {
146
+ buildings: IBuilding[];
147
+ total: number;
148
+ }
149
+ export type TPromiseBuildings = TResponseResult<IResponseBuildings>;
61
150
  export declare enum DistanceSearchType {
62
151
  POINT = "Point",
63
152
  POLYGON = "Polygon"
@@ -170,83 +259,6 @@ export interface IOrientationSharedPoi extends ISharedPoiFloor, IOrientationPoiC
170
259
  }
171
260
  export type TOrientationPoi = IOrientationNormalPoi | IOrientationSharedPoi;
172
261
  export type TPromiseOrientationPois = TResponseResult<TOrientationPoi[]>;
173
- export interface IBuildingBasicInfo {
174
- address: IMultilingualAddress;
175
- bbox: IBbox;
176
- city?: string;
177
- country: string;
178
- description: TMultilingualString;
179
- labelCenter: ILocation;
180
- name: IMultilingualName;
181
- region: string;
182
- type: string;
183
- }
184
- export interface IBusinessInfo {
185
- appUrl?: {
186
- android?: string;
187
- ios?: string;
188
- };
189
- businessStatus?: {
190
- status: "OPEN" | "TEMPORARILY_CLOSED";
191
- };
192
- email?: string;
193
- icon?: string;
194
- openingHours?: string;
195
- phone?: string;
196
- photos?: Array<IPhotoSpec>;
197
- publicData?: string[];
198
- totalPhotoCount?: number;
199
- website?: string;
200
- }
201
- export interface IMapServices {
202
- signalMap: boolean;
203
- visualMap: boolean;
204
- }
205
- export interface IFloorBase {
206
- id: string;
207
- ordinal: number;
208
- }
209
- export interface IBuildingInlineFloor extends IFloorBase, IMapServices {
210
- code: string;
211
- }
212
- export interface IBuilding extends IBuildingBasicInfo, IBusinessInfo, IMapServices {
213
- buildingId: string;
214
- buildingName: IMultilingualName;
215
- buildingOutlineId: number;
216
- defaultFloor?: string;
217
- floors: IBuildingInlineFloor[];
218
- groundFloor: string;
219
- isPrivate: "yes" | "no";
220
- organization: string;
221
- venueId: string;
222
- venueName: IMultilingualName;
223
- }
224
- export interface IResponseBuildings {
225
- buildings: IBuilding[];
226
- total: number;
227
- }
228
- export type TPromiseBuildings = TResponseResult<IResponseBuildings>;
229
- export type TPointFeature = GeoJSON.Feature<Point, GeoJsonProperties>;
230
- export type TLineStringFeature = GeoJSON.Feature<LineString, GeoJsonProperties>;
231
- export interface IFloor {
232
- code: string;
233
- id: string;
234
- ordinal: string;
235
- }
236
- export interface ISharedFloor {
237
- id: string;
238
- ordinal: string;
239
- name: IMultilingualName;
240
- }
241
- export interface IFloorSelectorStyle {
242
- fontColor?: string;
243
- activeFontColor?: string;
244
- backgroundColor?: string;
245
- activeBackgroundColor?: string;
246
- itemSize?: number;
247
- itemCount?: number;
248
- defaultFolded?: boolean;
249
- }
250
262
  export interface IMapClickEvent {
251
263
  coordinate: LngLat;
252
264
  building: MapGeoJSONFeature | null;
@@ -325,17 +337,19 @@ export interface IMapOtherOptions {
325
337
  */
326
338
  maskNonSelectedAreas?: boolean;
327
339
  /**
340
+ * @deprecated use "fitBounds" instead.
328
341
  * @description Whether the boundary of the selected building fits the screen, default is false.
329
342
  * Can only be used for 'floorId', 'buildingId' and 'venueId' initialization, not for 'poiId'.
330
343
  * When it is true, the 'boundsPadding' option is valid, and the 'zoom' option of maplibregl.Map is invalid.
331
344
  */
332
345
  fitBuildingBounds?: boolean;
346
+ fitBounds?: boolean;
333
347
  /**
334
348
  * @description The amount of padding in pixels to add to the given bounds, default is 30.
335
349
  * Requires 'fitBuildingBounds' to be 'true'.
336
350
  * Parameter value ref to: https://maplibre.org/maplibre-gl-js/docs/API/types/maplibregl.PaddingOptions/
337
351
  */
338
- boundsPadding?: number | RequireAtLeastOne<PaddingOptions>;
352
+ boundsPadding?: number | maplibregl$1.PaddingOptions;
339
353
  language?: PresetLanguage;
340
354
  /** @description Auto Select Building by panning building to map center, default is false. */
341
355
  autoSelectBuilding?: boolean;
@@ -627,7 +641,13 @@ export interface ISearchByBuildingOptions extends IBuildingSpec, ISearchByKeywor
627
641
  }
628
642
  export interface ISearchByVenueOptions extends IVenueSpec, ISearchByKeywordsOptions, IOrderSpec {
629
643
  }
644
+ /** @deprecated */
630
645
  export type TSearchByFloorOptions = (IFloorSpec & ISearchByKeywordsOptions & IOrderSpec) | (ISharedFloorSpec & ISearchByKeywordsOptions & IOrderSpec);
646
+ export type TSearchByFloorsOptions = ({
647
+ floorIds: string[];
648
+ } & ISearchByKeywordsOptions & IOrderSpec) | ({
649
+ sharedFloorIds: string[];
650
+ } & ISearchByKeywordsOptions & IOrderSpec);
631
651
  export type TSearchByOrientationOptions = (IOrdinalSpec & IOrientationSpec & IQuantitySpec & IOrientationSearchTypeSpec) | (IFloorSpec & IOrientationSpec & IQuantitySpec & IOrientationSearchTypeSpec) | (IBuildingSpec & IOrientationSpec & IQuantitySpec & IOrientationSearchTypeSpec);
632
652
  export type TSearchCategoriesOptions = IVenueSpec | IBuildingSpec | IFloorSpec | ISharedFloorSpec | (IBoundsSpec & IKeywordSpec);
633
653
  export interface IPoiSearchCustomizedOptions {
@@ -648,7 +668,10 @@ export interface IPoiSearchCustomizedOptions {
648
668
  distance?: number;
649
669
  category?: string;
650
670
  excludedCategories?: string | string[];
671
+ /** @deprecated */
651
672
  floorId?: string;
673
+ floorIds?: string[];
674
+ sharedFloorIds?: string[];
652
675
  buildingId?: string;
653
676
  venueId?: string;
654
677
  keywords?: string;
@@ -658,15 +681,6 @@ export interface IPoiSearchCustomizedOptions {
658
681
  offset?: number;
659
682
  page?: number;
660
683
  }
661
- export interface ISelectedSharedLevelOptions extends ISharedFloor {
662
- dragPan: boolean | "restrict";
663
- }
664
- export interface ISelectedBuildingChangedOptions {
665
- ordinal: string;
666
- building: MapGeoJSONFeature;
667
- dragPan: boolean | "restrict";
668
- }
669
- export type TSelectedBuildingChangedOptions = ISelectedBuildingChangedOptions | ISelectedSharedLevelOptions | null;
670
684
  export declare class BuildingFilterControl implements IControl {
671
685
  private _map;
672
686
  private _maplibre;
@@ -708,6 +722,22 @@ export declare class BuildingFilterControl implements IControl {
708
722
  private _updateBuildingListLayout;
709
723
  private _detectDeviceMode;
710
724
  }
725
+ export declare class BuildingSelectorHandler {
726
+ private _buildingSelector;
727
+ private _isEnabled;
728
+ private _position;
729
+ constructor(buildingSelector: BuildingFilterControl);
730
+ enable(): void;
731
+ disable(): void;
732
+ /**
733
+ * Set the position of the building selector control
734
+ * @param position
735
+ * @param index - The index of the control in the controls-container. Default at the last.
736
+ */
737
+ setPosition(position: ControlPosition, index?: number): void;
738
+ get isEnabled(): boolean;
739
+ get position(): ControlPosition;
740
+ }
711
741
  export interface IFloorSelectorOptions {
712
742
  language: PresetLanguage;
713
743
  style?: IFloorSelectorStyle;
@@ -780,22 +810,6 @@ export declare class FloorsControl implements IControl {
780
810
  private _handleScroll;
781
811
  private _expandSelector;
782
812
  }
783
- export declare class BuildingSelectorHandler {
784
- private _buildingSelector;
785
- private _isEnabled;
786
- private _position;
787
- constructor(buildingSelector: BuildingFilterControl);
788
- enable(): void;
789
- disable(): void;
790
- /**
791
- * Set the position of the building selector control
792
- * @param position
793
- * @param index - The index of the control in the controls-container. Default at the last.
794
- */
795
- setPosition(position: ControlPosition, index?: number): void;
796
- get isEnabled(): boolean;
797
- get position(): ControlPosition;
798
- }
799
813
  export declare class FloorSelectorHandler {
800
814
  private _floorSelector;
801
815
  private _isEnabled;
@@ -829,9 +843,26 @@ export declare class SwitchOutdoorHandler {
829
843
  disable(): void;
830
844
  get isEnabled(): boolean;
831
845
  }
846
+ export declare class IndoorClickSelection {
847
+ private _indoor;
848
+ private _isEnabled;
849
+ constructor(indoor: Indoor);
850
+ enable(): void;
851
+ disable(): void;
852
+ get isEnabled(): boolean;
853
+ }
854
+ export declare class OutdoorClickSelection {
855
+ private _indoor;
856
+ private _isEnabled;
857
+ constructor(indoor: Indoor);
858
+ enable(): void;
859
+ disable(): void;
860
+ get isEnabled(): boolean;
861
+ }
832
862
  export interface IPanToOptions {
833
863
  dragPan?: boolean;
834
864
  animate?: boolean;
865
+ fitBounds?: boolean;
835
866
  }
836
867
  export interface INormalLevelIndoorFeatures {
837
868
  venue: MapGeoJSONFeature;
@@ -894,7 +925,22 @@ export type TSelectedIndoorData = {
894
925
  sharedFloor: ISharedFloor;
895
926
  venue: MapGeoJSONFeature;
896
927
  } | null;
897
- export declare class Indoor extends EventEmitter {
928
+ declare class DragPanHandler {
929
+ private _maplibre;
930
+ private _isAnimated;
931
+ private _bounds;
932
+ private _boundsPadding;
933
+ private _center;
934
+ private _fitBoundsTimer;
935
+ constructor(maplibre: maplibregl$1.Map, padding: number | PaddingOptions);
936
+ setAnimated(animated: boolean): void;
937
+ setBounds(bounds: LngLatBoundsLike | null): void;
938
+ getBounds(): LngLatBoundsLike | null;
939
+ setCenter(lnglat: LngLatLike | null): void;
940
+ fitBounds(): Promise<unknown>;
941
+ panToCenter(): void;
942
+ }
943
+ export declare class Indoor extends TinyEmitter {
898
944
  private _map;
899
945
  private _features;
900
946
  private _allVenuesMap;
@@ -905,8 +951,6 @@ export declare class Indoor extends EventEmitter {
905
951
  private _curSharedLevelId;
906
952
  private _floor;
907
953
  private _sharedFloor;
908
- private _allowOutdoorSwitch;
909
- private _allowBuildingSwitch;
910
954
  private _outdoorMapShown;
911
955
  private _originIndoorLayers;
912
956
  private _outdoorLayers;
@@ -914,13 +958,13 @@ export declare class Indoor extends EventEmitter {
914
958
  private _curVenueFeature;
915
959
  private _selectedHighlightStyle;
916
960
  private _upperLayers;
961
+ private _commonPoiLayers;
962
+ private _sectionFillLineLayers;
963
+ private _sectionSymbolLayers;
917
964
  private _middleLayers;
918
- private _commonLayers;
919
965
  private _lowerLayers;
920
966
  private _excludedPoisInMiddle;
921
967
  private _dispatch;
922
- private readonly _fitBuildingBounds;
923
- private readonly _boundsPadding;
924
968
  private readonly _startWithIndoorView;
925
969
  private _indoorMapLoaded;
926
970
  private _isSelectSharedFloor;
@@ -929,45 +973,45 @@ export declare class Indoor extends EventEmitter {
929
973
  private _middleLevels;
930
974
  private _lowerLevels;
931
975
  private _featureIncomplete;
976
+ private _fitBounds;
932
977
  private _dragPan;
933
- private _animate;
934
- private _buildingBounds;
935
- private _venueBounds;
936
978
  private _history;
937
- private _layerBuildings;
938
- private readonly _hiddenBuildings;
979
+ private _hiddenBuildings;
939
980
  private _maskBuildings;
940
981
  private _maskSharedFloors;
941
982
  private _enableIndoorClickSelection;
942
983
  private _enableOutdoorClickSelection;
984
+ private _zIndexHistory;
943
985
  private _isDestroyed;
944
- private _fetchBuildingTimeoutId;
945
- private _fetchVenueTimeoutId;
946
- private _fitBoundsTimer;
947
986
  private _abortQueryFeature;
948
987
  private _debounceRendering;
988
+ dragPanHandler: DragPanHandler;
949
989
  constructor(props: {
950
990
  map: maplibregl$1.Map;
951
- fitBuildingBounds?: boolean;
952
- boundsPadding?: number | RequireAtLeastOne<PaddingOptions>;
953
- maskNonSelectedAreas?: boolean;
954
- startWithIndoorView?: boolean;
955
- outdoorMapShown?: boolean;
956
- selectedHighlightStyle?: ISelectedHighlightStyle;
991
+ fitBounds: boolean;
992
+ boundsPadding: number | PaddingOptions;
993
+ maskNonSelectedAreas: boolean;
994
+ startWithIndoorView: boolean;
995
+ outdoorMapShown: boolean;
957
996
  enableIndoorClickSelection: boolean;
958
997
  enableOutdoorClickSelection: boolean;
998
+ selectedHighlightStyle?: ISelectedHighlightStyle;
959
999
  });
960
1000
  destroy(): void;
961
1001
  /**
1002
+ * @deprecated
962
1003
  * @description Set whether to allow exiting building.
963
1004
  * @param allow
964
1005
  */
965
1006
  setAllowOutdoorSwitch(allow: boolean): this;
966
1007
  /**
1008
+ * @deprecated
967
1009
  * @description Set whether to allow switching building.
968
1010
  * @param allow
969
1011
  */
970
1012
  setAllowBuildingSwitch(allow: boolean): this;
1013
+ setAllowIndoorClickSelect(allow: boolean): void;
1014
+ setAllowOutdoorClickSelect(allow: boolean): void;
971
1015
  /**
972
1016
  * @description Get the current floor's information.
973
1017
  */
@@ -1032,41 +1076,17 @@ export declare class Indoor extends EventEmitter {
1032
1076
  updateCustomLayers(): void;
1033
1077
  updateRendering(): void;
1034
1078
  panToBuildingCenter(): Promise<void>;
1035
- fitBuildingBbox(): Promise<unknown>;
1036
1079
  panToVenueCenter(): Promise<void>;
1037
- fitVenueBbox(): Promise<unknown>;
1038
1080
  private _waitForFeatureLoaded;
1039
1081
  setDragPan(dragPan: boolean | "restrict"): void;
1040
- setAnimate(animate: boolean): void;
1041
- setBuildingBounds(bounds: [
1042
- [
1043
- number,
1044
- number
1045
- ],
1046
- [
1047
- number,
1048
- number
1049
- ]
1050
- ]): void;
1051
- setVenueBounds(bounds: [
1052
- [
1053
- number,
1054
- number
1055
- ],
1056
- [
1057
- number,
1058
- number
1059
- ]
1060
- ]): void;
1082
+ setFitBounds(fitBounds: boolean): void;
1061
1083
  queryIndoorFeaturesByClickPoint(point: PointLike): Promise<TSelectedIndoorData>;
1062
1084
  selectByClickMap(data: TSelectedIndoorData): Promise<void>;
1063
- private _updateBuildingBounds;
1064
- private _updateVenueBounds;
1065
1085
  private _bindMaplibreEventListeners;
1066
1086
  private _clear;
1067
1087
  private _getIndoorFeatures;
1068
1088
  private _getBuildingFloorByOrdinal;
1069
- private _isNotCurrentFeature;
1089
+ private _isCurrentFeature;
1070
1090
  private _setOutdoorVisibility;
1071
1091
  private _addReserveFloorLayers;
1072
1092
  private _addBuildingMaskLayer;
@@ -1083,7 +1103,7 @@ export declare class Indoor extends EventEmitter {
1083
1103
  private _layerSelectedLevels;
1084
1104
  private _layerUnselectedLevels;
1085
1105
  private _classifyFloors;
1086
- private _calcVenueInitOrdinal;
1106
+ private _calcVenueInitDisplayedData;
1087
1107
  private _getBuildingDisplayedLevel;
1088
1108
  private _filterLayers;
1089
1109
  private _filterIndoorLayers;
@@ -1095,7 +1115,6 @@ export declare class Indoor extends EventEmitter {
1095
1115
  private _queryVisibleFeature;
1096
1116
  private _queryRenderedFeatures;
1097
1117
  private _dispatchIndoorMapLoaded;
1098
- private _isSelectingDisabled;
1099
1118
  }
1100
1119
  declare class Map$1 implements IMapxusMap {
1101
1120
  private _map;
@@ -1106,7 +1125,7 @@ declare class Map$1 implements IMapxusMap {
1106
1125
  private _attributionControl;
1107
1126
  private _language;
1108
1127
  private _dispatch;
1109
- private _fitBuildingBounds;
1128
+ private _fitBounds;
1110
1129
  private _history;
1111
1130
  private _hiddenBuildings;
1112
1131
  private _debounceHTTPErrorHandler;
@@ -1115,10 +1134,12 @@ declare class Map$1 implements IMapxusMap {
1115
1134
  private _request;
1116
1135
  private _cancelTokenChangedListener;
1117
1136
  isDestroyed: boolean;
1118
- /** @deprecated Use "outdoorSelecting" instead */
1137
+ /** @deprecated Use "outdoorClickSelection" instead */
1119
1138
  switchOutdoor: SwitchOutdoorHandler;
1120
- /** @deprecated Use "indoorSelecting" instead */
1139
+ outdoorClickSelection: OutdoorClickSelection;
1140
+ /** @deprecated Use "indoorClickSelection" instead */
1121
1141
  switchBuilding: SwitchBuildingHandler;
1142
+ indoorClickSelection: IndoorClickSelection;
1122
1143
  buildingSelector: BuildingSelectorHandler;
1123
1144
  floorSelector: FloorSelectorHandler;
1124
1145
  constructor(options: IMapOption);
@@ -1257,7 +1278,7 @@ declare class Map$1 implements IMapxusMap {
1257
1278
  * @param theme ThemeType | string(customized map style file name)
1258
1279
  */
1259
1280
  switchTheme(theme: string): void;
1260
- setTheme(theme: string): void;
1281
+ setTheme(theme: ThemeType | string): void;
1261
1282
  /**
1262
1283
  * @deprecated Use 'setSelectedHighlightStyle' instead.
1263
1284
  * @description Set the SelectedBuildingBorder's style. If set to null, the border will be invisible.
@@ -1266,7 +1287,6 @@ declare class Map$1 implements IMapxusMap {
1266
1287
  setSelectedBuildingBorderStyle(style: ISelectedHighlightStyle | null): this;
1267
1288
  setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): this;
1268
1289
  private _setup;
1269
- private _getStyleUrl;
1270
1290
  private _setIndoorFilter;
1271
1291
  private _setStyle;
1272
1292
  private _addControl;
@@ -1564,13 +1584,12 @@ export declare class RoutePainter {
1564
1584
  }
1565
1585
  /**
1566
1586
  * AccessControl class, for providing token and managing token lifecycle.
1567
- * @extends EventEmitter
1568
1587
  * Three events are emitted:
1569
1588
  * - "updated": Emitted when the token is updated. Usage: accessControl.on("updated", ({ appId, token }) => {});
1570
1589
  * - "error": Emitted when an error occurs during token update. Usage: accessControl.on("error", (error) => {});
1571
1590
  * - "closed": Emitted when the access control is closed. Usage: accessControl.on("closed", () => {});
1572
1591
  */
1573
- export declare class AccessControl extends EventEmitter {
1592
+ export declare class AccessControl extends TinyEmitter {
1574
1593
  private readonly _appId;
1575
1594
  private readonly _secret;
1576
1595
  isClosed: boolean;
@@ -1691,11 +1710,18 @@ export declare class PoisService {
1691
1710
  */
1692
1711
  searchByVenue(options: ISearchByVenueOptions): TPromisePois<IPoi | ISharedPoi>;
1693
1712
  /**
1713
+ * @deprecated Use 'searchByFloors()' instead.
1694
1714
  * @description Search POIs of a floor.
1695
1715
  * @param options {TSearchByFloorOptions}
1696
1716
  * 'orderBy' cannot be used with 'keywords'.
1697
1717
  */
1698
1718
  searchByFloor(options: TSearchByFloorOptions): TPromisePois<IPoi | ISharedPoi>;
1719
+ /**
1720
+ * Search POIs of floors.
1721
+ * @param options {TSearchByFloorsOptions}
1722
+ * 'orderBy' cannot be used with 'keywords'.
1723
+ */
1724
+ searchByFloors(options: TSearchByFloorsOptions): TPromisePois<IPoi | ISharedPoi>;
1699
1725
  /**
1700
1726
  * @description Search surrounding POIs based on the user's location and orientation.
1701
1727
  * @param {TSearchByOrientationOptions} options
@@ -1724,15 +1750,74 @@ export declare class RouteService {
1724
1750
  */
1725
1751
  search(options: IRouteSearchOptions): TPromiseRoute;
1726
1752
  }
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
+ export interface IMapxusLib {
1762
+ Map: typeof Map$1;
1763
+ /** @deprecated */
1764
+ Indoor: typeof Indoor;
1765
+ Marker: typeof Marker;
1766
+ Poi: typeof Poi;
1767
+ RoutePainter: typeof RoutePainter;
1768
+ /** @deprecated */
1769
+ AccessControl: typeof AccessControl;
1770
+ /** @deprecated */
1771
+ BuildingFilterControl: typeof BuildingFilterControl;
1772
+ BuildingSelectorHandler: typeof BuildingSelectorHandler;
1773
+ /** @deprecated */
1774
+ FloorsControl: typeof FloorsControl;
1775
+ FloorSelectorHandler: typeof FloorSelectorHandler;
1776
+ /** @deprecated */
1777
+ SwitchBuildingHandler: typeof SwitchBuildingHandler;
1778
+ /** @deprecated */
1779
+ SwitchOutdoorHandler: typeof SwitchOutdoorHandler;
1780
+ IndoorClickSelection: typeof IndoorClickSelection;
1781
+ OutdoorClickSelection: typeof OutdoorClickSelection;
1782
+ VenuesService: typeof VenuesService;
1783
+ BuildingsService: typeof BuildingsService;
1784
+ PoisService: typeof PoisService;
1785
+ RouteService: typeof RouteService;
1786
+ }
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;
1727
1810
  export declare const OFFSET: number;
1728
1811
  export declare const PAGE: number;
1812
+ export declare const ERRORS: readonly [
1813
+ "unauthorized",
1814
+ "initError"
1815
+ ];
1729
1816
  /**
1730
1817
  * @description Convert browser language to preset language
1731
1818
  * @param language {string} window.navigator.language
1732
1819
  */
1733
1820
  export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
1734
- export declare const ASSISTANT_LAYER_INDOOR_FLOORS = "reserve_mapxus-level-fill";
1735
- export declare const ASSISTANT_LAYER_SHARED_FLOORS = "reserve_mapxus-shared-level-fill";
1736
1821
  /**
1737
1822
  * Get access token
1738
1823
  * @param appId
@@ -1745,22 +1830,11 @@ export declare function getAccessToken(appId: string, secret: string, platform?:
1745
1830
  accessToken: string;
1746
1831
  expiredTime: number;
1747
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";
1748
1835
  export declare function getIdentifier(): Promise<string>;
1749
1836
  export declare function setGetTokenAsync(fn: TAccessTokenGetter): void;
1750
1837
  export declare function setupTokenManager(): Promise<void>;
1751
- export type InputProduct = "UI_SDK" | "ANYWHERE";
1752
- /**
1753
- * @private
1754
- * This method is internal and should not be exposed in the documentation.
1755
- */
1756
- export declare const __internal: {
1757
- [x: symbol]: (names: InputProduct[]) => void;
1758
- };
1759
- export declare const ERRORS: readonly [
1760
- "unauthorized",
1761
- "initError"
1762
- ];
1763
- export declare const VERSION: string;
1764
1838
 
1765
1839
  export {
1766
1840
  Map$1 as Map,