@mapxus/mapxus-map-jp 7.9.0 → 7.10.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.umd.js +1 -1
- package/es/index.d.ts +34 -9
- 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
|
@@ -5,6 +5,7 @@ import { GeoJsonProperties, LineString, Point } from 'geojson';
|
|
|
5
5
|
import maplibregl$1 from 'maplibre-gl';
|
|
6
6
|
import { ControlPosition, FilterSpecification, IControl, LngLat, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike, RequireAtLeastOne } from 'maplibre-gl';
|
|
7
7
|
|
|
8
|
+
/** @deprecated */
|
|
8
9
|
export declare enum FloorSwitchMode {
|
|
9
10
|
SWITCHED_BY_BUILDING = 0,
|
|
10
11
|
SWITCHED_BY_VENUE = 1
|
|
@@ -174,6 +175,7 @@ export interface IMapOption {
|
|
|
174
175
|
floorSelectorStyle?: IFloorSelectorStyle;
|
|
175
176
|
/**
|
|
176
177
|
* @description Switch floors by venue/building, default by venue.
|
|
178
|
+
* @deprecated 'floorSwitchMode' will be removed soon.
|
|
177
179
|
*/
|
|
178
180
|
floorSwitchMode?: FloorSwitchMode;
|
|
179
181
|
/**
|
|
@@ -553,6 +555,32 @@ export interface IResponseVenues {
|
|
|
553
555
|
total: number;
|
|
554
556
|
}
|
|
555
557
|
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;
|
|
576
|
+
}
|
|
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);
|
|
556
584
|
export type Listener = (param: any) => any;
|
|
557
585
|
declare class Event$1 {
|
|
558
586
|
private _type;
|
|
@@ -648,6 +676,7 @@ export declare class Indoor extends Evented {
|
|
|
648
676
|
private readonly _hiddenBuildings;
|
|
649
677
|
constructor(props: {
|
|
650
678
|
map: maplibregl$1.Map;
|
|
679
|
+
/** @deprecated */
|
|
651
680
|
floorSwitchMode?: FloorSwitchMode;
|
|
652
681
|
fitBuildingBounds?: boolean;
|
|
653
682
|
boundsPadding?: number | RequireAtLeastOne<PaddingOptions>;
|
|
@@ -1559,7 +1588,8 @@ export declare class BuildingsService {
|
|
|
1559
1588
|
export declare class PoisService {
|
|
1560
1589
|
private _api;
|
|
1561
1590
|
private _apiV4;
|
|
1562
|
-
private
|
|
1591
|
+
private _categoriesApi;
|
|
1592
|
+
private _categoriesGroupApi;
|
|
1563
1593
|
private _request;
|
|
1564
1594
|
constructor();
|
|
1565
1595
|
/**
|
|
@@ -1624,15 +1654,10 @@ export declare class PoisService {
|
|
|
1624
1654
|
*/
|
|
1625
1655
|
searchByFloor(options: IPoiSearchByFloorOptions): TPromisePois;
|
|
1626
1656
|
/**
|
|
1627
|
-
* @description Search poi categories by venue
|
|
1628
|
-
*
|
|
1629
|
-
* @param paramObject
|
|
1657
|
+
* @description Search poi categories by venue/building/floor/bounds.
|
|
1658
|
+
* @param options
|
|
1630
1659
|
*/
|
|
1631
|
-
searchCategories(
|
|
1632
|
-
venueId?: string;
|
|
1633
|
-
buildingId?: string;
|
|
1634
|
-
floorId?: string;
|
|
1635
|
-
}): TPromiseCategories;
|
|
1660
|
+
searchCategories(options: TSearchCategoriesOptions): TPromiseCategories;
|
|
1636
1661
|
/**
|
|
1637
1662
|
* @description Search surrounding POIs based on the user's location and orientation.
|
|
1638
1663
|
* BuildingId, floorId and ordinal are mutually exclusive, priority: ordinal > floorId > buildingId.
|