@mapxus/mapxus-map-jp 7.6.0 → 7.7.1
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 +83 -82
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -186,6 +186,7 @@ export interface IFloor {
|
|
|
186
186
|
export declare class Indoor extends Evented {
|
|
187
187
|
private _map;
|
|
188
188
|
private _features;
|
|
189
|
+
private _allBuildings;
|
|
189
190
|
private _curBuildingId;
|
|
190
191
|
private _curBuildingFeature;
|
|
191
192
|
private _ordinal;
|
|
@@ -194,27 +195,29 @@ export declare class Indoor extends Evented {
|
|
|
194
195
|
private _allowOutdoorSwitch;
|
|
195
196
|
private _allowBuildingSwitch;
|
|
196
197
|
private _outdoorMapShown;
|
|
197
|
-
private
|
|
198
|
+
private _originIndoorLayers;
|
|
198
199
|
private _curVenueId;
|
|
199
200
|
private _curVenueFeature;
|
|
200
|
-
private _ordinalHistory;
|
|
201
201
|
private _buildingHighlightStyle;
|
|
202
|
-
private readonly _floorSwitchMode;
|
|
203
|
-
private _maskNonSelectedAreas;
|
|
204
|
-
private readonly _hiddenBuildings;
|
|
205
202
|
private _lowerLayers;
|
|
206
203
|
private _upperLayers;
|
|
207
204
|
private _commonLayers;
|
|
208
|
-
private _upperBuildingIds;
|
|
209
|
-
private _lowerBuildingIds;
|
|
210
|
-
private _upperLevelIds;
|
|
211
|
-
private _lowerLevelIds;
|
|
212
205
|
private _dispatch;
|
|
213
206
|
private readonly _fitBuildingBounds;
|
|
214
207
|
private readonly _boundsPadding;
|
|
215
208
|
private readonly _startWithIndoorView;
|
|
216
209
|
private _maplibreMapLoaded;
|
|
217
210
|
private _indoorMapLoaded;
|
|
211
|
+
private readonly _isVenueMode;
|
|
212
|
+
private _isMaskMode;
|
|
213
|
+
private _upperBuildings;
|
|
214
|
+
private _lowerBuildings;
|
|
215
|
+
private readonly _hiddenBuildings;
|
|
216
|
+
private _upperLevels;
|
|
217
|
+
private _lowerLevels;
|
|
218
|
+
private _history;
|
|
219
|
+
private _dragPan;
|
|
220
|
+
private _featureIncomplete;
|
|
218
221
|
constructor(props: {
|
|
219
222
|
map: MaplibreMap;
|
|
220
223
|
floorSwitchMode?: FloorSwitchMode;
|
|
@@ -291,8 +294,12 @@ export declare class Indoor extends Evented {
|
|
|
291
294
|
/**
|
|
292
295
|
* @description Get features from bbox by id.
|
|
293
296
|
* @param id
|
|
297
|
+
* @param options
|
|
294
298
|
*/
|
|
295
|
-
getFeaturesById(id: string
|
|
299
|
+
getFeaturesById(id: string, options?: {
|
|
300
|
+
layerIds?: string[];
|
|
301
|
+
filter?: (feature: MapGeoJSONFeature) => boolean;
|
|
302
|
+
}): MapGeoJSONFeature[];
|
|
296
303
|
/**
|
|
297
304
|
* @description Get level feature at the point
|
|
298
305
|
* @param point
|
|
@@ -311,7 +318,7 @@ export declare class Indoor extends Evented {
|
|
|
311
318
|
* @description Switch floor by ordinal.
|
|
312
319
|
* @param ordinal
|
|
313
320
|
*/
|
|
314
|
-
switchFloorByOrdinal(ordinal: string): void;
|
|
321
|
+
switchFloorByOrdinal(ordinal: string | null): void;
|
|
315
322
|
/**
|
|
316
323
|
* @description Hide the outdoor layer.
|
|
317
324
|
* @deprecated Use 'setOutdoorMapShown' instead.
|
|
@@ -322,12 +329,7 @@ export declare class Indoor extends Evented {
|
|
|
322
329
|
/**
|
|
323
330
|
* @description Update map layout.
|
|
324
331
|
*/
|
|
325
|
-
|
|
326
|
-
updateRendering(): void;
|
|
327
|
-
/**
|
|
328
|
-
* @description Filter indoor layers.
|
|
329
|
-
*/
|
|
330
|
-
setFloorsFilter(): void;
|
|
332
|
+
updateCustomLayers(): void;
|
|
331
333
|
/**
|
|
332
334
|
* @description Set the style of SelectedBuildingBorder. If set to null, the border will be invisible.
|
|
333
335
|
* @param style {ISelectedBuildingBorderStyle | null}
|
|
@@ -353,57 +355,40 @@ export declare class Indoor extends Evented {
|
|
|
353
355
|
/**
|
|
354
356
|
* @description Select a building feature
|
|
355
357
|
* @param feature {MapGeoJSONFeature | null}
|
|
356
|
-
* @param floorId
|
|
358
|
+
* @param options {floorId?: string, dragPan?: boolean}
|
|
357
359
|
*/
|
|
358
|
-
selectBuilding(feature
|
|
360
|
+
selectBuilding(feature: MapGeoJSONFeature | null, options?: {
|
|
361
|
+
floorId?: string;
|
|
362
|
+
dragPan?: boolean;
|
|
363
|
+
featureIncomplete?: boolean;
|
|
364
|
+
}): Promise<void>;
|
|
365
|
+
updateRendering(): void;
|
|
359
366
|
private _getBuildingByPoint;
|
|
360
|
-
private _getConditionsExpression;
|
|
361
367
|
private _loadData;
|
|
362
368
|
private _init;
|
|
363
|
-
private _filter;
|
|
364
369
|
private _clear;
|
|
365
|
-
private
|
|
366
|
-
private _getFeatures;
|
|
370
|
+
private _getIndoorFeatures;
|
|
367
371
|
private _getBuildingFloorByOrdinal;
|
|
368
|
-
private _getBuildingFloorByFloorId;
|
|
369
|
-
private _getBuildingInitFloor;
|
|
370
372
|
private _isNotCurrentFeature;
|
|
371
373
|
private _setOutdoorVisibility;
|
|
372
374
|
private _addCustomLevelFillLayer;
|
|
373
|
-
private _setIndoorState;
|
|
374
375
|
private _setBuildingLineOpacity;
|
|
375
376
|
private _addBuildingHighlightLayer;
|
|
376
377
|
private _filterBuildingHighlight;
|
|
377
|
-
private
|
|
378
|
-
private
|
|
379
|
-
private
|
|
380
|
-
private _configMaskVenueMode;
|
|
381
|
-
private _configMaskBuildingMode;
|
|
382
|
-
private _configVenueMode;
|
|
383
|
-
private _configBuildingMode;
|
|
384
|
-
private _getVenueOriginOrdinal;
|
|
385
|
-
private _getBuildingOriginOrdinal;
|
|
386
|
-
private _isVenueMode;
|
|
387
|
-
private _setVenueOrdinalHistory;
|
|
388
|
-
private _getVenueOrdinalHistory;
|
|
389
|
-
private _setBuildingOrdinalHistory;
|
|
390
|
-
private _getBuildingOrdinalHistory;
|
|
391
|
-
private _getVenuesOfBbox;
|
|
378
|
+
private _handleBuildings;
|
|
379
|
+
private _getVenueDefaultOrdinal;
|
|
380
|
+
private _getBuildingDefaultOrdinal;
|
|
392
381
|
private _getBuildingsOfBbox;
|
|
393
382
|
private _copyOverlapLayers;
|
|
394
|
-
private
|
|
395
|
-
private
|
|
396
|
-
private
|
|
397
|
-
private
|
|
398
|
-
private
|
|
399
|
-
private
|
|
400
|
-
private
|
|
401
|
-
private
|
|
402
|
-
private
|
|
403
|
-
private _filterGroupLayers;
|
|
404
|
-
private _filterCommonLayers;
|
|
405
|
-
private _getNewFilter;
|
|
406
|
-
private static isFilterHasBeenReset;
|
|
383
|
+
private _layerDisplayedBuildings;
|
|
384
|
+
private _setDisplayedLevels;
|
|
385
|
+
private _filterTiles;
|
|
386
|
+
private _filterIndoorLayers;
|
|
387
|
+
private _updateIndoorState;
|
|
388
|
+
private _updateFloorState;
|
|
389
|
+
private _resetSelectedBuildingLevel;
|
|
390
|
+
private _checkAndPanToBuilding;
|
|
391
|
+
private _invisibleSelectedBuilding;
|
|
407
392
|
}
|
|
408
393
|
export interface IPoiEvent {
|
|
409
394
|
coordinate: LngLat;
|
|
@@ -515,10 +500,12 @@ export interface IFloorSelectorOptions {
|
|
|
515
500
|
export declare class FloorsControl implements IControl {
|
|
516
501
|
private _container;
|
|
517
502
|
private _indoor;
|
|
503
|
+
private _maplibre;
|
|
518
504
|
private _position;
|
|
505
|
+
private _buildingId;
|
|
519
506
|
private _floorNames;
|
|
520
507
|
private _ordinals;
|
|
521
|
-
private
|
|
508
|
+
private _ordinal;
|
|
522
509
|
private _style;
|
|
523
510
|
private _$innerFloors;
|
|
524
511
|
private _$activeFloor;
|
|
@@ -530,16 +517,19 @@ export declare class FloorsControl implements IControl {
|
|
|
530
517
|
private _$selectorExpanded;
|
|
531
518
|
private _$selectorFolded;
|
|
532
519
|
private _componentDidMount;
|
|
520
|
+
private _isEnabled;
|
|
533
521
|
private _visible;
|
|
522
|
+
private _dragPan;
|
|
534
523
|
/**
|
|
535
524
|
* @param indoor
|
|
536
525
|
* @param options
|
|
537
526
|
*/
|
|
538
527
|
constructor(indoor: Indoor, options: IFloorSelectorOptions);
|
|
539
|
-
onAdd(): HTMLElement;
|
|
528
|
+
onAdd(map: MaplibreMap): HTMLElement;
|
|
540
529
|
onRemove(): void;
|
|
541
530
|
get position(): ControlPosition;
|
|
542
531
|
get enabled(): boolean;
|
|
532
|
+
setEnabled(enabled: boolean): void;
|
|
543
533
|
getDefaultPosition(): ControlPosition;
|
|
544
534
|
/**
|
|
545
535
|
* @description Switch floor by ordinal
|
|
@@ -547,6 +537,10 @@ export declare class FloorsControl implements IControl {
|
|
|
547
537
|
* @param callback - **@deprecated** The optional parameter **'callback' will be removed soon**.
|
|
548
538
|
*/
|
|
549
539
|
switchByOrdinal(ordinal: string, callback?: VoidFunction): void;
|
|
540
|
+
/**
|
|
541
|
+
* @deprecated
|
|
542
|
+
* @param visible
|
|
543
|
+
*/
|
|
550
544
|
setVisibility(visible: boolean): void;
|
|
551
545
|
/**
|
|
552
546
|
* @deprecated Use 'changePosition' instead.
|
|
@@ -555,15 +549,19 @@ export declare class FloorsControl implements IControl {
|
|
|
555
549
|
setPosition(position: ControlPosition): void;
|
|
556
550
|
changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
|
|
557
551
|
setStyle(style: Partial<IFloorSelectorStyle>): void;
|
|
552
|
+
private _setVisibility;
|
|
558
553
|
private _bindEvents;
|
|
559
|
-
private
|
|
554
|
+
private _addMapMoveEventListener;
|
|
555
|
+
private _mountFloors;
|
|
556
|
+
private _updateFloorSelector;
|
|
557
|
+
private _clearState;
|
|
560
558
|
private _render;
|
|
561
559
|
private _hide;
|
|
562
560
|
private _show;
|
|
563
|
-
private
|
|
561
|
+
private _createFloors;
|
|
564
562
|
private _$expandedSelector;
|
|
565
563
|
private _$foldedSelector;
|
|
566
|
-
private
|
|
564
|
+
private _clearFloors;
|
|
567
565
|
private _$createScrollButton;
|
|
568
566
|
private _$createFloors;
|
|
569
567
|
private _updateSelectorStatus;
|
|
@@ -587,6 +585,7 @@ export declare class FloorSelectorHandler {
|
|
|
587
585
|
* @param index - The index of the control in the controls-container. Default at the last.
|
|
588
586
|
*/
|
|
589
587
|
setPosition(position: ControlPosition, index?: number): void;
|
|
588
|
+
setStyle(style: IFloorSelectorStyle): void;
|
|
590
589
|
get isEnabled(): boolean;
|
|
591
590
|
get position(): ControlPosition;
|
|
592
591
|
}
|
|
@@ -600,6 +599,10 @@ declare class Map$1 extends Evented {
|
|
|
600
599
|
private _initialHiddenLayers;
|
|
601
600
|
private _language;
|
|
602
601
|
private _dispatch;
|
|
602
|
+
private _fitBuildingBounds;
|
|
603
|
+
private _boundsPadding;
|
|
604
|
+
private _buildingService;
|
|
605
|
+
private _venueService;
|
|
603
606
|
switchOutdoor: SwitchOutdoorHandler;
|
|
604
607
|
switchBuilding: SwitchBuildingHandler;
|
|
605
608
|
buildingSelector: BuildingSelectorHandler;
|
|
@@ -701,31 +704,39 @@ declare class Map$1 extends Evented {
|
|
|
701
704
|
level: MapGeoJSONFeature;
|
|
702
705
|
};
|
|
703
706
|
/**
|
|
704
|
-
* @description
|
|
707
|
+
* @description Query rendered features from bbox by id. One id may correspond to multiple features,
|
|
708
|
+
* coz of a feature may be multi-polygon(feature collection).
|
|
705
709
|
* @param id
|
|
710
|
+
* @param options {layerIds: string[], filter: (feature: MapGeoJSONFeature) => boolean}
|
|
706
711
|
*/
|
|
707
|
-
getFeaturesById(id: string
|
|
712
|
+
getFeaturesById(id: string, options?: {
|
|
713
|
+
layerIds?: string[];
|
|
714
|
+
filter?: (feature: MapGeoJSONFeature) => boolean;
|
|
715
|
+
}): MapGeoJSONFeature[];
|
|
708
716
|
/**
|
|
709
717
|
* @description Select floor by id.
|
|
710
718
|
* @param floorId
|
|
711
|
-
* @param
|
|
712
|
-
* should use this method as `await selectFloorById(floorId)` or `selectFloorById(floorId).then()`
|
|
719
|
+
* @param options
|
|
713
720
|
*/
|
|
714
|
-
selectFloorById(floorId: string,
|
|
721
|
+
selectFloorById(floorId: string, options?: {
|
|
722
|
+
dragPan?: boolean;
|
|
723
|
+
}): Promise<void>;
|
|
715
724
|
/**
|
|
716
725
|
* @description Select building by id.
|
|
717
726
|
* @param buildingId
|
|
718
|
-
* @param
|
|
719
|
-
* should use this method as `await selectBuildingById(buildingId)` or `selectBuildingById(buildingId).then()`
|
|
727
|
+
* @param options
|
|
720
728
|
*/
|
|
721
|
-
selectBuildingById(buildingId: string,
|
|
729
|
+
selectBuildingById(buildingId: string, options?: {
|
|
730
|
+
dragPan?: boolean;
|
|
731
|
+
}): Promise<void>;
|
|
722
732
|
/**
|
|
723
733
|
* @description Select or exit venue by id.
|
|
724
734
|
* @param venueId 'venueId' can be string or null. Exit indoors if venueId is null.
|
|
725
|
-
* @param
|
|
726
|
-
* should use this method as `await selectVenueById(venueId)` or `selectVenueById(venueId).then()`
|
|
735
|
+
* @param options
|
|
727
736
|
*/
|
|
728
|
-
selectVenueById(venueId: string | null,
|
|
737
|
+
selectVenueById(venueId: string | null, options?: {
|
|
738
|
+
dragPan?: boolean;
|
|
739
|
+
}): Promise<void>;
|
|
729
740
|
/**
|
|
730
741
|
* @description Listen for mouse click events on the map.
|
|
731
742
|
* @param listener
|
|
@@ -758,17 +769,6 @@ declare class Map$1 extends Evented {
|
|
|
758
769
|
}) => void): {
|
|
759
770
|
unsubscribe: VoidFunction;
|
|
760
771
|
};
|
|
761
|
-
/**
|
|
762
|
-
* @description Hide the FloorControl.
|
|
763
|
-
* @deprecated Use 'floorSelector.disable()' instead.
|
|
764
|
-
*/
|
|
765
|
-
disableFloorControl(): this;
|
|
766
|
-
/**
|
|
767
|
-
* @description Show the FloorControl.
|
|
768
|
-
* @deprecated Use 'floorSelector.enable()' instead.
|
|
769
|
-
* @param position
|
|
770
|
-
*/
|
|
771
|
-
enableFloorControl(position?: ControlPosition): this;
|
|
772
772
|
/**
|
|
773
773
|
* @description Hide the BuildingSelector.
|
|
774
774
|
* @deprecated Use 'buildingSelector.disable()' instead.
|
|
@@ -793,6 +793,7 @@ declare class Map$1 extends Evented {
|
|
|
793
793
|
setFloorsControlStyle(style: IFloorsControlStyle): this;
|
|
794
794
|
/**
|
|
795
795
|
* @description Set the FloorSelector's style.
|
|
796
|
+
* @deprecated Use 'map.floorSelector.setStyle()' instead.
|
|
796
797
|
* @param style
|
|
797
798
|
*/
|
|
798
799
|
setFloorSelectorStyle(style: IFloorSelectorStyle): this;
|
|
@@ -806,13 +807,13 @@ declare class Map$1 extends Evented {
|
|
|
806
807
|
private _setStyle;
|
|
807
808
|
private _addControl;
|
|
808
809
|
private _selectPoiById;
|
|
809
|
-
private _getBuildingIdByVenueId;
|
|
810
810
|
private _resourceRequestTransform;
|
|
811
811
|
private _checkMapZoom;
|
|
812
812
|
private _clickEventsDispatcher;
|
|
813
813
|
private _hideIndoorLayers;
|
|
814
814
|
private _showIndoorLayers;
|
|
815
815
|
private _updatePermission;
|
|
816
|
+
private _panToBuilding;
|
|
816
817
|
}
|
|
817
818
|
export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
818
819
|
export interface IMarkerOptions {
|