@mapxus/mapxus-map-jp 9.0.0 → 9.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/dist/index.css +0 -9
- package/dist/index.umd.js +1 -1
- package/es/index.d.ts +293 -206
- package/es/index.mjs +1 -1
- package/es/utils/index.mjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -74,6 +74,12 @@ export declare enum PoisSortBy {
|
|
|
74
74
|
ABSOLUTE_DISTANCE = "AbsoluteDistance",
|
|
75
75
|
ACTUAL_DISTANCE = "ActualDistance"
|
|
76
76
|
}
|
|
77
|
+
export interface ISection {
|
|
78
|
+
category: string;
|
|
79
|
+
id: string;
|
|
80
|
+
sectionName: IMultilingualName;
|
|
81
|
+
correlationId?: string;
|
|
82
|
+
}
|
|
77
83
|
export interface IPoiCommonOptions {
|
|
78
84
|
accessibilityDetail: IMultilingualName;
|
|
79
85
|
category: string[];
|
|
@@ -84,6 +90,7 @@ export interface IPoiCommonOptions {
|
|
|
84
90
|
name: IMultilingualName;
|
|
85
91
|
osmRefId: number;
|
|
86
92
|
poiId: string;
|
|
93
|
+
sections?: ISection[];
|
|
87
94
|
venueId: string;
|
|
88
95
|
}
|
|
89
96
|
export interface IPoiFloor {
|
|
@@ -246,6 +253,23 @@ export interface IMapClickEvent {
|
|
|
246
253
|
venue: MapGeoJSONFeature | null;
|
|
247
254
|
floor: IFloor | ISharedFloor | null;
|
|
248
255
|
}
|
|
256
|
+
export interface IPoiClickEvent {
|
|
257
|
+
coordinate: LngLat;
|
|
258
|
+
poi: MapGeoJSONFeature;
|
|
259
|
+
venue: MapGeoJSONFeature | null;
|
|
260
|
+
floor: IFloor | ISharedFloor | null;
|
|
261
|
+
building?: MapGeoJSONFeature | null;
|
|
262
|
+
sections?: ISection[];
|
|
263
|
+
}
|
|
264
|
+
export interface IPointClickEvent {
|
|
265
|
+
coordinate: LngLat;
|
|
266
|
+
point: PointLike;
|
|
267
|
+
}
|
|
268
|
+
export interface IMapChangeEvent {
|
|
269
|
+
venue: MapGeoJSONFeature | null;
|
|
270
|
+
building: MapGeoJSONFeature | null;
|
|
271
|
+
floor: IFloor | ISharedFloor | null;
|
|
272
|
+
}
|
|
249
273
|
export interface ISelectedHighlightStyle {
|
|
250
274
|
lineWidth?: number;
|
|
251
275
|
lineColor?: string;
|
|
@@ -317,6 +341,8 @@ export interface IMapOtherOptions {
|
|
|
317
341
|
autoSelectBuilding?: boolean;
|
|
318
342
|
transformRequest?: maplibregl$1.RequestTransformFunction | null;
|
|
319
343
|
mapxusLogoEnabled?: boolean;
|
|
344
|
+
enableIndoorClickSelection?: boolean;
|
|
345
|
+
enableOutdoorClickSelection?: boolean;
|
|
320
346
|
}
|
|
321
347
|
export interface IMapAccessWithAppId {
|
|
322
348
|
appId: string;
|
|
@@ -353,17 +379,6 @@ export interface IMarkerOptions {
|
|
|
353
379
|
export interface IMarkerOptionsWithFeatureId extends IMarkerOptions {
|
|
354
380
|
featureId: number;
|
|
355
381
|
}
|
|
356
|
-
export interface IPoiClickEvent {
|
|
357
|
-
coordinate: LngLat;
|
|
358
|
-
poi: MapGeoJSONFeature;
|
|
359
|
-
building: MapGeoJSONFeature | null;
|
|
360
|
-
venue: MapGeoJSONFeature | null;
|
|
361
|
-
floor: IFloor | ISharedFloor | null;
|
|
362
|
-
}
|
|
363
|
-
export interface IPointClickEvent {
|
|
364
|
-
coordinate: LngLat;
|
|
365
|
-
point: PointLike;
|
|
366
|
-
}
|
|
367
382
|
export interface ITokenInfo {
|
|
368
383
|
"app:name": string;
|
|
369
384
|
auth_time: number;
|
|
@@ -652,6 +667,233 @@ export interface ISelectedBuildingChangedOptions {
|
|
|
652
667
|
dragPan: boolean | "restrict";
|
|
653
668
|
}
|
|
654
669
|
export type TSelectedBuildingChangedOptions = ISelectedBuildingChangedOptions | ISelectedSharedLevelOptions | null;
|
|
670
|
+
export declare class BuildingFilterControl implements IControl {
|
|
671
|
+
private _map;
|
|
672
|
+
private _maplibre;
|
|
673
|
+
private _buildingId;
|
|
674
|
+
private _features;
|
|
675
|
+
private _$container;
|
|
676
|
+
private _$listContainer;
|
|
677
|
+
private _$buildingList;
|
|
678
|
+
private _listHeight;
|
|
679
|
+
private _language;
|
|
680
|
+
private _visible;
|
|
681
|
+
private _position;
|
|
682
|
+
private _isMobileMode;
|
|
683
|
+
private _isListShown;
|
|
684
|
+
constructor(map: any, buildingSelectorEnabled?: boolean);
|
|
685
|
+
onAdd(map: maplibregl$1.Map): HTMLElement;
|
|
686
|
+
onRemove(): void;
|
|
687
|
+
get position(): ControlPosition;
|
|
688
|
+
get enabled(): boolean;
|
|
689
|
+
getDefaultPosition(): ControlPosition;
|
|
690
|
+
setVisibility(isVisible: boolean): void;
|
|
691
|
+
changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
|
|
692
|
+
private _bindEvents;
|
|
693
|
+
private _init;
|
|
694
|
+
private _refresh;
|
|
695
|
+
private _load;
|
|
696
|
+
private _buildingFilterIconCreate;
|
|
697
|
+
private _buildingNameListCreate;
|
|
698
|
+
private _buildingNameListUpdate;
|
|
699
|
+
private _buildingNameListClean;
|
|
700
|
+
private _setBuildingListHeight;
|
|
701
|
+
private _buildingNameCreate;
|
|
702
|
+
private _toggleList;
|
|
703
|
+
private _buildingNameClickEvent;
|
|
704
|
+
private _bindMouseOnEvents;
|
|
705
|
+
private _bindMobileTouchEvents;
|
|
706
|
+
private _$showLayout;
|
|
707
|
+
private _$hideLayout;
|
|
708
|
+
private _updateBuildingListLayout;
|
|
709
|
+
private _detectDeviceMode;
|
|
710
|
+
}
|
|
711
|
+
export interface IFloorSelectorOptions {
|
|
712
|
+
language: PresetLanguage;
|
|
713
|
+
style?: IFloorSelectorStyle;
|
|
714
|
+
enabled?: boolean;
|
|
715
|
+
}
|
|
716
|
+
export declare class FloorsControl implements IControl {
|
|
717
|
+
private _container;
|
|
718
|
+
private _indoor;
|
|
719
|
+
private _maplibre;
|
|
720
|
+
private _position;
|
|
721
|
+
private _buildingId;
|
|
722
|
+
private _floorNames;
|
|
723
|
+
private _ordinals;
|
|
724
|
+
private _ordinal;
|
|
725
|
+
private _style;
|
|
726
|
+
private _$innerFloors;
|
|
727
|
+
private _$activeFloor;
|
|
728
|
+
private _centerSelectorIdx;
|
|
729
|
+
private _lastNormalScrollableIdx;
|
|
730
|
+
private _$arrowBtnUp;
|
|
731
|
+
private _$arrowBtnDown;
|
|
732
|
+
private _maxScrollTop;
|
|
733
|
+
private _$selectorExpanded;
|
|
734
|
+
private _$selectorFolded;
|
|
735
|
+
private _componentDidMount;
|
|
736
|
+
private _visible;
|
|
737
|
+
private _isEnabled;
|
|
738
|
+
private _dragPan;
|
|
739
|
+
private _language;
|
|
740
|
+
private _debounceScroll;
|
|
741
|
+
private _clearScrollEventListener;
|
|
742
|
+
constructor(indoor: Indoor, options: IFloorSelectorOptions);
|
|
743
|
+
onAdd(map: maplibregl$1.Map): HTMLElement;
|
|
744
|
+
onRemove(): void;
|
|
745
|
+
get position(): ControlPosition;
|
|
746
|
+
get enabled(): boolean;
|
|
747
|
+
setEnabled(enabled: boolean): void;
|
|
748
|
+
getDefaultPosition(): ControlPosition;
|
|
749
|
+
/**
|
|
750
|
+
* @description Switch floor by ordinal
|
|
751
|
+
* @param ordinal
|
|
752
|
+
* @param dragPan
|
|
753
|
+
*/
|
|
754
|
+
switchByOrdinal(ordinal: string, dragPan?: boolean): Promise<void>;
|
|
755
|
+
changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
|
|
756
|
+
setStyle(style: Partial<IFloorSelectorStyle>): void;
|
|
757
|
+
private _setVisibility;
|
|
758
|
+
private _addIndoorEventListeners;
|
|
759
|
+
private _updatePrepared;
|
|
760
|
+
private _renderBuildingFloors;
|
|
761
|
+
private _renderSharedLevelFloor;
|
|
762
|
+
private _checkIfShowFloorSelector;
|
|
763
|
+
private _addMapMoveEventListener;
|
|
764
|
+
private _clearState;
|
|
765
|
+
private _calcSelectorLayout;
|
|
766
|
+
private _render;
|
|
767
|
+
private _hide;
|
|
768
|
+
private _show;
|
|
769
|
+
private _createFloors;
|
|
770
|
+
private _$expandedSelector;
|
|
771
|
+
private _$foldedSelector;
|
|
772
|
+
private _clearFloors;
|
|
773
|
+
private _$createScrollButton;
|
|
774
|
+
private _$createFloors;
|
|
775
|
+
private _updateSelectorStatus;
|
|
776
|
+
private _resetArrowBtnStatus;
|
|
777
|
+
private _resetActiveFloor;
|
|
778
|
+
private _scrollCenterActiveFloor;
|
|
779
|
+
private _getScrollTop;
|
|
780
|
+
private _handleScroll;
|
|
781
|
+
private _expandSelector;
|
|
782
|
+
}
|
|
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
|
+
export declare class FloorSelectorHandler {
|
|
800
|
+
private _floorSelector;
|
|
801
|
+
private _isEnabled;
|
|
802
|
+
private _position;
|
|
803
|
+
constructor(floorSelector: FloorsControl);
|
|
804
|
+
enable(): void;
|
|
805
|
+
disable(): void;
|
|
806
|
+
/**
|
|
807
|
+
* Set the position of the floor selector control
|
|
808
|
+
* @param position
|
|
809
|
+
* @param index - The index of the control in the controls-container. Default at the last.
|
|
810
|
+
*/
|
|
811
|
+
setPosition(position: ControlPosition, index?: number): void;
|
|
812
|
+
setStyle(style: IFloorSelectorStyle): void;
|
|
813
|
+
get isEnabled(): boolean;
|
|
814
|
+
get position(): ControlPosition;
|
|
815
|
+
}
|
|
816
|
+
export declare class SwitchBuildingHandler {
|
|
817
|
+
private _indoor;
|
|
818
|
+
private _isEnabled;
|
|
819
|
+
constructor(indoor: Indoor);
|
|
820
|
+
enable(): void;
|
|
821
|
+
disable(): void;
|
|
822
|
+
get isEnabled(): boolean;
|
|
823
|
+
}
|
|
824
|
+
export declare class SwitchOutdoorHandler {
|
|
825
|
+
private _indoor;
|
|
826
|
+
private _isEnabled;
|
|
827
|
+
constructor(indoor: Indoor);
|
|
828
|
+
enable(): void;
|
|
829
|
+
disable(): void;
|
|
830
|
+
get isEnabled(): boolean;
|
|
831
|
+
}
|
|
832
|
+
export interface IPanToOptions {
|
|
833
|
+
dragPan?: boolean;
|
|
834
|
+
animate?: boolean;
|
|
835
|
+
}
|
|
836
|
+
export interface INormalLevelIndoorFeatures {
|
|
837
|
+
venue: MapGeoJSONFeature;
|
|
838
|
+
building: MapGeoJSONFeature;
|
|
839
|
+
level: MapGeoJSONFeature;
|
|
840
|
+
}
|
|
841
|
+
export interface ISharedLevelIndoorFeatures {
|
|
842
|
+
venue: MapGeoJSONFeature;
|
|
843
|
+
sharedLevel: MapGeoJSONFeature;
|
|
844
|
+
}
|
|
845
|
+
export interface IScreenPoint {
|
|
846
|
+
x: number;
|
|
847
|
+
y: number;
|
|
848
|
+
}
|
|
849
|
+
export interface IFeaturesFilterOptions {
|
|
850
|
+
layerIds?: string[];
|
|
851
|
+
filter?: (feature: MapGeoJSONFeature) => boolean;
|
|
852
|
+
}
|
|
853
|
+
export interface IMapxusMap {
|
|
854
|
+
isDestroyed: boolean;
|
|
855
|
+
buildingSelector: BuildingSelectorHandler;
|
|
856
|
+
floorSelector: FloorSelectorHandler;
|
|
857
|
+
get venue(): MapGeoJSONFeature | null;
|
|
858
|
+
get building(): MapGeoJSONFeature | null;
|
|
859
|
+
get floor(): IFloor | ISharedFloor | null;
|
|
860
|
+
renderComplete: (callback: VoidFunction) => void;
|
|
861
|
+
destroyed: (callback: VoidFunction) => void;
|
|
862
|
+
getMaplibre: () => maplibregl$1.Map;
|
|
863
|
+
getLanguage: () => PresetLanguage;
|
|
864
|
+
setLanguage: (language: PresetLanguage) => void;
|
|
865
|
+
setOutdoorMapShown: (shown: boolean) => void;
|
|
866
|
+
setTransformRequest: (transformFn: maplibregl$1.RequestTransformFunction) => void;
|
|
867
|
+
setTheme: (theme: string) => void;
|
|
868
|
+
setSelectedHighlightStyle: (style: ISelectedHighlightStyle | null) => this;
|
|
869
|
+
switchFloorByOrdinal: (ordinal: string | null) => Promise<void>;
|
|
870
|
+
queryIndoorFeaturesByPoint: (point: IScreenPoint) => INormalLevelIndoorFeatures | ISharedLevelIndoorFeatures | null;
|
|
871
|
+
getFeaturesById: (id: string, options?: IFeaturesFilterOptions) => MapGeoJSONFeature[];
|
|
872
|
+
selectFloorById: (floorId: string, options?: IPanToOptions) => Promise<void>;
|
|
873
|
+
selectSharedFloorById: (sharedFloorId: string, options?: IPanToOptions) => Promise<void>;
|
|
874
|
+
selectBuildingById: (buildingId: string, options?: IPanToOptions) => Promise<void>;
|
|
875
|
+
selectVenueById: (venueId: string | null, options?: IPanToOptions) => Promise<void>;
|
|
876
|
+
onMapClickListener: (listener: (param: IMapClickEvent) => void) => {
|
|
877
|
+
unsubscribe: VoidFunction;
|
|
878
|
+
};
|
|
879
|
+
onPoiClickListener: (listener: (param: IPoiClickEvent) => void) => {
|
|
880
|
+
unsubscribe: VoidFunction;
|
|
881
|
+
};
|
|
882
|
+
onPointClickListener: (listener: (param: IPointClickEvent) => void) => {
|
|
883
|
+
unsubscribe: VoidFunction;
|
|
884
|
+
};
|
|
885
|
+
onMapChangeListener: (listener: (params: IMapChangeEvent) => void) => {
|
|
886
|
+
unsubscribe: VoidFunction;
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
export type TSelectedIndoorData = {
|
|
890
|
+
venue: MapGeoJSONFeature;
|
|
891
|
+
building: MapGeoJSONFeature;
|
|
892
|
+
floor?: IFloor;
|
|
893
|
+
} | {
|
|
894
|
+
sharedFloor: ISharedFloor;
|
|
895
|
+
venue: MapGeoJSONFeature;
|
|
896
|
+
} | null;
|
|
655
897
|
export declare class Indoor extends EventEmitter {
|
|
656
898
|
private _map;
|
|
657
899
|
private _features;
|
|
@@ -688,6 +930,7 @@ export declare class Indoor extends EventEmitter {
|
|
|
688
930
|
private _lowerLevels;
|
|
689
931
|
private _featureIncomplete;
|
|
690
932
|
private _dragPan;
|
|
933
|
+
private _animate;
|
|
691
934
|
private _buildingBounds;
|
|
692
935
|
private _venueBounds;
|
|
693
936
|
private _history;
|
|
@@ -695,11 +938,13 @@ export declare class Indoor extends EventEmitter {
|
|
|
695
938
|
private readonly _hiddenBuildings;
|
|
696
939
|
private _maskBuildings;
|
|
697
940
|
private _maskSharedFloors;
|
|
941
|
+
private _enableIndoorClickSelection;
|
|
942
|
+
private _enableOutdoorClickSelection;
|
|
698
943
|
private _isDestroyed;
|
|
699
944
|
private _fetchBuildingTimeoutId;
|
|
700
945
|
private _fetchVenueTimeoutId;
|
|
701
946
|
private _fitBoundsTimer;
|
|
702
|
-
private
|
|
947
|
+
private _abortQueryFeature;
|
|
703
948
|
private _debounceRendering;
|
|
704
949
|
constructor(props: {
|
|
705
950
|
map: maplibregl$1.Map;
|
|
@@ -709,6 +954,8 @@ export declare class Indoor extends EventEmitter {
|
|
|
709
954
|
startWithIndoorView?: boolean;
|
|
710
955
|
outdoorMapShown?: boolean;
|
|
711
956
|
selectedHighlightStyle?: ISelectedHighlightStyle;
|
|
957
|
+
enableIndoorClickSelection: boolean;
|
|
958
|
+
enableOutdoorClickSelection: boolean;
|
|
712
959
|
});
|
|
713
960
|
destroy(): void;
|
|
714
961
|
/**
|
|
@@ -787,8 +1034,10 @@ export declare class Indoor extends EventEmitter {
|
|
|
787
1034
|
panToBuildingCenter(): Promise<void>;
|
|
788
1035
|
fitBuildingBbox(): Promise<unknown>;
|
|
789
1036
|
panToVenueCenter(): Promise<void>;
|
|
790
|
-
fitVenueBbox():
|
|
1037
|
+
fitVenueBbox(): Promise<unknown>;
|
|
1038
|
+
private _waitForFeatureLoaded;
|
|
791
1039
|
setDragPan(dragPan: boolean | "restrict"): void;
|
|
1040
|
+
setAnimate(animate: boolean): void;
|
|
792
1041
|
setBuildingBounds(bounds: [
|
|
793
1042
|
[
|
|
794
1043
|
number,
|
|
@@ -809,7 +1058,8 @@ export declare class Indoor extends EventEmitter {
|
|
|
809
1058
|
number
|
|
810
1059
|
]
|
|
811
1060
|
]): void;
|
|
812
|
-
|
|
1061
|
+
queryIndoorFeaturesByClickPoint(point: PointLike): Promise<TSelectedIndoorData>;
|
|
1062
|
+
selectByClickMap(data: TSelectedIndoorData): Promise<void>;
|
|
813
1063
|
private _updateBuildingBounds;
|
|
814
1064
|
private _updateVenueBounds;
|
|
815
1065
|
private _bindMaplibreEventListeners;
|
|
@@ -833,182 +1083,21 @@ export declare class Indoor extends EventEmitter {
|
|
|
833
1083
|
private _layerSelectedLevels;
|
|
834
1084
|
private _layerUnselectedLevels;
|
|
835
1085
|
private _classifyFloors;
|
|
836
|
-
private
|
|
1086
|
+
private _calcVenueInitOrdinal;
|
|
837
1087
|
private _getBuildingDisplayedLevel;
|
|
838
1088
|
private _filterLayers;
|
|
839
1089
|
private _filterIndoorLayers;
|
|
840
|
-
private
|
|
1090
|
+
private _queryVenueFeature;
|
|
1091
|
+
private _getBuildingDisplayedOrdinal;
|
|
841
1092
|
private _updateFloorState;
|
|
842
1093
|
private _resetSelectedDisplayedLevel;
|
|
843
1094
|
private _checkAndPanToBuilding;
|
|
844
|
-
private _queryFeatureByPoint;
|
|
845
1095
|
private _queryVisibleFeature;
|
|
846
1096
|
private _queryRenderedFeatures;
|
|
847
1097
|
private _dispatchIndoorMapLoaded;
|
|
1098
|
+
private _isSelectingDisabled;
|
|
848
1099
|
}
|
|
849
|
-
|
|
850
|
-
private _map;
|
|
851
|
-
private _maplibre;
|
|
852
|
-
private _buildingId;
|
|
853
|
-
private _features;
|
|
854
|
-
private _$container;
|
|
855
|
-
private _$listContainer;
|
|
856
|
-
private _$buildingList;
|
|
857
|
-
private _listHeight;
|
|
858
|
-
private _language;
|
|
859
|
-
private _visible;
|
|
860
|
-
private _position;
|
|
861
|
-
private _isMobileMode;
|
|
862
|
-
private _isListShown;
|
|
863
|
-
constructor(map: any, buildingSelectorEnabled?: boolean);
|
|
864
|
-
onAdd(map: maplibregl$1.Map): HTMLElement;
|
|
865
|
-
onRemove(): void;
|
|
866
|
-
get position(): ControlPosition;
|
|
867
|
-
get enabled(): boolean;
|
|
868
|
-
getDefaultPosition(): ControlPosition;
|
|
869
|
-
setVisibility(isVisible: boolean): void;
|
|
870
|
-
changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
|
|
871
|
-
private _bindEvents;
|
|
872
|
-
private _init;
|
|
873
|
-
private _refresh;
|
|
874
|
-
private _load;
|
|
875
|
-
private _buildingFilterIconCreate;
|
|
876
|
-
private _buildingNameListCreate;
|
|
877
|
-
private _buildingNameListUpdate;
|
|
878
|
-
private _buildingNameListClean;
|
|
879
|
-
private _setBuildingListHeight;
|
|
880
|
-
private _buildingNameCreate;
|
|
881
|
-
private _toggleList;
|
|
882
|
-
private _buildingNameClickEvent;
|
|
883
|
-
private _bindMouseOnEvents;
|
|
884
|
-
private _bindMobileTouchEvents;
|
|
885
|
-
private _$showLayout;
|
|
886
|
-
private _$hideLayout;
|
|
887
|
-
private _updateBuildingListLayout;
|
|
888
|
-
private _detectDeviceMode;
|
|
889
|
-
}
|
|
890
|
-
export interface IFloorSelectorOptions {
|
|
891
|
-
language: PresetLanguage;
|
|
892
|
-
style?: IFloorSelectorStyle;
|
|
893
|
-
enabled?: boolean;
|
|
894
|
-
}
|
|
895
|
-
export declare class FloorsControl implements IControl {
|
|
896
|
-
private _container;
|
|
897
|
-
private _indoor;
|
|
898
|
-
private _maplibre;
|
|
899
|
-
private _position;
|
|
900
|
-
private _buildingId;
|
|
901
|
-
private _floorNames;
|
|
902
|
-
private _ordinals;
|
|
903
|
-
private _ordinal;
|
|
904
|
-
private _style;
|
|
905
|
-
private _$innerFloors;
|
|
906
|
-
private _$activeFloor;
|
|
907
|
-
private _centerSelectorIdx;
|
|
908
|
-
private _lastNormalScrollableIdx;
|
|
909
|
-
private _$arrowBtnUp;
|
|
910
|
-
private _$arrowBtnDown;
|
|
911
|
-
private _maxScrollTop;
|
|
912
|
-
private _$selectorExpanded;
|
|
913
|
-
private _$selectorFolded;
|
|
914
|
-
private _componentDidMount;
|
|
915
|
-
private _visible;
|
|
916
|
-
private _isEnabled;
|
|
917
|
-
private _dragPan;
|
|
918
|
-
private _language;
|
|
919
|
-
private _debounceScroll;
|
|
920
|
-
private _clearScrollEventListener;
|
|
921
|
-
constructor(indoor: Indoor, options: IFloorSelectorOptions);
|
|
922
|
-
onAdd(map: maplibregl$1.Map): HTMLElement;
|
|
923
|
-
onRemove(): void;
|
|
924
|
-
get position(): ControlPosition;
|
|
925
|
-
get enabled(): boolean;
|
|
926
|
-
setEnabled(enabled: boolean): void;
|
|
927
|
-
getDefaultPosition(): ControlPosition;
|
|
928
|
-
/**
|
|
929
|
-
* @description Switch floor by ordinal
|
|
930
|
-
* @param ordinal
|
|
931
|
-
* @param dragPan
|
|
932
|
-
*/
|
|
933
|
-
switchByOrdinal(ordinal: string, dragPan?: boolean): Promise<void>;
|
|
934
|
-
changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
|
|
935
|
-
setStyle(style: Partial<IFloorSelectorStyle>): void;
|
|
936
|
-
private _setVisibility;
|
|
937
|
-
private _addIndoorEventListeners;
|
|
938
|
-
private _updatePrepared;
|
|
939
|
-
private _renderBuildingFloors;
|
|
940
|
-
private _renderSharedLevelFloor;
|
|
941
|
-
private _checkIfShowFloorSelector;
|
|
942
|
-
private _addMapMoveEventListener;
|
|
943
|
-
private _clearState;
|
|
944
|
-
private _calcSelectorLayout;
|
|
945
|
-
private _render;
|
|
946
|
-
private _hide;
|
|
947
|
-
private _show;
|
|
948
|
-
private _createFloors;
|
|
949
|
-
private _$expandedSelector;
|
|
950
|
-
private _$foldedSelector;
|
|
951
|
-
private _clearFloors;
|
|
952
|
-
private _$createScrollButton;
|
|
953
|
-
private _$createFloors;
|
|
954
|
-
private _updateSelectorStatus;
|
|
955
|
-
private _resetArrowBtnStatus;
|
|
956
|
-
private _resetActiveFloor;
|
|
957
|
-
private _scrollCenterActiveFloor;
|
|
958
|
-
private _getScrollTop;
|
|
959
|
-
private _handleScroll;
|
|
960
|
-
private _expandSelector;
|
|
961
|
-
}
|
|
962
|
-
export declare class BuildingSelectorHandler {
|
|
963
|
-
private _buildingSelector;
|
|
964
|
-
private _isEnabled;
|
|
965
|
-
private _position;
|
|
966
|
-
constructor(buildingSelector: BuildingFilterControl);
|
|
967
|
-
enable(): void;
|
|
968
|
-
disable(): void;
|
|
969
|
-
/**
|
|
970
|
-
* Set the position of the building selector control
|
|
971
|
-
* @param position
|
|
972
|
-
* @param index - The index of the control in the controls-container. Default at the last.
|
|
973
|
-
*/
|
|
974
|
-
setPosition(position: ControlPosition, index?: number): void;
|
|
975
|
-
get isEnabled(): boolean;
|
|
976
|
-
get position(): ControlPosition;
|
|
977
|
-
}
|
|
978
|
-
export declare class FloorSelectorHandler {
|
|
979
|
-
private _floorSelector;
|
|
980
|
-
private _isEnabled;
|
|
981
|
-
private _position;
|
|
982
|
-
constructor(floorSelector: FloorsControl);
|
|
983
|
-
enable(): void;
|
|
984
|
-
disable(): void;
|
|
985
|
-
/**
|
|
986
|
-
* Set the position of the floor selector control
|
|
987
|
-
* @param position
|
|
988
|
-
* @param index - The index of the control in the controls-container. Default at the last.
|
|
989
|
-
*/
|
|
990
|
-
setPosition(position: ControlPosition, index?: number): void;
|
|
991
|
-
setStyle(style: IFloorSelectorStyle): void;
|
|
992
|
-
get isEnabled(): boolean;
|
|
993
|
-
get position(): ControlPosition;
|
|
994
|
-
}
|
|
995
|
-
export declare class SwitchBuildingHandler {
|
|
996
|
-
private _indoor;
|
|
997
|
-
private _isEnabled;
|
|
998
|
-
constructor(indoor: Indoor);
|
|
999
|
-
enable(): void;
|
|
1000
|
-
disable(): void;
|
|
1001
|
-
get isEnabled(): boolean;
|
|
1002
|
-
}
|
|
1003
|
-
export declare class SwitchOutdoorHandler {
|
|
1004
|
-
private _indoor;
|
|
1005
|
-
private _isEnabled;
|
|
1006
|
-
constructor(indoor: Indoor);
|
|
1007
|
-
enable(): void;
|
|
1008
|
-
disable(): void;
|
|
1009
|
-
get isEnabled(): boolean;
|
|
1010
|
-
}
|
|
1011
|
-
declare class Map$1 {
|
|
1100
|
+
declare class Map$1 implements IMapxusMap {
|
|
1012
1101
|
private _map;
|
|
1013
1102
|
private _indoor;
|
|
1014
1103
|
private _poi;
|
|
@@ -1024,10 +1113,11 @@ declare class Map$1 {
|
|
|
1024
1113
|
private _transformRequestHandler;
|
|
1025
1114
|
private _tokenRefreshingPromise;
|
|
1026
1115
|
private _request;
|
|
1027
|
-
private _$mask;
|
|
1028
1116
|
private _cancelTokenChangedListener;
|
|
1029
1117
|
isDestroyed: boolean;
|
|
1118
|
+
/** @deprecated Use "outdoorSelecting" instead */
|
|
1030
1119
|
switchOutdoor: SwitchOutdoorHandler;
|
|
1120
|
+
/** @deprecated Use "indoorSelecting" instead */
|
|
1031
1121
|
switchBuilding: SwitchBuildingHandler;
|
|
1032
1122
|
buildingSelector: BuildingSelectorHandler;
|
|
1033
1123
|
floorSelector: FloorSelectorHandler;
|
|
@@ -1045,6 +1135,7 @@ declare class Map$1 {
|
|
|
1045
1135
|
setTransformRequest(handler: maplibregl$1.RequestTransformFunction): void;
|
|
1046
1136
|
/**
|
|
1047
1137
|
* @description Get map indoor instance.
|
|
1138
|
+
* @deprecated indoor instance won't be provided publicly in the future.
|
|
1048
1139
|
*/
|
|
1049
1140
|
getIndoor(): Indoor;
|
|
1050
1141
|
/**
|
|
@@ -1081,8 +1172,10 @@ declare class Map$1 {
|
|
|
1081
1172
|
* @param shown
|
|
1082
1173
|
*/
|
|
1083
1174
|
setOutdoorMapShown(shown: boolean): void;
|
|
1175
|
+
queryIndoorFeaturesByPoint(point: IScreenPoint): INormalLevelIndoorFeatures | ISharedLevelIndoorFeatures | null;
|
|
1084
1176
|
/**
|
|
1085
1177
|
* @description Get features from bbox by coordinates [and ordinal].
|
|
1178
|
+
* @deprecated Use "queryIndoorFeaturesByPoint()" instead.
|
|
1086
1179
|
* @param coordinates
|
|
1087
1180
|
* @param ordinal
|
|
1088
1181
|
*/
|
|
@@ -1100,45 +1193,41 @@ declare class Map$1 {
|
|
|
1100
1193
|
* @param id
|
|
1101
1194
|
* @param options {layerIds: string[], filter: (feature: MapGeoJSONFeature) => boolean}
|
|
1102
1195
|
*/
|
|
1103
|
-
getFeaturesById(id: string, options?:
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1196
|
+
getFeaturesById(id: string, options?: IFeaturesFilterOptions): MapGeoJSONFeature[];
|
|
1197
|
+
/**
|
|
1198
|
+
* @description Switch floor by ordinal of current selected building.
|
|
1199
|
+
* @param ordinal {string | null} The ordinal of the target floor.
|
|
1200
|
+
* If ordinal is null, the map will exit indoor view.
|
|
1201
|
+
* If current selected building has no the target ordinal, there's an error will be thrown.
|
|
1202
|
+
*/
|
|
1203
|
+
switchFloorByOrdinal(ordinal: string | null): Promise<void>;
|
|
1107
1204
|
/**
|
|
1108
1205
|
* @description Select indoor by locating the target floor.
|
|
1109
1206
|
* @param floorId
|
|
1110
1207
|
* @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
|
|
1111
1208
|
* Default is true.
|
|
1112
1209
|
*/
|
|
1113
|
-
selectFloorById(floorId: string, options?:
|
|
1114
|
-
|
|
1115
|
-
}): Promise<void>;
|
|
1116
|
-
selectSharedFloorById(sharedFloorId: string, options?: {
|
|
1117
|
-
dragPan?: boolean;
|
|
1118
|
-
}): Promise<void>;
|
|
1210
|
+
selectFloorById(floorId: string, options?: IPanToOptions): Promise<void>;
|
|
1211
|
+
selectSharedFloorById(sharedFloorId: string, options?: IPanToOptions): Promise<void>;
|
|
1119
1212
|
/**
|
|
1120
1213
|
* @description Select indoor by locating the target building.
|
|
1121
1214
|
* @param buildingId
|
|
1122
1215
|
* @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
|
|
1123
1216
|
* Default is true.
|
|
1124
1217
|
*/
|
|
1125
|
-
selectBuildingById(buildingId: string, options?:
|
|
1126
|
-
dragPan?: boolean;
|
|
1127
|
-
}): Promise<void>;
|
|
1218
|
+
selectBuildingById(buildingId: string, options?: IPanToOptions): Promise<void>;
|
|
1128
1219
|
/**
|
|
1129
1220
|
* @description Select indoor by locating the target venue.
|
|
1130
1221
|
* @param venueId 'venueId' can be string or null. Exit indoors if venueId is null.
|
|
1131
1222
|
* @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
|
|
1132
1223
|
* Default is true.
|
|
1133
1224
|
*/
|
|
1134
|
-
selectVenueById(venueId: string | null, options?:
|
|
1135
|
-
dragPan?: boolean;
|
|
1136
|
-
}): Promise<void>;
|
|
1225
|
+
selectVenueById(venueId: string | null, options?: IPanToOptions): Promise<void>;
|
|
1137
1226
|
/**
|
|
1138
1227
|
* @description Listen for mouse click events on the map.
|
|
1139
1228
|
* @param listener
|
|
1140
1229
|
*/
|
|
1141
|
-
onMapClickListener(listener: (
|
|
1230
|
+
onMapClickListener(listener: (param: IMapClickEvent) => void): {
|
|
1142
1231
|
unsubscribe: VoidFunction;
|
|
1143
1232
|
};
|
|
1144
1233
|
/**
|
|
@@ -1152,25 +1241,23 @@ declare class Map$1 {
|
|
|
1152
1241
|
* @description Listen for mouse click events at a point.
|
|
1153
1242
|
* @param listener
|
|
1154
1243
|
*/
|
|
1155
|
-
onPointClickListener(listener: (
|
|
1244
|
+
onPointClickListener(listener: (param: IPointClickEvent) => void): {
|
|
1156
1245
|
unsubscribe: VoidFunction;
|
|
1157
1246
|
};
|
|
1158
1247
|
/**
|
|
1159
1248
|
* @description Listen for the indoor map status, including the changes of venue, building and floor.
|
|
1160
1249
|
* @param listener
|
|
1161
1250
|
*/
|
|
1162
|
-
onMapChangeListener(listener: (
|
|
1163
|
-
venue: MapGeoJSONFeature | null;
|
|
1164
|
-
building: MapGeoJSONFeature | null;
|
|
1165
|
-
floor: IFloor | ISharedFloor | null;
|
|
1166
|
-
}) => void): {
|
|
1251
|
+
onMapChangeListener(listener: (param: IMapChangeEvent) => void): {
|
|
1167
1252
|
unsubscribe: VoidFunction;
|
|
1168
1253
|
};
|
|
1169
1254
|
/**
|
|
1255
|
+
* @deprecated Use "setTheme()" instead.
|
|
1170
1256
|
* @description Switch the map style
|
|
1171
1257
|
* @param theme ThemeType | string(customized map style file name)
|
|
1172
1258
|
*/
|
|
1173
1259
|
switchTheme(theme: string): void;
|
|
1260
|
+
setTheme(theme: string): void;
|
|
1174
1261
|
/**
|
|
1175
1262
|
* @deprecated Use 'setSelectedHighlightStyle' instead.
|
|
1176
1263
|
* @description Set the SelectedBuildingBorder's style. If set to null, the border will be invisible.
|
|
@@ -1196,7 +1283,6 @@ declare class Map$1 {
|
|
|
1196
1283
|
private _bindMapClickListener;
|
|
1197
1284
|
private _bindTokenChangedListener;
|
|
1198
1285
|
private _handleSearchError;
|
|
1199
|
-
private _setMaskEnabled;
|
|
1200
1286
|
private _installRtlTextPlugin;
|
|
1201
1287
|
private _destroy;
|
|
1202
1288
|
}
|
|
@@ -1247,7 +1333,7 @@ export declare class Marker {
|
|
|
1247
1333
|
* update: Array of features to update, the new properties will replace the old ones.
|
|
1248
1334
|
*/
|
|
1249
1335
|
updateData(diff: {
|
|
1250
|
-
remove?:
|
|
1336
|
+
remove?: Array<maplibregl$1.GeoJSONFeatureId>;
|
|
1251
1337
|
add?: IMarkerOptionsWithFeatureId[];
|
|
1252
1338
|
update?: IMarkerOptionsWithFeatureId[];
|
|
1253
1339
|
}): void;
|
|
@@ -1323,6 +1409,7 @@ export declare class Marker {
|
|
|
1323
1409
|
export declare class Poi {
|
|
1324
1410
|
private _map;
|
|
1325
1411
|
private _currentStyle;
|
|
1412
|
+
private _styleLayersLength;
|
|
1326
1413
|
private _layerIds;
|
|
1327
1414
|
private _dispatch;
|
|
1328
1415
|
private _listeners;
|