@mapxus/mapxus-map-jp 7.11.0 → 8.1.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,25 +1,28 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
3
  import { AxiosPromise } from 'axios';
4
+ import { EventEmitter } from 'events';
4
5
  import { GeoJsonProperties, LineString, Point } from 'geojson';
5
6
  import maplibregl$1 from 'maplibre-gl';
6
- import { ControlPosition, FilterSpecification, IControl, LngLat, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike, RequireAtLeastOne } from 'maplibre-gl';
7
+ import { ControlPosition, ExpressionSpecification, FilterSpecification, IControl, LngLat, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike, RequireAtLeastOne } from 'maplibre-gl';
7
8
 
8
9
  /** @deprecated */
9
10
  export declare enum FloorSwitchMode {
10
11
  SWITCHED_BY_BUILDING = 0,
11
12
  SWITCHED_BY_VENUE = 1
12
13
  }
13
- /**
14
- * @deprecated Use enum `PresetLanguage` instead.
15
- */
16
- export type TPresetLanguage = "en" | "zh-Hans" | "zh-Hant" | "ja" | "ko";
17
14
  export declare enum PresetLanguage {
18
15
  ENGLISH = "en",
19
16
  CHINESE_SIMPLIFIED = "zh-Hans",
20
17
  CHINESE_TRADITIONAL = "zh-Hant",
21
18
  JAPANESE = "ja",
22
- KOREAN = "ko"
19
+ KOREAN = "ko",
20
+ FILIPINO = "fil",
21
+ INDONESIAN = "id",
22
+ PORTUGUESE = "pt",
23
+ THAI = "th",
24
+ VIETNAMESE = "vi",
25
+ ARABIC = "ar"
23
26
  }
24
27
  export declare enum ThemeType {
25
28
  CHRISTMAS = "christmas",
@@ -30,6 +33,10 @@ export declare enum ThemeType {
30
33
  COMMON = "common",
31
34
  MAPXUS_V2 = "mapxus_v2"
32
35
  }
36
+ export declare enum AccessControlOrigin {
37
+ Self = "self",
38
+ Map = "map"
39
+ }
33
40
  export interface IBbox {
34
41
  maxLat: number;
35
42
  maxLon: number;
@@ -90,6 +97,28 @@ export interface IResponseBuildings {
90
97
  total: number;
91
98
  }
92
99
  export type TPromiseBuildings = AxiosPromise<IResponse<IResponseBuildings>>;
100
+ export interface IBuildingSearchCustomizedOptions {
101
+ bounds?: [
102
+ [
103
+ number,
104
+ number
105
+ ],
106
+ [
107
+ number,
108
+ number
109
+ ]
110
+ ];
111
+ center?: [
112
+ number,
113
+ number
114
+ ];
115
+ distance?: number;
116
+ keywords?: string;
117
+ signal?: boolean;
118
+ visual?: boolean;
119
+ offset?: number;
120
+ page?: number;
121
+ }
93
122
  export type TPointFeature = GeoJSON.Feature<Point, GeoJsonProperties>;
94
123
  export type TLineStringFeature = GeoJSON.Feature<LineString, GeoJsonProperties>;
95
124
  export interface IFloor {
@@ -97,18 +126,6 @@ export interface IFloor {
97
126
  id: string | null;
98
127
  ordinal: string | null;
99
128
  }
100
- /**
101
- * @deprecated Use 'IFloorSelectorStyle' instead.
102
- */
103
- export interface IFloorsControlStyle {
104
- fontColor?: string;
105
- activeFontColor?: string;
106
- backgroundColor?: string;
107
- activeBackgroundColor?: string;
108
- itemSize?: number;
109
- itemCount?: number;
110
- defaultFolded?: boolean;
111
- }
112
129
  export interface IFloorSelectorStyle {
113
130
  fontColor?: string;
114
131
  activeFontColor?: string;
@@ -133,11 +150,7 @@ export interface IMapOption {
133
150
  map: maplibregl$1.Map;
134
151
  appId: string;
135
152
  secret: string;
136
- /** @deprecated Use 'floorSelectorEnabled' instead */
137
- enableFloorControl?: boolean;
138
153
  floorSelectorEnabled?: boolean;
139
- /** @deprecated Use 'buildingSelectorEnabled' instead */
140
- enableBuildingSelector?: boolean;
141
154
  buildingSelectorEnabled?: boolean;
142
155
  /**
143
156
  * @description 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
@@ -160,18 +173,10 @@ export interface IMapOption {
160
173
  * the priority is: poiId > floorId > buildingId > venueId.
161
174
  */
162
175
  poiId?: string;
163
- /**
164
- * @deprecated Use 'outdoorMapShown' instead.
165
- */
166
- hiddenOutdoor?: boolean;
167
176
  outdoorMapShown?: boolean;
168
177
  theme?: ThemeType | string;
169
178
  collapseCopyright?: boolean;
170
179
  selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
171
- /**
172
- * @deprecated Use 'floorSelectorStyle' instead.
173
- */
174
- floorsControlStyle?: IFloorsControlStyle;
175
180
  floorSelectorStyle?: IFloorSelectorStyle;
176
181
  /**
177
182
  * @description Switch floors by venue/building, default by venue.
@@ -222,6 +227,41 @@ export interface IPointEvent {
222
227
  coordinate: LngLat;
223
228
  point: PointLike;
224
229
  }
230
+ export declare enum DistanceSearchType {
231
+ POINT = "Point",
232
+ POLYGON = "Polygon"
233
+ }
234
+ export declare enum OrientationDistanceSearchType {
235
+ POINT = "Point",
236
+ POLYGON = "Polygon",
237
+ GATE = "Gate"
238
+ }
239
+ export interface IBoundsSpec {
240
+ /** An array of LngLat coordinates in [sw, ne] order */
241
+ bounds: [
242
+ [
243
+ number,
244
+ number
245
+ ],
246
+ [
247
+ number,
248
+ number
249
+ ]
250
+ ];
251
+ }
252
+ export interface IKeywordSpec {
253
+ keywords?: string;
254
+ }
255
+ export interface IBuildingSpec {
256
+ buildingId: string;
257
+ }
258
+ export interface IVenueSpec {
259
+ venueId: string;
260
+ }
261
+ export interface IFloorSpec {
262
+ floorId: string;
263
+ }
264
+ export type TSearchCategoriesOptions = IVenueSpec | IBuildingSpec | IFloorSpec | (IBoundsSpec & IKeywordSpec);
225
265
  export interface IPoi {
226
266
  accessibilityDetail: IMultilingualName;
227
267
  buildingId: string;
@@ -235,8 +275,6 @@ export interface IPoi {
235
275
  osmRefId: number;
236
276
  poiId: string;
237
277
  venueId: string;
238
- /** @deprecated 'description' will be removed soon */
239
- description?: string;
240
278
  descriptions?: IMultilingualName;
241
279
  email?: string;
242
280
  openingHours?: string;
@@ -250,11 +288,6 @@ export interface IResponsePois {
250
288
  export type TPromisePois = AxiosPromise<IResponse<IResponsePois>>;
251
289
  export type TPromiseCategories = AxiosPromise<IResponse<IPoiCategory[]>>;
252
290
  export type TPromiseOrientationPois = AxiosPromise<IResponse<IOrientationPoi[]>>;
253
- export declare enum DistanceSearchType {
254
- POINT = "Point",
255
- POLYGON = "Polygon",
256
- GATE = "Gate"
257
- }
258
291
  export interface IPoiCategory {
259
292
  category: string;
260
293
  description: string | null;
@@ -333,7 +366,7 @@ export interface ISearchOrientation {
333
366
  /**
334
367
  * The type of POI, default is 'Point'.
335
368
  */
336
- distanceSearchType?: DistanceSearchType;
369
+ distanceSearchType?: OrientationDistanceSearchType;
337
370
  }
338
371
  export interface IPoiSearchByOrientationAndBuildingOptions extends ISearchOrientation {
339
372
  buildingId: string;
@@ -345,36 +378,13 @@ export interface IPoiSearchByOrientationAndOrdinalOptions extends ISearchOrienta
345
378
  ordinal: string;
346
379
  }
347
380
  export type TPoiSearchByOrientationOptions = IPoiSearchByOrientationAndBuildingOptions | IPoiSearchByOrientationAndFloorOptions | IPoiSearchByOrientationAndOrdinalOptions;
348
- export interface IPoiSearchOrientationOptions {
349
- /**
350
- * User's current position, [lng, lat].
351
- */
352
- center: [
353
- number,
354
- number
355
- ];
356
- /**
357
- * The angle between cellphone's orientation and the north.
358
- */
359
- angle: number;
360
- /**
361
- * Radius.
362
- */
363
- distance: number;
364
- buildingId?: string;
365
- floorId?: string;
366
- /**
367
- * Floor order in physical space, e.g. '-1', '0'(ground floor), '1'...
368
- */
369
- ordinal?: string;
370
- /**
371
- * Search type.
372
- */
373
- distanceSearchType?: DistanceSearchType;
374
- }
375
381
  export declare enum PoisOrderBy {
376
382
  DEFAULT_NAME = "DefaultName"
377
383
  }
384
+ export declare enum PoisSortBy {
385
+ ABSOLUTE_DISTANCE = "AbsoluteDistance",
386
+ ACTUAL_DISTANCE = "ActualDistance"
387
+ }
378
388
  export interface ISearchKeywords {
379
389
  keywords?: string;
380
390
  /**
@@ -414,6 +424,34 @@ export interface IPoiSearchByBoundsOptions extends ISearchKeywords {
414
424
  ];
415
425
  orderBy?: PoisOrderBy;
416
426
  }
427
+ export interface IPoiSearchCustomizedOptions {
428
+ bounds?: [
429
+ [
430
+ number,
431
+ number
432
+ ],
433
+ [
434
+ number,
435
+ number
436
+ ]
437
+ ];
438
+ center?: [
439
+ number,
440
+ number
441
+ ];
442
+ distance?: number;
443
+ category?: string;
444
+ excludedCategories?: string | string[];
445
+ floorId?: string;
446
+ buildingId?: string;
447
+ venueId?: string;
448
+ keywords?: string;
449
+ orderBy?: PoisOrderBy;
450
+ sort?: PoisSortBy;
451
+ distanceSearchType?: DistanceSearchType;
452
+ offset?: number;
453
+ page?: number;
454
+ }
417
455
  export interface ITokenInfo {
418
456
  "app:name": string;
419
457
  auth_time: number;
@@ -491,8 +529,6 @@ export interface IRouteSearchOptions {
491
529
  points: Array<{
492
530
  lat: number;
493
531
  lon: number;
494
- /** @deprecated 'buildingId' will be removed in future versions */
495
- buildingId?: string;
496
532
  floorId?: string;
497
533
  }>;
498
534
  /**
@@ -503,11 +539,6 @@ export interface IRouteSearchOptions {
503
539
  * @description Language-specific response. Default is "en".
504
540
  */
505
541
  locale?: PresetLanguage;
506
- /**
507
- * @description Whether the end point of the route is at the door(otherwise in the room), default is "true".
508
- * @deprecated
509
- */
510
- toDoor?: boolean;
511
542
  }
512
543
  export interface IVenueInlineBuilding {
513
544
  buildingOutlineId: number;
@@ -555,88 +586,9 @@ export interface IResponseVenues {
555
586
  total: number;
556
587
  }
557
588
  export type TPromiseVenues = AxiosPromise<IResponse<IResponseVenues>>;
558
- export interface IBoundsSpec {
559
- /** An array of LngLat coordinates in [sw, ne] order */
560
- bounds: [
561
- [
562
- number,
563
- number
564
- ],
565
- [
566
- number,
567
- number
568
- ]
569
- ];
570
- }
571
- export interface IKeywordSpec {
572
- keywords?: string;
573
- }
574
- export interface IBuildingSpec {
575
- buildingId: string;
589
+ export interface IVenueSearchCustomizedOptions extends IBuildingSearchCustomizedOptions {
576
590
  }
577
- export interface IVenueSpec {
578
- venueId: string;
579
- }
580
- export interface IFloorSpec {
581
- floorId: string;
582
- }
583
- export type TSearchCategoriesOptions = IVenueSpec | IBuildingSpec | IFloorSpec | (IBoundsSpec & IKeywordSpec);
584
- export type Listener = (param: any) => any;
585
- declare class Event$1 {
586
- private _type;
587
- private _target;
588
- constructor(type: string, data?: Object);
589
- get type(): string;
590
- set type(type: string);
591
- get target(): Evented;
592
- set target(target: Evented);
593
- }
594
- /** MixedEvent class */
595
- export declare class Evented {
596
- private _listeners;
597
- private _oneTimeListeners;
598
- private _eventedParent;
599
- private _eventedParentData;
600
- /**
601
- * @description Register a new event listener
602
- * @param type name of the event(a unique string)
603
- * @param listener event handler, it will be called when the event is fired
604
- */
605
- on(type: string, listener: Listener): this;
606
- /**
607
- * @description Remove a registered event listener
608
- * @param type name of the event
609
- * @param listener event handler
610
- */
611
- off(type: string, listener: Listener): this;
612
- /**
613
- * Adds a listener that will be called only once to a specified event type.
614
- *
615
- * The listener will be called first time the event fires after the listener is registered.
616
- *
617
- * @param {string} type The event type to listen for.
618
- * @param {Function} listener The function to be called when the event is fired the first time.
619
- * @returns {Object} `this`
620
- */
621
- once(type: string, listener: Listener): this;
622
- fire(event: Event$1): this;
623
- /**
624
- * Returns a true if this instance of Evented or any forwardeed instances of Evented have a listener for the specified type.
625
- *
626
- * @param {string} type The event type
627
- * @returns {boolean} `true` if there is at least one registered listener for specified event type, `false` otherwise
628
- * @private
629
- */
630
- listens(type: string): boolean;
631
- /**
632
- * Bubble all events fired by this instance of Evented to this parent instance of Evented.
633
- *
634
- * @returns {Object} `this`
635
- * @private
636
- */
637
- setEventedParent(parent: Evented, data?: Object | (() => Object)): this;
638
- }
639
- export declare class Indoor extends Evented {
591
+ export declare class Indoor extends EventEmitter {
640
592
  private _map;
641
593
  private _features;
642
594
  private _allBuildings;
@@ -662,7 +614,7 @@ export declare class Indoor extends Evented {
662
614
  private _maplibreMapLoaded;
663
615
  private _indoorMapLoaded;
664
616
  private readonly _isVenueMode;
665
- private _isMaskMode;
617
+ private readonly _isMaskMode;
666
618
  private _upperLevels;
667
619
  private _lowerLevels;
668
620
  private _featureIncomplete;
@@ -674,6 +626,10 @@ export declare class Indoor extends Evented {
674
626
  private _upperBuildings;
675
627
  private _lowerBuildings;
676
628
  private readonly _hiddenBuildings;
629
+ private _isDestroyed;
630
+ private _findBuildingTimeoutId;
631
+ private _findBuildingIntervalId;
632
+ private _debounceRendering;
677
633
  constructor(props: {
678
634
  map: maplibregl$1.Map;
679
635
  /** @deprecated */
@@ -681,43 +637,16 @@ export declare class Indoor extends Evented {
681
637
  fitBuildingBounds?: boolean;
682
638
  boundsPadding?: number | RequireAtLeastOne<PaddingOptions>;
683
639
  maskNonSelectedAreas?: boolean;
684
- /**
685
- * @deprecated Use 'startWithIndoorView' instead.
686
- */
687
- isInitialIndoor?: boolean;
688
640
  startWithIndoorView?: boolean;
689
- /**
690
- * @deprecated Use 'outdoorMapShown' instead.
691
- */
692
- isHiddenOutdoor?: boolean;
693
641
  outdoorMapShown?: boolean;
694
642
  selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
695
643
  });
696
- /**
697
- * @description Turn on indoor-outdoor switching.
698
- * @deprecated Use 'setAllowOutdoorSwitch(true)' instead.
699
- */
700
- enableSwitch(): this;
701
- /**
702
- * @description Turn off indoor-outdoor switching.
703
- * @deprecated Use 'setAllowOutdoorSwitch(false)' instead.
704
- */
705
- disableSwitch(): this;
644
+ destroy(): void;
706
645
  /**
707
646
  * @description Set whether to allow exiting building.
708
647
  * @param allow
709
648
  */
710
649
  setAllowOutdoorSwitch(allow: boolean): this;
711
- /**
712
- * @description Turn on building-building switching.
713
- * @deprecated Use 'setAllowBuildingSwitch(true)' instead.
714
- */
715
- enableSwitchBuilding(): this;
716
- /**
717
- * @description Turn off building-building switching.
718
- * @deprecated Use 'setAllowBuildingSwitch(false)' instead.
719
- */
720
- disableSwitchBuilding(): this;
721
650
  /**
722
651
  * @description Set whether to allow switching building.
723
652
  * @param allow
@@ -741,13 +670,6 @@ export declare class Indoor extends Evented {
741
670
  * @description Get the geo features of bbox.
742
671
  */
743
672
  get features(): MapGeoJSONFeature[];
744
- /**
745
- * @description Get specified feature of bbox by id.
746
- * @deprecated Use 'getFeaturesById' instead.
747
- * @param id
748
- * @return {MapGeoJSONFeature | undefined}
749
- */
750
- getFeature(id: string): MapGeoJSONFeature | undefined;
751
673
  /**
752
674
  * @description Get features from bbox by id.
753
675
  * @param id
@@ -757,24 +679,11 @@ export declare class Indoor extends Evented {
757
679
  layerIds?: string[];
758
680
  filter?: (feature: MapGeoJSONFeature) => boolean;
759
681
  }): MapGeoJSONFeature[];
760
- /**
761
- * @description Get level feature at the point
762
- * @deprecated
763
- * @param point
764
- * @return {MapGeoJSONFeature | null}
765
- */
766
- getLevelByPoint(point: PointLike): MapGeoJSONFeature | null;
767
682
  /**
768
683
  * @description Switch floor by ordinal.
769
684
  * @param ordinal
770
685
  */
771
686
  switchFloorByOrdinal(ordinal: string | null): Promise<void>;
772
- /**
773
- * @description Hide the outdoor layer.
774
- * @deprecated Use 'setOutdoorMapShown' instead.
775
- * @param isHiddenOutdoor
776
- */
777
- hiddenOutdoorLayer(isHiddenOutdoor: boolean): void;
778
687
  setOutdoorMapShown(shown: boolean): void;
779
688
  /**
780
689
  * @description Update map layout.
@@ -785,12 +694,6 @@ export declare class Indoor extends Evented {
785
694
  * @param style {ISelectedBuildingBorderStyle | null}
786
695
  */
787
696
  setSelectedBuildingBorderStyle(style: ISelectedBuildingBorderStyle | null): void;
788
- /**
789
- * @description Set whether to cover the unselected venues/buildings.
790
- * @deprecated
791
- * @param mask Default is false.
792
- */
793
- setMaskNonSelectedAreas(mask: boolean): void;
794
697
  /**
795
698
  * @description Listen for the indoor map state, including the changes of venue, building and floor.
796
699
  * @param listener
@@ -852,6 +755,7 @@ export declare class Indoor extends Evented {
852
755
  private _resetSelectedBuildingLevel;
853
756
  private _checkAndPanToBuilding;
854
757
  private _invisibleSelectedBuilding;
758
+ private _clearTimers;
855
759
  }
856
760
  export declare class BuildingFilterControl implements IControl {
857
761
  private _map;
@@ -864,29 +768,13 @@ export declare class BuildingFilterControl implements IControl {
864
768
  private _listHeight;
865
769
  private _visible;
866
770
  private _position;
867
- /**
868
- * @param map
869
- * @param position - **@deprecated** The optional parameter **'position' will be removed soon**.
870
- * @param buildingSelectorEnabled
871
- */
872
- constructor(map: Map$1, position?: ControlPosition, buildingSelectorEnabled?: boolean);
771
+ constructor(map: Map$1, buildingSelectorEnabled?: boolean);
873
772
  onAdd(map: maplibregl$1.Map): HTMLElement;
874
773
  onRemove(): void;
875
774
  get position(): ControlPosition;
876
775
  get enabled(): boolean;
877
776
  getDefaultPosition(): ControlPosition;
878
- /**
879
- * @deprecated Use 'setVisibility' instead.
880
- * @param isHidden
881
- */
882
- setLayoutHidden(isHidden: boolean): void;
883
777
  setVisibility(isVisible: boolean): void;
884
- /**
885
- * @deprecated Use 'changePosition' instead.
886
- * @param from
887
- * @param to
888
- */
889
- moveBuildingFilter(from: ControlPosition, to: ControlPosition): void;
890
778
  changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
891
779
  private _loadData;
892
780
  private _init;
@@ -932,10 +820,8 @@ export declare class FloorsControl implements IControl {
932
820
  private _isEnabled;
933
821
  private _visible;
934
822
  private _dragPan;
935
- /**
936
- * @param indoor
937
- * @param options
938
- */
823
+ private _debounceScroll;
824
+ private _clearScrollEventListener;
939
825
  constructor(indoor: Indoor, options: IFloorSelectorOptions);
940
826
  onAdd(map: maplibregl$1.Map): HTMLElement;
941
827
  onRemove(): void;
@@ -948,17 +834,7 @@ export declare class FloorsControl implements IControl {
948
834
  * @param ordinal
949
835
  * @param dragPan
950
836
  */
951
- switchByOrdinal(ordinal: string, dragPan?: boolean): void;
952
- /**
953
- * @deprecated
954
- * @param visible
955
- */
956
- setVisibility(visible: boolean): void;
957
- /**
958
- * @deprecated Use 'changePosition' instead.
959
- * @param position
960
- */
961
- setPosition(position: ControlPosition): void;
837
+ switchByOrdinal(ordinal: string, dragPan?: boolean): Promise<void>;
962
838
  changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
963
839
  setStyle(style: Partial<IFloorSelectorStyle>): void;
964
840
  private _setVisibility;
@@ -1033,7 +909,8 @@ export declare class SwitchOutdoorHandler {
1033
909
  disable(): void;
1034
910
  get isEnabled(): boolean;
1035
911
  }
1036
- declare class Map$1 extends Evented {
912
+ declare class Map$1 {
913
+ private _appId;
1037
914
  private _map;
1038
915
  private _indoor;
1039
916
  private _poi;
@@ -1046,6 +923,9 @@ declare class Map$1 extends Evented {
1046
923
  private _fitBuildingBounds;
1047
924
  private _history;
1048
925
  private _hiddenBuildings;
926
+ private _debounceHTTPErrorHandler;
927
+ private _debounceTilesFilter;
928
+ isDestroyed: boolean;
1049
929
  switchOutdoor: SwitchOutdoorHandler;
1050
930
  switchBuilding: SwitchBuildingHandler;
1051
931
  buildingSelector: BuildingSelectorHandler;
@@ -1056,6 +936,7 @@ declare class Map$1 extends Evented {
1056
936
  * @param callback
1057
937
  */
1058
938
  renderComplete(callback: VoidFunction): void;
939
+ destroyed(callback: VoidFunction): void;
1059
940
  /**
1060
941
  * @description Get map indoor instance.
1061
942
  */
@@ -1064,11 +945,6 @@ declare class Map$1 extends Evented {
1064
945
  * @description Get maplibre map instance.
1065
946
  */
1066
947
  getMaplibre(): maplibregl$1.Map;
1067
- /**
1068
- * @description Get maplibre map instance.
1069
- * @deprecated Use 'getMaplibre' instead.
1070
- */
1071
- getMap(): maplibregl$1.Map;
1072
948
  /**
1073
949
  * @description Get current selected floor info.
1074
950
  * @return {IFloor | null}
@@ -1084,55 +960,21 @@ declare class Map$1 extends Evented {
1084
960
  * @return {MapGeoJSONFeature | null}
1085
961
  */
1086
962
  get venue(): MapGeoJSONFeature | null;
1087
- /**
1088
- * @description Translate POI name to the specified language.
1089
- * @deprecated Use 'setLanguage' instead.
1090
- * @param language Window.navigator.language.
1091
- */
1092
- transformPoiTextFieldLanguage(language: string): void;
1093
963
  /**
1094
964
  * @description Set map language.
1095
965
  * @param language {PresetLanguage} convertBrowserLangToPresetLang(Window.navigator.language).
1096
966
  */
1097
967
  setLanguage(language: PresetLanguage): void;
1098
968
  /**
1099
- * @description Turn on indoor-outdoor switching.
1100
- * @deprecated Use 'switchOutdoor.enable()' instead.
1101
- */
1102
- enableSwitch(): this;
1103
- /**
1104
- * @description Turn off indoor-outdoor switching.
1105
- * @deprecated Use 'switchOutdoor.disable()' instead.
1106
- */
1107
- disableSwitch(): this;
1108
- /**
1109
- * @description Turn on building-building switching.
1110
- * @deprecated Use 'switchBuilding.enable()' instead.
1111
- */
1112
- enableSwitchBuilding(): this;
1113
- /**
1114
- * @description Turn off building-building switching.
1115
- * @deprecated Use 'switchBuilding.disable()' instead.
1116
- */
1117
- disableSwitchBuilding(): this;
1118
- /**
1119
- * @description Set outdoor layer to be shown or hidden.
1120
- * @deprecated Use 'setOutdoorMapShown' instead.
1121
- * @param isHidden True is hidden, false is shown.
969
+ * @description Get map language.
970
+ * @return {PresetLanguage}
1122
971
  */
1123
- setOutdoorLayerHidden(isHidden: boolean): void;
972
+ getLanguage(): PresetLanguage;
1124
973
  /**
1125
974
  * @description Set outdoor map to be shown or hidden.
1126
975
  * @param shown
1127
976
  */
1128
977
  setOutdoorMapShown(shown: boolean): void;
1129
- /**
1130
- * @description Get feature in bbox by id.
1131
- * @deprecated Use 'getFeaturesById' instead.
1132
- * @param id
1133
- * @return {MapGeoJSONFeature | undefined}
1134
- */
1135
- getFeature(id: string): MapGeoJSONFeature | undefined;
1136
978
  /**
1137
979
  * @description Get features from bbox by coordinates [and ordinal].
1138
980
  * @param coordinates
@@ -1215,34 +1057,11 @@ declare class Map$1 extends Evented {
1215
1057
  }) => void): {
1216
1058
  unsubscribe: VoidFunction;
1217
1059
  };
1218
- /**
1219
- * @description Hide the BuildingSelector.
1220
- * @deprecated Use 'buildingSelector.disable()' instead.
1221
- */
1222
- disableBuildingSelector(): this;
1223
- /**
1224
- * @description Show the BuildingSelector.
1225
- * @deprecated Use 'buildingSelector.enable()' instead.
1226
- * @param position
1227
- */
1228
- enableBuildingSelector(position?: ControlPosition): this;
1229
1060
  /**
1230
1061
  * @description Switch the map style
1231
1062
  * @param theme ThemeType | string(customized map style file name)
1232
1063
  */
1233
1064
  switchTheme(theme: string): void;
1234
- /**
1235
- * @description Set the floorsControl's style.
1236
- * @deprecated Use 'setFloorSelectorStyle' instead.
1237
- * @param style
1238
- */
1239
- setFloorsControlStyle(style: IFloorsControlStyle): this;
1240
- /**
1241
- * @description Set the FloorSelector's style.
1242
- * @deprecated Use 'map.floorSelector.setStyle()' instead.
1243
- * @param style
1244
- */
1245
- setFloorSelectorStyle(style: IFloorSelectorStyle): this;
1246
1065
  /**
1247
1066
  * @description Set the SelectedBuildingBorder's style. If set to null, the border will be invisible.
1248
1067
  * @param style {ISelectedBuildingBorderStyle | null}
@@ -1264,6 +1083,7 @@ declare class Map$1 extends Evented {
1264
1083
  * @returns Map<buildingId, buildingFeature>
1265
1084
  */
1266
1085
  private _getCenterBuildingsMap;
1086
+ private _destroy;
1267
1087
  }
1268
1088
  export declare class Marker {
1269
1089
  private readonly _maplibreMap;
@@ -1320,15 +1140,6 @@ export declare class Marker {
1320
1140
  * @description Remove marker[s] layer and source.
1321
1141
  */
1322
1142
  remove(): void;
1323
- /**
1324
- * @description Add marker event listener.
1325
- * @deprecated Use 'on' method instead.
1326
- * @param eventKey
1327
- * @param callback
1328
- */
1329
- onEventListener(eventKey: keyof MapLayerEventType, callback: (marker: MapGeoJSONFeature) => void): {
1330
- offEventListener: VoidFunction;
1331
- };
1332
1143
  /**
1333
1144
  * @description Add marker event listener.
1334
1145
  * @param eventKey
@@ -1374,19 +1185,21 @@ export declare class Marker {
1374
1185
  * Required 'venueId' and 'ordinal' in properties.
1375
1186
  * Opacities of markers matched 'venueId' and 'ordinal' are 1, others are 0.5.
1376
1187
  * Outdoor markers' opacity always are 1.
1377
- * @param venueId {string | null | undefined} null | undefined will be treated as ''.
1378
- * @param ordinal {string | null | undefined} null | undefined will be treated as ''.
1188
+ * @param venueId {string | null | undefined}
1189
+ * @param ordinal {string | null | undefined}
1190
+ * @param inactiveOpacity {number} The opacity of marker while it's NOT in current floor, default is 0.5.
1379
1191
  */
1380
- setOpacityByVenue(venueId: string | null | undefined, ordinal: string | null | undefined): void;
1192
+ setOpacityByVenue(venueId: string | null | undefined, ordinal: string | null | undefined, inactiveOpacity?: number): void;
1381
1193
  /**
1382
1194
  * @description Set marker's icon-opacity by buildingId and ordinal.
1383
1195
  * Required 'buildingId' and 'ordinal' in properties.
1384
1196
  * Opacities of markers matched 'buildingId' and 'ordinal' are 1, others are 0.5.
1385
1197
  * Outdoor markers' opacity always are 1.
1386
- * @param buildingId {string | null | undefined} null | undefined will be treated as ''.
1387
- * @param ordinal {string | null | undefined} null | undefined will be treated as ''.
1198
+ * @param buildingId {string | null | undefined}
1199
+ * @param ordinal {string | null | undefined}
1200
+ * @param inactiveOpacity {number} The opacity of marker while it's NOT in current floor, default is 0.5.
1388
1201
  */
1389
- setOpacityByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
1202
+ setOpacityByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined, inactiveOpacity?: number): void;
1390
1203
  private _createIconFeature;
1391
1204
  private _addIconSource;
1392
1205
  private _addIconLayer;
@@ -1396,7 +1209,9 @@ export declare class Poi {
1396
1209
  private _map;
1397
1210
  private _layerIds;
1398
1211
  private _dispatch;
1212
+ private _debounceQueryFeatures;
1399
1213
  constructor(map: maplibregl$1.Map);
1214
+ destroy(): void;
1400
1215
  /**
1401
1216
  * @description Listen for POI click events.
1402
1217
  * @param listener
@@ -1405,19 +1220,52 @@ export declare class Poi {
1405
1220
  unsubscribe: VoidFunction;
1406
1221
  };
1407
1222
  private _bindEvents;
1408
- private _init;
1223
+ private _queryPoiLayers;
1409
1224
  private _initPoiClick;
1410
1225
  private _getFloorDataByFloorId;
1411
1226
  }
1227
+ export interface IRouteMarkers {
1228
+ from: string | null;
1229
+ to: string | null;
1230
+ stops: Array<string | null> | null;
1231
+ }
1232
+ export interface IRouteStyle<T> {
1233
+ indoorLineColor?: string | ExpressionSpecification;
1234
+ outdoorLineColor?: string | ExpressionSpecification;
1235
+ dashedLineColor?: string | ExpressionSpecification;
1236
+ shuttleBusLineColor?: string | ExpressionSpecification;
1237
+ lineWidth?: number | ExpressionSpecification;
1238
+ dashedLineWidth?: number | ExpressionSpecification;
1239
+ disableDashedLine?: boolean;
1240
+ inactiveRouteOpacity?: number | ExpressionSpecification;
1241
+ markers?: T;
1242
+ markerIconSize?: number | ExpressionSpecification;
1243
+ lineSymbol?: {
1244
+ /**
1245
+ * @description Icon url or sprite name.
1246
+ */
1247
+ image?: string | null;
1248
+ size?: number | ExpressionSpecification;
1249
+ spacing?: number | ExpressionSpecification;
1250
+ };
1251
+ }
1252
+ export type TRouteStyleOptions = IRouteStyle<Partial<IRouteMarkers> | Array<string | null>>;
1412
1253
  export declare class RoutePainter {
1413
1254
  private readonly _maplibreMap;
1414
- private _fromMarkerIcon;
1415
- private _toMarkerIcon;
1416
- private _stopMarkerIcons;
1417
- private _markerIconSize;
1418
- private _paintProperties;
1419
- constructor(maplibreMap: maplibregl$1.Map);
1255
+ private _routeStyle;
1256
+ private _styleDiffs;
1257
+ private _filterBy;
1258
+ private _curVenue;
1259
+ private _curBuilding;
1260
+ private _curOrdinal;
1261
+ constructor(maplibreMap: maplibregl$1.Map, routeStyle?: TRouteStyleOptions);
1262
+ /**
1263
+ * @description Set the style of the route.
1264
+ * @param routeStyle {TRouteStyleOptions | null} When null, reset to the initial style.
1265
+ */
1266
+ setStyle(routeStyle: TRouteStyleOptions | null): Promise<void>;
1420
1267
  /**
1268
+ * @deprecated Use 'setStyle' instead.
1421
1269
  * @description Set image[s] of the stop marker[s].
1422
1270
  * @param icons {**Array<string | null> | {from?: string | null; to?: string | null; stops?: Array<string | null> | null;}**}
1423
1271
  * Array of sprite names or URLs, or the object with specifying icon.
@@ -1433,11 +1281,13 @@ export declare class RoutePainter {
1433
1281
  stops?: Array<string | null> | null;
1434
1282
  }): Promise<void>;
1435
1283
  /**
1436
- * @description Set image icon scale.
1437
- * @param size Default is 1.
1284
+ * @deprecated Use 'setStyle' instead.
1285
+ * @description Set all icons scale.
1286
+ * @param size number in range [0, ∞), default is 1.
1438
1287
  */
1439
1288
  setMarkerIconSize(size: number): this;
1440
1289
  /**
1290
+ * @deprecated Use 'setStyle' instead.
1441
1291
  * @description Set the route color of the indoor part.
1442
1292
  * @param color The color type is a color in the sRGB color space.
1443
1293
  * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
@@ -1445,6 +1295,7 @@ export declare class RoutePainter {
1445
1295
  */
1446
1296
  setIndoorLineColor(color: string): this;
1447
1297
  /**
1298
+ * @deprecated Use 'setStyle' instead.
1448
1299
  * @description Set the route color of the outdoor part.
1449
1300
  * @param color The color type is a color in the sRGB color space.
1450
1301
  * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
@@ -1452,6 +1303,7 @@ export declare class RoutePainter {
1452
1303
  */
1453
1304
  setOutdoorLineColor(color: string): this;
1454
1305
  /**
1306
+ * @deprecated Use 'setStyle' instead.
1455
1307
  * @description Set color of dashed lines which connected the start and end markers.
1456
1308
  * @param color The color type is a color in the sRGB color space.
1457
1309
  * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
@@ -1459,6 +1311,7 @@ export declare class RoutePainter {
1459
1311
  */
1460
1312
  setDashedLineColor(color: string): this;
1461
1313
  /**
1314
+ * @deprecated Use 'setStyle' instead.
1462
1315
  * @description Set color of shuttle bus line.
1463
1316
  * @param color The color type is a color in the sRGB color space.
1464
1317
  * Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
@@ -1501,6 +1354,41 @@ export declare class RoutePainter {
1501
1354
  private _addLineLayer;
1502
1355
  private _addTriangleLayer;
1503
1356
  private _addIconLayer;
1357
+ private _updateStyleProperties;
1358
+ private _loadMarkerIcons;
1359
+ private _updateLayers;
1360
+ private _filterRouteOpacity;
1361
+ }
1362
+ /**
1363
+ * AccessControl class, for providing token and managing token lifecycle.
1364
+ * @extends EventEmitter
1365
+ * Three events are emitted:
1366
+ * - "updated": Emitted when the token is updated. Usage: accessControl.on("updated", ({ appId, token }) => {});
1367
+ * - "error": Emitted when an error occurs during token update. Usage: accessControl.on("error", (error) => {});
1368
+ * - "closed": Emitted when the access control is closed. Usage: accessControl.on("closed", () => {});
1369
+ */
1370
+ export declare class AccessControl extends EventEmitter {
1371
+ private readonly _appId;
1372
+ private readonly _secret;
1373
+ isClosed: boolean;
1374
+ private _timeoutId;
1375
+ private _isInitialized;
1376
+ private readonly _initializationPromise;
1377
+ private _tokenManager;
1378
+ private readonly _from;
1379
+ constructor(appId: string, secret: string, origin?: AccessControlOrigin);
1380
+ ready(): Promise<void>;
1381
+ get appId(): string;
1382
+ /**
1383
+ * Get the token which is kept up-to-date automatically.
1384
+ */
1385
+ get token(): string;
1386
+ /**
1387
+ * Destroy the access_control instance, stop updating token.
1388
+ */
1389
+ close(): void;
1390
+ private _initToken;
1391
+ private _loopUpdateToken;
1504
1392
  }
1505
1393
  export declare class VenuesService {
1506
1394
  private _api;
@@ -1543,6 +1431,7 @@ export declare class VenuesService {
1543
1431
  * @param page Default is 1.
1544
1432
  */
1545
1433
  searchByGlobal(keywords: string, offset?: number, page?: number): TPromiseVenues;
1434
+ search(options: IVenueSearchCustomizedOptions): TPromiseVenues;
1546
1435
  private _changedRes;
1547
1436
  }
1548
1437
  export declare class BuildingsService {
@@ -1583,6 +1472,7 @@ export declare class BuildingsService {
1583
1472
  * @param floorId
1584
1473
  */
1585
1474
  searchByFloorId(floorId: string): TPromiseBuildings;
1475
+ search(options: IBuildingSearchCustomizedOptions): TPromiseBuildings;
1586
1476
  private _changedRes;
1587
1477
  }
1588
1478
  export declare class PoisService {
@@ -1602,45 +1492,18 @@ export declare class PoisService {
1602
1492
  * @param options {IPoiSearchByDistanceOptions}
1603
1493
  */
1604
1494
  searchByDistance(options: IPoiSearchByDistanceOptions): TPromisePois;
1605
- /**
1606
- * @description Search POIs in a bbox.
1607
- * @deprecated Use searchByBounds instead.
1608
- * @param keywords
1609
- * @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
1610
- * @param offset The maximum value is 100, default is 10.
1611
- * @param page Default is 1.
1612
- */
1613
- searchByBbox(keywords: string, bbox: number[], offset?: number, page?: number): TPromisePois;
1614
1495
  /**
1615
1496
  * @description Search POIs in a rectangular area.
1616
1497
  * @param options {IPoiSearchByBoundsOptions}
1617
1498
  * 'orderBy' cannot be used with 'keywords'.
1618
1499
  */
1619
1500
  searchByBounds(options: IPoiSearchByBoundsOptions): TPromisePois;
1620
- /**
1621
- * @description Search POIs of a building.
1622
- * @deprecated Use searchByBuilding instead.
1623
- * @param keywords
1624
- * @param buildingId
1625
- * @param offset The maximum value is 100, default is 10.
1626
- * @param page Default is 1.
1627
- */
1628
- searchByBuildingId(keywords: string, buildingId: string, offset?: number, page?: number): TPromisePois;
1629
1501
  /**
1630
1502
  * @description Search POIs of a building.
1631
1503
  * @param options {IPoiSearchByBuildingOptions}
1632
1504
  * 'orderBy' cannot be used with 'keywords'.
1633
1505
  */
1634
1506
  searchByBuilding(options: IPoiSearchByBuildingOptions): TPromisePois;
1635
- /**
1636
- * @description Search POIs of a venue.
1637
- * @deprecated Use searchByVenue instead.
1638
- * @param keywords
1639
- * @param venueId
1640
- * @param offset
1641
- * @param page
1642
- */
1643
- searchByVenueId(keywords: string, venueId: string, offset?: number, page?: number): TPromisePois;
1644
1507
  /**
1645
1508
  * @description Search POIs of a venue.
1646
1509
  * @param options {IPoiSearchByVenueOptions}
@@ -1658,13 +1521,6 @@ export declare class PoisService {
1658
1521
  * @param options
1659
1522
  */
1660
1523
  searchCategories(options: TSearchCategoriesOptions): TPromiseCategories;
1661
- /**
1662
- * @description Search surrounding POIs based on the user's location and orientation.
1663
- * BuildingId, floorId and ordinal are mutually exclusive, priority: ordinal > floorId > buildingId.
1664
- * @deprecated Use searchByOrientation instead.
1665
- * @param options
1666
- */
1667
- searchOrientation(options: IPoiSearchOrientationOptions): TPromiseOrientationPois;
1668
1524
  /**
1669
1525
  * @description Search surrounding POIs based on the user's location and orientation.
1670
1526
  * @param options {TPoiSearchByOrientationOptions}
@@ -1675,6 +1531,7 @@ export declare class PoisService {
1675
1531
  * @param options {TPoiSearchByCategoryOptions}
1676
1532
  */
1677
1533
  searchByCategory(options: TPoiSearchByCategoryOptions): TPromisePois;
1534
+ search(options: IPoiSearchCustomizedOptions): TPromisePois;
1678
1535
  private _changedRes;
1679
1536
  }
1680
1537
  export declare class RouteService {
@@ -1695,9 +1552,6 @@ export declare const PAGE: number;
1695
1552
  */
1696
1553
  export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
1697
1554
  export declare function getIdentifier(): Promise<string>;
1698
- /** @deprecated Use `VERSION` instead. */
1699
- export declare const version: string;
1700
- export declare const VERSION: string;
1701
1555
 
1702
1556
  export {
1703
1557
  Map$1 as Map,