@mapxus/mapxus-map-jp 7.7.1 → 7.7.2
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/index.d.ts +11 -8
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -216,8 +216,8 @@ export declare class Indoor extends Evented {
|
|
|
216
216
|
private _upperLevels;
|
|
217
217
|
private _lowerLevels;
|
|
218
218
|
private _history;
|
|
219
|
-
private _dragPan;
|
|
220
219
|
private _featureIncomplete;
|
|
220
|
+
private _isSwitchBuildingByClickMap;
|
|
221
221
|
constructor(props: {
|
|
222
222
|
map: MaplibreMap;
|
|
223
223
|
floorSwitchMode?: FloorSwitchMode;
|
|
@@ -317,8 +317,9 @@ export declare class Indoor extends Evented {
|
|
|
317
317
|
/**
|
|
318
318
|
* @description Switch floor by ordinal.
|
|
319
319
|
* @param ordinal
|
|
320
|
+
* @param dragPan
|
|
320
321
|
*/
|
|
321
|
-
switchFloorByOrdinal(ordinal: string | null): void;
|
|
322
|
+
switchFloorByOrdinal(ordinal: string | null, dragPan?: boolean): void;
|
|
322
323
|
/**
|
|
323
324
|
* @description Hide the outdoor layer.
|
|
324
325
|
* @deprecated Use 'setOutdoorMapShown' instead.
|
|
@@ -359,7 +360,6 @@ export declare class Indoor extends Evented {
|
|
|
359
360
|
*/
|
|
360
361
|
selectBuilding(feature: MapGeoJSONFeature | null, options?: {
|
|
361
362
|
floorId?: string;
|
|
362
|
-
dragPan?: boolean;
|
|
363
363
|
featureIncomplete?: boolean;
|
|
364
364
|
}): Promise<void>;
|
|
365
365
|
updateRendering(): void;
|
|
@@ -534,9 +534,8 @@ export declare class FloorsControl implements IControl {
|
|
|
534
534
|
/**
|
|
535
535
|
* @description Switch floor by ordinal
|
|
536
536
|
* @param ordinal
|
|
537
|
-
* @param callback - **@deprecated** The optional parameter **'callback' will be removed soon**.
|
|
538
537
|
*/
|
|
539
|
-
switchByOrdinal(ordinal: string
|
|
538
|
+
switchByOrdinal(ordinal: string): void;
|
|
540
539
|
/**
|
|
541
540
|
* @deprecated
|
|
542
541
|
* @param visible
|
|
@@ -549,6 +548,7 @@ export declare class FloorsControl implements IControl {
|
|
|
549
548
|
setPosition(position: ControlPosition): void;
|
|
550
549
|
changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
|
|
551
550
|
setStyle(style: Partial<IFloorSelectorStyle>): void;
|
|
551
|
+
setDragPan(dragPan: boolean | undefined): void;
|
|
552
552
|
private _setVisibility;
|
|
553
553
|
private _bindEvents;
|
|
554
554
|
private _addMapMoveEventListener;
|
|
@@ -716,7 +716,8 @@ declare class Map$1 extends Evented {
|
|
|
716
716
|
/**
|
|
717
717
|
* @description Select floor by id.
|
|
718
718
|
* @param floorId
|
|
719
|
-
* @param options
|
|
719
|
+
* @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
|
|
720
|
+
* Default is true.
|
|
720
721
|
*/
|
|
721
722
|
selectFloorById(floorId: string, options?: {
|
|
722
723
|
dragPan?: boolean;
|
|
@@ -724,7 +725,8 @@ declare class Map$1 extends Evented {
|
|
|
724
725
|
/**
|
|
725
726
|
* @description Select building by id.
|
|
726
727
|
* @param buildingId
|
|
727
|
-
* @param options
|
|
728
|
+
* @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
|
|
729
|
+
* Default is true.
|
|
728
730
|
*/
|
|
729
731
|
selectBuildingById(buildingId: string, options?: {
|
|
730
732
|
dragPan?: boolean;
|
|
@@ -732,7 +734,8 @@ declare class Map$1 extends Evented {
|
|
|
732
734
|
/**
|
|
733
735
|
* @description Select or exit venue by id.
|
|
734
736
|
* @param venueId 'venueId' can be string or null. Exit indoors if venueId is null.
|
|
735
|
-
* @param options
|
|
737
|
+
* @param options {dragPan: boolean} Set dragPan to be false, the map will not pan to the building center.
|
|
738
|
+
* Default is true.
|
|
736
739
|
*/
|
|
737
740
|
selectVenueById(venueId: string | null, options?: {
|
|
738
741
|
dragPan?: boolean;
|