@mapxus/mapxus-map-jp 8.5.0 → 9.0.0-pre.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/es/index.d.ts CHANGED
@@ -6,11 +6,6 @@ import { GeoJsonProperties, LineString, Point } from 'geojson';
6
6
  import maplibregl$1 from 'maplibre-gl';
7
7
  import { ControlPosition, ExpressionSpecification, FilterSpecification, IControl, LngLat, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike, RequireAtLeastOne } from 'maplibre-gl';
8
8
 
9
- /** @deprecated */
10
- export declare enum FloorSwitchMode {
11
- SWITCHED_BY_BUILDING = 0,
12
- SWITCHED_BY_VENUE = 1
13
- }
14
9
  export declare enum PresetLanguage {
15
10
  ENGLISH = "en",
16
11
  CHINESE_SIMPLIFIED = "zh-Hans",
@@ -46,12 +41,8 @@ export interface IBbox {
46
41
  minLat: number;
47
42
  minLon: number;
48
43
  }
49
- export interface IBuildingChangedOptions {
50
- buildingId: string | null;
51
- ordinal: string | null;
52
- dragPan: boolean | "restrict";
53
- }
54
- export interface IMultilingualName extends Partial<Record<PresetLanguage, string>> {
44
+ export type TMultilingualString = Partial<Record<PresetLanguage, string>>;
45
+ export interface IMultilingualName extends TMultilingualString {
55
46
  default: string;
56
47
  }
57
48
  export type IMultilingualAddress = Record<keyof IMultilingualName, {
@@ -62,72 +53,183 @@ export interface ILocation {
62
53
  lat: number;
63
54
  lon: number;
64
55
  }
65
- export interface IResponse<T> {
56
+ export type TResponseResult<T> = AxiosPromise<{
66
57
  code: number;
67
58
  message: string;
68
59
  result: T;
60
+ }>;
61
+ export declare enum DistanceSearchType {
62
+ POINT = "Point",
63
+ POLYGON = "Polygon"
69
64
  }
70
- export interface IBuildingInlineFloor {
71
- code: string;
65
+ export declare enum OrientationDistanceSearchType {
66
+ POINT = "Point",
67
+ POLYGON = "Polygon",
68
+ GATE = "Gate"
69
+ }
70
+ export declare enum PoisOrderBy {
71
+ DEFAULT_NAME = "DefaultName"
72
+ }
73
+ export declare enum PoisSortBy {
74
+ ABSOLUTE_DISTANCE = "AbsoluteDistance",
75
+ ACTUAL_DISTANCE = "ActualDistance"
76
+ }
77
+ export interface IPoiCommonOptions {
78
+ accessibilityDetail: IMultilingualName;
79
+ category: string[];
80
+ descriptions: IMultilingualName;
81
+ distance?: number;
72
82
  id: string;
73
- ordinal: number;
74
- signalMap: boolean;
75
- visualMap: boolean;
83
+ location: ILocation;
84
+ name: IMultilingualName;
85
+ osmRefId: number;
86
+ poiId: string;
87
+ venueId: string;
88
+ }
89
+ export interface IPoiFloor {
90
+ floor: string;
91
+ floorId: string;
92
+ }
93
+ export interface ISharedPoiFloor {
94
+ sharedFloorId: string;
95
+ sharedFloorNames: IMultilingualName;
96
+ }
97
+ export type TSizes = "original" | "thumbnail" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
98
+ export type TPhotoSizeSpec = Partial<Record<TSizes, {
99
+ pixelWidth: number;
100
+ pixelHeight: number;
101
+ url: string;
102
+ }>>;
103
+ export interface IPhotoSpec {
104
+ aspectRatio: string;
105
+ coordinates: {
106
+ longitude: number;
107
+ latitude: number;
108
+ };
109
+ dateAdded: string;
110
+ id: string;
111
+ photoBy: string;
112
+ photoSizes: TPhotoSizeSpec;
113
+ source: string;
114
+ type: string;
115
+ }
116
+ export interface IPoi extends IPoiFloor, IPoiCommonOptions, IBusinessInfo {
117
+ buildingId: string;
118
+ }
119
+ export interface ISharedPoi extends ISharedPoiFloor, IPoiCommonOptions {
120
+ }
121
+ export type TPromisePois<T> = TResponseResult<{
122
+ pois: T[];
123
+ total: number;
124
+ }>;
125
+ /** poi categories from searchCategories() */
126
+ export interface IPoiCategory {
127
+ category: string;
128
+ description: string | null;
129
+ id: string;
130
+ title: TMultilingualString;
131
+ }
132
+ export interface ICategoryGroupItem extends IPoiCategory {
133
+ count: number;
134
+ featureType: string;
135
+ parents: string[];
136
+ venueId: string;
137
+ venueName: TMultilingualString;
138
+ }
139
+ export interface ICategoriesGroup {
140
+ categoryGroups: ICategoryGroupItem[];
141
+ total: number;
142
+ }
143
+ export type TPromiseCategories = TResponseResult<ICategoriesGroup>;
144
+ /** pois response from searchByOrientation() */
145
+ export interface IOrientationPoiCommonOptions {
146
+ angle: number;
147
+ category: string[];
148
+ descriptions: IMultilingualName;
149
+ distance: number;
150
+ distanceSource: string;
151
+ id: string;
152
+ location: ILocation;
153
+ name: IMultilingualName;
154
+ osmRefId: number;
155
+ poiId: string;
156
+ }
157
+ export interface IOrientationNormalPoi extends IPoiFloor, IOrientationPoiCommonOptions, IBusinessInfo {
158
+ buildingId: string;
159
+ /** @deprecated "description" will be removed soon, use "descriptions" instead */
160
+ description?: string;
161
+ }
162
+ export interface IOrientationSharedPoi extends ISharedPoiFloor, IOrientationPoiCommonOptions {
76
163
  }
77
- export interface IBuilding {
164
+ export type TOrientationPoi = IOrientationNormalPoi | IOrientationSharedPoi;
165
+ export type TPromiseOrientationPois = TResponseResult<TOrientationPoi[]>;
166
+ export interface IBuildingBasicInfo {
78
167
  address: IMultilingualAddress;
79
168
  bbox: IBbox;
80
- buildingId: string;
81
- buildingOutlineId: number;
82
169
  city?: string;
83
170
  country: string;
171
+ description: TMultilingualString;
172
+ labelCenter: ILocation;
173
+ name: IMultilingualName;
174
+ region: string;
175
+ type: string;
176
+ }
177
+ export interface IBusinessInfo {
178
+ appUrl?: {
179
+ android?: string;
180
+ ios?: string;
181
+ };
182
+ businessStatus?: {
183
+ status: "OPEN" | "TEMPORARILY_CLOSED";
184
+ };
185
+ email?: string;
186
+ icon?: string;
187
+ openingHours?: string;
188
+ phone?: string;
189
+ photos?: Array<IPhotoSpec>;
190
+ publicData?: string[];
191
+ totalPhotoCount?: number;
192
+ website?: string;
193
+ }
194
+ export interface IMapServices {
195
+ signalMap: boolean;
196
+ visualMap: boolean;
197
+ }
198
+ export interface IFloorBase {
199
+ id: string;
200
+ ordinal: number;
201
+ }
202
+ export interface IBuildingInlineFloor extends IFloorBase, IMapServices {
203
+ code: string;
204
+ }
205
+ export interface IBuilding extends IBuildingBasicInfo, IBusinessInfo, IMapServices {
206
+ buildingId: string;
207
+ buildingName: IMultilingualName;
208
+ buildingOutlineId: number;
84
209
  defaultFloor?: string;
85
210
  floors: IBuildingInlineFloor[];
86
211
  groundFloor: string;
87
212
  isPrivate: "yes" | "no";
88
- labelCenter: ILocation;
89
- name: IMultilingualName;
90
213
  organization: string;
91
- region: string;
92
- signalMap: boolean;
93
- type: string;
94
214
  venueId: string;
95
215
  venueName: IMultilingualName;
96
- visualMap: boolean;
97
216
  }
98
217
  export interface IResponseBuildings {
99
218
  buildings: IBuilding[];
100
219
  total: number;
101
220
  }
102
- export type TPromiseBuildings = AxiosPromise<IResponse<IResponseBuildings>>;
103
- export interface IBuildingSearchCustomizedOptions {
104
- bounds?: [
105
- [
106
- number,
107
- number
108
- ],
109
- [
110
- number,
111
- number
112
- ]
113
- ];
114
- center?: [
115
- number,
116
- number
117
- ];
118
- distance?: number;
119
- keywords?: string;
120
- signal?: boolean;
121
- visual?: boolean;
122
- offset?: number;
123
- page?: number;
124
- }
221
+ export type TPromiseBuildings = TResponseResult<IResponseBuildings>;
125
222
  export type TPointFeature = GeoJSON.Feature<Point, GeoJsonProperties>;
126
223
  export type TLineStringFeature = GeoJSON.Feature<LineString, GeoJsonProperties>;
127
224
  export interface IFloor {
128
- code: string | null;
129
- id: string | null;
130
- ordinal: string | null;
225
+ code: string;
226
+ id: string;
227
+ ordinal: string;
228
+ }
229
+ export interface ISharedFloor {
230
+ id: string;
231
+ ordinal: string;
232
+ name: IMultilingualName;
131
233
  }
132
234
  export interface IFloorSelectorStyle {
133
235
  fontColor?: string;
@@ -142,12 +244,13 @@ export interface IMapClickEvent {
142
244
  coordinate: LngLat;
143
245
  building: MapGeoJSONFeature | null;
144
246
  venue: MapGeoJSONFeature | null;
145
- floor: IFloor;
247
+ floor: IFloor | ISharedFloor | null;
146
248
  }
147
- export interface ISelectedBuildingBorderStyle {
249
+ export interface ISelectedHighlightStyle {
148
250
  lineWidth?: number;
149
251
  lineColor?: string;
150
252
  lineOpacity?: number;
253
+ lineOffset?: number;
151
254
  }
152
255
  export interface IPlatformCommon {
153
256
  sdkVersion: string;
@@ -180,6 +283,7 @@ export interface IMapOtherOptions {
180
283
  * the priority is: poiId > floorId > buildingId > venueId.
181
284
  */
182
285
  floorId?: string;
286
+ sharedFloorId?: string;
183
287
  /**
184
288
  * @description Initialize the map with POI as the center point, use it with maplibregl.Map 'zoom' option.
185
289
  * 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
@@ -190,13 +294,8 @@ export interface IMapOtherOptions {
190
294
  theme?: ThemeType | string;
191
295
  /** @deprecated 'collapseCopyright' will be removed soon. You'd not use it. */
192
296
  collapseCopyright?: boolean;
193
- selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
297
+ selectedHighlightStyle?: ISelectedHighlightStyle;
194
298
  floorSelectorStyle?: IFloorSelectorStyle;
195
- /**
196
- * @description Switch floors by venue/building, default by venue.
197
- * @deprecated 'floorSwitchMode' will be removed soon.
198
- */
199
- floorSwitchMode?: FloorSwitchMode;
200
299
  /**
201
300
  * @description Whether unselected buildings are masked, default is false.
202
301
  */
@@ -225,270 +324,45 @@ export interface IMapAccessWithAppId {
225
324
  /**
226
325
  * get accessToken of the specific platform(ios or android), optional, default is web
227
326
  * @private
228
- */
229
- platform?: TPlatform;
230
- }
231
- export interface ITokenResponse {
232
- accessToken: string;
233
- /** timestamp */
234
- expiredTime: number;
235
- identifier?: string;
236
- sdkVersion?: string;
237
- }
238
- export type TAccessTokenGetter = () => Promise<ITokenResponse>;
239
- export interface IMapAccessWithToken {
240
- getTokenAsync: TAccessTokenGetter;
241
- }
242
- export type TMapKeys = IMapAccessWithAppId | IMapAccessWithToken;
243
- export type IMapOption = IMapOtherOptions & TMapKeys;
244
- export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
245
- export interface IMarkerOptions {
246
- lngLat: [
247
- number,
248
- number
249
- ];
250
- properties?: {
251
- [k: string]: string;
252
- };
253
- }
254
- export interface IMarkerOptionsWithFeatureId extends IMarkerOptions {
255
- featureId: number;
256
- }
257
- export interface IPoiEvent {
258
- coordinate: LngLat;
259
- poi: MapGeoJSONFeature;
260
- building: MapGeoJSONFeature | null;
261
- venue: MapGeoJSONFeature | null;
262
- floor: IFloor;
263
- }
264
- export interface IPointEvent {
265
- coordinate: LngLat;
266
- point: PointLike;
267
- }
268
- export declare enum DistanceSearchType {
269
- POINT = "Point",
270
- POLYGON = "Polygon"
271
- }
272
- export declare enum OrientationDistanceSearchType {
273
- POINT = "Point",
274
- POLYGON = "Polygon",
275
- GATE = "Gate"
276
- }
277
- export interface IBoundsSpec {
278
- /** An array of LngLat coordinates in [sw, ne] order */
279
- bounds: [
280
- [
281
- number,
282
- number
283
- ],
284
- [
285
- number,
286
- number
287
- ]
288
- ];
289
- }
290
- export interface IKeywordSpec {
291
- keywords?: string;
292
- }
293
- export interface IBuildingSpec {
294
- buildingId: string;
295
- }
296
- export interface IVenueSpec {
297
- venueId: string;
298
- }
299
- export interface IFloorSpec {
300
- floorId: string;
301
- }
302
- export type TSearchCategoriesOptions = IVenueSpec | IBuildingSpec | IFloorSpec | (IBoundsSpec & IKeywordSpec);
303
- export interface IPoi {
304
- accessibilityDetail: IMultilingualName;
305
- buildingId: string;
306
- category: string[];
307
- distance: number;
308
- floor: string;
309
- floorId: string;
310
- id: string;
311
- location: ILocation;
312
- name: IMultilingualName;
313
- osmRefId: number;
314
- poiId: string;
315
- venueId: string;
316
- descriptions?: IMultilingualName;
317
- email?: string;
318
- openingHours?: string;
319
- phone?: string;
320
- website?: string;
321
- }
322
- export interface IResponsePois {
323
- pois: IPoi[];
324
- total: number;
325
- }
326
- export type TPromisePois = AxiosPromise<IResponse<IResponsePois>>;
327
- export type TPromiseCategories = AxiosPromise<IResponse<IPoiCategory[]>>;
328
- export type TPromiseOrientationPois = AxiosPromise<IResponse<IOrientationPoi[]>>;
329
- export interface IPoiCategory {
330
- category: string;
331
- description: string | null;
332
- id: string;
333
- title: Partial<Record<keyof IMultilingualName, string>>;
334
- }
335
- export interface IOrientationPoi {
336
- angle: number;
337
- buildingId: string;
338
- category: string[];
339
- distance: number;
340
- distanceSource: string;
341
- floor: string;
342
- floorId: string;
343
- id: string;
344
- location: ILocation;
345
- name: IMultilingualName;
346
- osmRefId: number;
347
- poiId: string;
348
- description?: string;
349
- email?: string;
350
- openingHours?: string;
351
- phone?: string;
352
- website?: string;
353
- }
354
- export interface ISearchDistance {
355
- /**
356
- * The center of searching range, [lng, lat].
357
- */
358
- center: [
359
- number,
360
- number
361
- ];
362
- /**
363
- * Radius from center, unit is meter, cannot exceed 10,000.
364
- */
365
- distance: number;
366
- /**
367
- * The maximum value is 100, default is 10.
368
- */
369
- offset?: number;
370
- /**
371
- * Results for specified page number. Default is 1.
372
- */
373
- page?: number;
374
- }
375
- export interface IPoiSearchByCategoryOptions extends ISearchDistance {
376
- category: string;
377
- }
378
- export interface IPoiSearchByExcludedCategoriesOptions extends ISearchDistance {
379
- excludedCategories: string | string[];
380
- }
381
- export type TPoiSearchByCategoryOptions = IPoiSearchByCategoryOptions | IPoiSearchByExcludedCategoriesOptions;
382
- export interface IPoiSearchByDistanceOptions extends ISearchDistance {
383
- /**
384
- * Keywords of POI name.
385
- */
386
- keywords?: string;
387
- }
388
- export interface ISearchOrientation {
389
- /**
390
- * User's position, [lng, lat].
391
- */
392
- center: [
393
- number,
394
- number
395
- ];
396
- /**
397
- * The angle between the user's orientation and true north.
398
- */
399
- angle: number;
400
- /**
401
- * The radius with 'center' as the center of the circle.
402
- */
403
- distance: number;
404
- /**
405
- * The type of POI, default is 'Point'.
406
- */
407
- distanceSearchType?: OrientationDistanceSearchType;
408
- }
409
- export interface IPoiSearchByOrientationAndBuildingOptions extends ISearchOrientation {
410
- buildingId: string;
411
- }
412
- export interface IPoiSearchByOrientationAndFloorOptions extends ISearchOrientation {
413
- floorId: string;
414
- }
415
- export interface IPoiSearchByOrientationAndOrdinalOptions extends ISearchOrientation {
416
- ordinal: string;
417
- }
418
- export type TPoiSearchByOrientationOptions = IPoiSearchByOrientationAndBuildingOptions | IPoiSearchByOrientationAndFloorOptions | IPoiSearchByOrientationAndOrdinalOptions;
419
- export declare enum PoisOrderBy {
420
- DEFAULT_NAME = "DefaultName"
421
- }
422
- export declare enum PoisSortBy {
423
- ABSOLUTE_DISTANCE = "AbsoluteDistance",
424
- ACTUAL_DISTANCE = "ActualDistance"
425
- }
426
- export interface ISearchKeywords {
427
- keywords?: string;
428
- /**
429
- * Quantity per page, the maximum is 100, default is 10.
430
- */
431
- offset?: number;
432
- /**
433
- * Results for specified page number. Default is 1.
434
- */
435
- page?: number;
436
- }
437
- export interface IPoiSearchByBuildingOptions extends ISearchKeywords {
438
- buildingId: string;
439
- orderBy?: PoisOrderBy;
440
- }
441
- export interface IPoiSearchByVenueOptions extends ISearchKeywords {
442
- venueId: string;
443
- orderBy?: PoisOrderBy;
444
- }
445
- export interface IPoiSearchByFloorOptions extends ISearchKeywords {
446
- floorId: string;
447
- orderBy?: PoisOrderBy;
448
- }
449
- export interface IPoiSearchByBoundsOptions extends ISearchKeywords {
450
- /**
451
- * An array of LngLat coordinates in [sw, ne] order
452
- */
453
- bounds: [
454
- [
455
- number,
456
- number
457
- ],
458
- [
459
- number,
460
- number
461
- ]
462
- ];
463
- orderBy?: PoisOrderBy;
327
+ */
328
+ platform?: TPlatform;
464
329
  }
465
- export interface IPoiSearchCustomizedOptions {
466
- bounds?: [
467
- [
468
- number,
469
- number
470
- ],
471
- [
472
- number,
473
- number
474
- ]
475
- ];
476
- center?: [
330
+ export interface ITokenResponse {
331
+ accessToken: string;
332
+ /** timestamp */
333
+ expiredTime: number;
334
+ identifier?: string;
335
+ sdkVersion?: string;
336
+ }
337
+ export type TAccessTokenGetter = () => Promise<ITokenResponse>;
338
+ export interface IMapAccessWithToken {
339
+ getTokenAsync: TAccessTokenGetter;
340
+ }
341
+ export type TMapKeys = IMapAccessWithAppId | IMapAccessWithToken;
342
+ export type IMapOption = IMapOtherOptions & TMapKeys;
343
+ export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
344
+ export interface IMarkerOptions {
345
+ lngLat: [
477
346
  number,
478
347
  number
479
348
  ];
480
- distance?: number;
481
- category?: string;
482
- excludedCategories?: string | string[];
483
- floorId?: string;
484
- buildingId?: string;
485
- venueId?: string;
486
- keywords?: string;
487
- orderBy?: PoisOrderBy;
488
- sort?: PoisSortBy;
489
- distanceSearchType?: DistanceSearchType;
490
- offset?: number;
491
- page?: number;
349
+ properties?: {
350
+ [k: string]: string;
351
+ };
352
+ }
353
+ export interface IMarkerOptionsWithFeatureId extends IMarkerOptions {
354
+ featureId: number;
355
+ }
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;
492
366
  }
493
367
  export interface ITokenInfo {
494
368
  "app:name": string;
@@ -521,6 +395,7 @@ export interface IInstruction {
521
395
  number,
522
396
  number
523
397
  ];
398
+ on_shared_floor: boolean;
524
399
  ordinal: number;
525
400
  sign: number;
526
401
  street_name: string;
@@ -558,17 +433,18 @@ export interface IResponseRoute {
558
433
  infos: IRouteInfo | null;
559
434
  paths: IRoutePath[];
560
435
  }
561
- export type TPromiseRoute = AxiosPromise<IResponse<IResponseRoute>>;
436
+ export type TPromiseRoute = TResponseResult<IResponseRoute>;
437
+ export interface IRoutePoint {
438
+ lat: number;
439
+ lon: number;
440
+ floorId?: string;
441
+ }
562
442
  export interface IRouteSearchOptions {
563
443
  /**
564
444
  * @description Points are in order, from -> stops -> to.
565
445
  * The length of points must be: 1 < {points.length} < 6.
566
446
  */
567
- points: Array<{
568
- lat: number;
569
- lon: number;
570
- floorId?: string;
571
- }>;
447
+ points: IRoutePoint[];
572
448
  /**
573
449
  * @description Default is "foot".
574
450
  */
@@ -578,12 +454,16 @@ export interface IRouteSearchOptions {
578
454
  */
579
455
  locale?: PresetLanguage;
580
456
  }
581
- export interface IVenueInlineBuilding {
457
+ export interface IVenueInlineSharedFloor extends IFloorBase, IMapServices {
458
+ name: IMultilingualName;
459
+ refBuilding: Array<string>;
460
+ }
461
+ export interface IVenueInlineBuilding extends IMapServices {
462
+ buildingName: IMultilingualName;
582
463
  buildingOutlineId: number;
583
464
  defaultFloor?: string;
584
465
  floors: IBuildingInlineFloor[];
585
466
  id: string;
586
- labelCenter: ILocation;
587
467
  name: IMultilingualName;
588
468
  point: {
589
469
  type: string;
@@ -592,91 +472,243 @@ export interface IVenueInlineBuilding {
592
472
  number
593
473
  ];
594
474
  };
595
- signalMap: boolean;
596
- visualMap: boolean;
597
475
  }
598
- export interface IVenue {
599
- address: IMultilingualAddress;
600
- bbox: IBbox;
476
+ export interface IVenue extends IBuildingBasicInfo, IBusinessInfo, IMapServices {
601
477
  buildings: IVenueInlineBuilding[];
602
- businessStatus?: {
603
- status: string;
604
- };
605
- country: string;
606
478
  defaultBuilding?: string;
607
479
  id: string;
608
- labelCenter: ILocation;
609
- name: IMultilingualName;
610
480
  organization: string[];
611
481
  owner: string;
612
- publicData?: string[];
613
- photos?: object[];
614
- region: string;
615
482
  restricted: boolean;
616
- signalMap: boolean;
617
- totalPhotoCount?: number;
618
- type: string;
483
+ sharedFloors: IVenueInlineSharedFloor[];
619
484
  venueOutlineId: number;
620
- visualMap: boolean;
621
485
  }
622
486
  export interface IResponseVenues {
623
487
  venues: IVenue[];
624
488
  total: number;
625
489
  }
626
- export type TPromiseVenues = AxiosPromise<IResponse<IResponseVenues>>;
490
+ export type TPromiseVenues = TResponseResult<IResponseVenues>;
491
+ export interface IQuantitySpec {
492
+ /**
493
+ * The maximum value is 100, default is 10.
494
+ */
495
+ offset?: number;
496
+ /**
497
+ * Results for specified page number. Default is 1.
498
+ */
499
+ page?: number;
500
+ }
501
+ export interface IDistanceSpec {
502
+ /**
503
+ * The center of searching range, [lng, lat].
504
+ */
505
+ center: [
506
+ number,
507
+ number
508
+ ];
509
+ /**
510
+ * Radius from center, unit: meter for POIs, kilometers for buildings and venues, cannot exceed 10,000.
511
+ */
512
+ distance: number;
513
+ }
514
+ export interface IOrientationSpec {
515
+ /**
516
+ * User's position, [lng, lat].
517
+ */
518
+ center: [
519
+ number,
520
+ number
521
+ ];
522
+ /**
523
+ * The angle between the user's orientation and true north.
524
+ */
525
+ angle: number;
526
+ /**
527
+ * The radius with 'center' as the center of the circle.
528
+ */
529
+ distance: number;
530
+ }
531
+ export interface IBoundsSpec {
532
+ /** An array of LngLat coordinates in [sw, ne] order */
533
+ bounds: [
534
+ [
535
+ number,
536
+ number
537
+ ],
538
+ [
539
+ number,
540
+ number
541
+ ]
542
+ ];
543
+ }
544
+ export interface IKeywordSpec {
545
+ keywords?: string;
546
+ }
547
+ export interface IOrderSpec {
548
+ orderBy?: PoisOrderBy;
549
+ }
550
+ export interface IBuildingSpec {
551
+ buildingId: string;
552
+ }
553
+ export interface IVenueSpec {
554
+ venueId: string;
555
+ }
556
+ export interface IFloorSpec {
557
+ floorId: string;
558
+ }
559
+ export interface ISharedFloorSpec {
560
+ sharedFloorId: string;
561
+ }
562
+ export interface IOrdinalSpec {
563
+ ordinal: string;
564
+ }
565
+ export interface IOrientationSearchTypeSpec {
566
+ /** The type of POI, default is 'Point' */
567
+ distanceSearchType?: OrientationDistanceSearchType;
568
+ }
569
+ /** common search */
570
+ export interface ISearchByKeywordsOptions extends IKeywordSpec, IQuantitySpec {
571
+ }
572
+ export interface ISearchByDistanceOptions extends IDistanceSpec, ISearchByKeywordsOptions {
573
+ }
574
+ export interface ISearchByBoundsOptions extends IBoundsSpec, ISearchByKeywordsOptions {
575
+ }
576
+ /** building/venue search */
577
+ export interface IBuildingSearchCustomizedOptions {
578
+ bounds?: [
579
+ [
580
+ number,
581
+ number
582
+ ],
583
+ [
584
+ number,
585
+ number
586
+ ]
587
+ ];
588
+ center?: [
589
+ number,
590
+ number
591
+ ];
592
+ distance?: number;
593
+ keywords?: string;
594
+ signal?: boolean;
595
+ visual?: boolean;
596
+ offset?: number;
597
+ page?: number;
598
+ }
627
599
  export interface IVenueSearchCustomizedOptions extends IBuildingSearchCustomizedOptions {
628
600
  }
601
+ /** poi search */
602
+ export interface ISearchByCategoryOptions extends IDistanceSpec, IQuantitySpec {
603
+ category: string;
604
+ }
605
+ export interface ISearchByExcludedCategoriesOptions extends IDistanceSpec, IQuantitySpec {
606
+ excludedCategories: string | string[];
607
+ }
608
+ export type TSearchByCategoryOptions = ISearchByCategoryOptions | ISearchByExcludedCategoriesOptions;
609
+ export interface IPoiSearchByBoundsOptions extends ISearchByBoundsOptions, IOrderSpec {
610
+ }
611
+ export interface ISearchByBuildingOptions extends IBuildingSpec, ISearchByKeywordsOptions, IOrderSpec {
612
+ }
613
+ export interface ISearchByVenueOptions extends IVenueSpec, ISearchByKeywordsOptions, IOrderSpec {
614
+ }
615
+ export type TSearchByFloorOptions = (IFloorSpec & ISearchByKeywordsOptions & IOrderSpec) | (ISharedFloorSpec & ISearchByKeywordsOptions & IOrderSpec);
616
+ export type TSearchByOrientationOptions = (IOrdinalSpec & IOrientationSpec & IQuantitySpec & IOrientationSearchTypeSpec) | (IFloorSpec & IOrientationSpec & IQuantitySpec & IOrientationSearchTypeSpec) | (IBuildingSpec & IOrientationSpec & IQuantitySpec & IOrientationSearchTypeSpec);
617
+ export type TSearchCategoriesOptions = IVenueSpec | IBuildingSpec | IFloorSpec | ISharedFloorSpec | (IBoundsSpec & IKeywordSpec);
618
+ export interface IPoiSearchCustomizedOptions {
619
+ bounds?: [
620
+ [
621
+ number,
622
+ number
623
+ ],
624
+ [
625
+ number,
626
+ number
627
+ ]
628
+ ];
629
+ center?: [
630
+ number,
631
+ number
632
+ ];
633
+ distance?: number;
634
+ category?: string;
635
+ excludedCategories?: string | string[];
636
+ floorId?: string;
637
+ buildingId?: string;
638
+ venueId?: string;
639
+ keywords?: string;
640
+ orderBy?: PoisOrderBy;
641
+ sort?: PoisSortBy;
642
+ distanceSearchType?: DistanceSearchType;
643
+ offset?: number;
644
+ page?: number;
645
+ }
646
+ export interface ISelectedSharedLevelOptions extends ISharedFloor {
647
+ dragPan: boolean | "restrict";
648
+ }
649
+ export interface ISelectedBuildingChangedOptions {
650
+ ordinal: string;
651
+ building: MapGeoJSONFeature;
652
+ dragPan: boolean | "restrict";
653
+ }
654
+ export type TSelectedBuildingChangedOptions = ISelectedBuildingChangedOptions | ISelectedSharedLevelOptions | null;
629
655
  export declare class Indoor extends EventEmitter {
630
656
  private _map;
631
657
  private _features;
658
+ private _allVenuesMap;
632
659
  private _allBuildingsMap;
660
+ private _allSharedLevelsMap;
633
661
  private _curBuildingId;
634
662
  private _curBuildingFeature;
635
- private _ordinal;
636
- private _floorId;
637
- private _floorName;
663
+ private _curSharedLevelId;
664
+ private _floor;
665
+ private _sharedFloor;
638
666
  private _allowOutdoorSwitch;
639
667
  private _allowBuildingSwitch;
640
668
  private _outdoorMapShown;
641
669
  private _originIndoorLayers;
670
+ private _outdoorLayers;
642
671
  private _curVenueId;
643
672
  private _curVenueFeature;
644
- private _buildingHighlightStyle;
645
- private _lowerLayers;
673
+ private _selectedHighlightStyle;
646
674
  private _upperLayers;
675
+ private _middleLayers;
647
676
  private _commonLayers;
677
+ private _lowerLayers;
678
+ private _excludedPoisInMiddle;
648
679
  private _dispatch;
649
680
  private readonly _fitBuildingBounds;
650
681
  private readonly _boundsPadding;
651
682
  private readonly _startWithIndoorView;
652
683
  private _indoorMapLoaded;
653
- private readonly _isVenueMode;
684
+ private _isSelectSharedFloor;
654
685
  private readonly _isMaskMode;
655
686
  private _upperLevels;
687
+ private _middleLevels;
656
688
  private _lowerLevels;
657
689
  private _featureIncomplete;
658
690
  private _dragPan;
659
- private _isNewBuilding;
660
691
  private _buildingBounds;
692
+ private _venueBounds;
661
693
  private _history;
662
694
  private _layerBuildings;
663
- private _upperBuildings;
664
- private _lowerBuildings;
665
695
  private readonly _hiddenBuildings;
696
+ private _maskBuildings;
697
+ private _maskSharedFloors;
666
698
  private _isDestroyed;
667
- private _findBuildingTimeoutId;
668
- private _findBuildingIntervalId;
699
+ private _fetchBuildingTimeoutId;
700
+ private _fetchVenueTimeoutId;
701
+ private _fitBoundsTimer;
702
+ private _abortQueryBuilding;
669
703
  private _debounceRendering;
670
704
  constructor(props: {
671
705
  map: maplibregl$1.Map;
672
- /** @deprecated */
673
- floorSwitchMode?: FloorSwitchMode;
674
706
  fitBuildingBounds?: boolean;
675
707
  boundsPadding?: number | RequireAtLeastOne<PaddingOptions>;
676
708
  maskNonSelectedAreas?: boolean;
677
709
  startWithIndoorView?: boolean;
678
710
  outdoorMapShown?: boolean;
679
- selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
711
+ selectedHighlightStyle?: ISelectedHighlightStyle;
680
712
  });
681
713
  destroy(): void;
682
714
  /**
@@ -692,7 +724,7 @@ export declare class Indoor extends EventEmitter {
692
724
  /**
693
725
  * @description Get the current floor's information.
694
726
  */
695
- get floor(): IFloor;
727
+ get floor(): IFloor | ISharedFloor | null;
696
728
  /**
697
729
  * @description Get the current building's information.
698
730
  * @returns {MapGeoJSONFeature | null}
@@ -723,14 +755,10 @@ export declare class Indoor extends EventEmitter {
723
755
  switchFloorByOrdinal(ordinal: string | null): Promise<void>;
724
756
  setOutdoorMapShown(shown: boolean): void;
725
757
  /**
726
- * @description Update map layout.
758
+ * @description Set the style of the selected floor border. If set to null, the border will be invisible.
759
+ * @param style {ISelectedHighlightStyle | null}
727
760
  */
728
- updateCustomLayers(): void;
729
- /**
730
- * @description Set the style of SelectedBuildingBorder. If set to null, the border will be invisible.
731
- * @param style {ISelectedBuildingBorderStyle | null}
732
- */
733
- setSelectedBuildingBorderStyle(style: ISelectedBuildingBorderStyle | null): void;
761
+ setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): void;
734
762
  /**
735
763
  * @description Listen for the indoor map state, including the changes of venue, building and floor.
736
764
  * @param listener
@@ -751,9 +779,15 @@ export declare class Indoor extends EventEmitter {
751
779
  floorId?: string;
752
780
  featureIncomplete?: boolean;
753
781
  }): Promise<void>;
782
+ selectSharedFloor(sharedFloor: ISharedFloor, venue: MapGeoJSONFeature, options?: {
783
+ featureIncomplete?: boolean;
784
+ }): Promise<void>;
785
+ updateCustomLayers(): void;
754
786
  updateRendering(): void;
755
- panToBuildingCenter(): Promise<unknown>;
756
- fitBuildingBbox(): void;
787
+ panToBuildingCenter(): Promise<void>;
788
+ fitBuildingBbox(): Promise<unknown>;
789
+ panToVenueCenter(): Promise<void>;
790
+ fitVenueBbox(): void;
757
791
  setDragPan(dragPan: boolean | "restrict"): void;
758
792
  setBuildingBounds(bounds: [
759
793
  [
@@ -765,36 +799,52 @@ export declare class Indoor extends EventEmitter {
765
799
  number
766
800
  ]
767
801
  ]): void;
768
- selectBuildingByClickMap(point: PointLike): Promise<void>;
802
+ setVenueBounds(bounds: [
803
+ [
804
+ number,
805
+ number
806
+ ],
807
+ [
808
+ number,
809
+ number
810
+ ]
811
+ ]): void;
812
+ selectByClickMap(point: PointLike): Promise<void>;
813
+ private _updateBuildingBounds;
814
+ private _updateVenueBounds;
769
815
  private _bindMaplibreEventListeners;
770
816
  private _clear;
771
817
  private _getIndoorFeatures;
772
818
  private _getBuildingFloorByOrdinal;
773
819
  private _isNotCurrentFeature;
774
820
  private _setOutdoorVisibility;
775
- private _addCustomLevelFillLayer;
821
+ private _addReserveFloorLayers;
776
822
  private _addBuildingMaskLayer;
777
- private _setBuildingLineOpacity;
778
- private _addBuildingHighlightLayer;
779
- private _filterBuildingHighlight;
780
- private _handleBuildings;
781
- private _getVenueDefaultOrdinal;
823
+ private _updateUnselectedMask;
824
+ private _addSelectedHighlightLayers;
825
+ private _filterSelectedHighlight;
782
826
  private _getBuildingDefaultOrdinal;
783
- private _getBuildingsOfBbox;
784
827
  private _copyOverlapLayers;
828
+ private _copySharedFloorBackgroundLayers;
785
829
  private _updateFeatures;
830
+ private _calExcludedPoisInMiddle;
786
831
  private _updateSelectedFeatures;
787
- private _layerDisplayedBuildings;
788
- private _setDisplayedLevels;
789
- private _filterTiles;
832
+ private _layerFloors;
833
+ private _layerSelectedLevels;
834
+ private _layerUnselectedLevels;
835
+ private _classifyFloors;
836
+ private _setVenueInitOrdinal;
837
+ private _getBuildingDisplayedLevel;
838
+ private _filterLayers;
790
839
  private _filterIndoorLayers;
791
840
  private _updateIndoorState;
792
841
  private _updateFloorState;
793
- private _resetSelectedBuildingLevel;
842
+ private _resetSelectedDisplayedLevel;
794
843
  private _checkAndPanToBuilding;
795
- private _invisibleSelectedBuilding;
796
- private _clearTimers;
844
+ private _queryFeatureByPoint;
845
+ private _queryVisibleFeature;
797
846
  private _queryRenderedFeatures;
847
+ private _dispatchIndoorMapLoaded;
798
848
  }
799
849
  export declare class BuildingFilterControl implements IControl {
800
850
  private _map;
@@ -838,6 +888,7 @@ export declare class BuildingFilterControl implements IControl {
838
888
  private _detectDeviceMode;
839
889
  }
840
890
  export interface IFloorSelectorOptions {
891
+ language: PresetLanguage;
841
892
  style?: IFloorSelectorStyle;
842
893
  enabled?: boolean;
843
894
  }
@@ -861,9 +912,10 @@ export declare class FloorsControl implements IControl {
861
912
  private _$selectorExpanded;
862
913
  private _$selectorFolded;
863
914
  private _componentDidMount;
864
- private _isEnabled;
865
915
  private _visible;
916
+ private _isEnabled;
866
917
  private _dragPan;
918
+ private _language;
867
919
  private _debounceScroll;
868
920
  private _clearScrollEventListener;
869
921
  constructor(indoor: Indoor, options: IFloorSelectorOptions);
@@ -882,11 +934,14 @@ export declare class FloorsControl implements IControl {
882
934
  changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
883
935
  setStyle(style: Partial<IFloorSelectorStyle>): void;
884
936
  private _setVisibility;
885
- private _bindEvents;
937
+ private _addIndoorEventListeners;
938
+ private _updatePrepared;
939
+ private _renderBuildingFloors;
940
+ private _renderSharedLevelFloor;
941
+ private _checkIfShowFloorSelector;
886
942
  private _addMapMoveEventListener;
887
- private _mountFloors;
888
- private _updateFloorSelector;
889
943
  private _clearState;
944
+ private _calcSelectorLayout;
890
945
  private _render;
891
946
  private _hide;
892
947
  private _show;
@@ -998,9 +1053,9 @@ declare class Map$1 {
998
1053
  getMaplibre(): maplibregl$1.Map;
999
1054
  /**
1000
1055
  * @description Get current selected floor info.
1001
- * @return {IFloor | null}
1056
+ * @return {IFloor | ISharedFloor | null}
1002
1057
  */
1003
- get floor(): IFloor | null;
1058
+ get floor(): IFloor | ISharedFloor | null;
1004
1059
  /**
1005
1060
  * @description Get current selected building info.
1006
1061
  * @return {MapGeoJSONFeature | null}
@@ -1058,6 +1113,9 @@ declare class Map$1 {
1058
1113
  selectFloorById(floorId: string, options?: {
1059
1114
  dragPan?: boolean;
1060
1115
  }): Promise<void>;
1116
+ selectSharedFloorById(sharedFloorId: string, options?: {
1117
+ dragPan?: boolean;
1118
+ }): Promise<void>;
1061
1119
  /**
1062
1120
  * @description Select indoor by locating the target building.
1063
1121
  * @param buildingId
@@ -1087,14 +1145,14 @@ declare class Map$1 {
1087
1145
  * @description Listen for mouse click events on indoor POI
1088
1146
  * @param listener
1089
1147
  */
1090
- onPoiClickListener(listener: (param: IPoiEvent) => void): {
1148
+ onPoiClickListener(listener: (param: IPoiClickEvent) => void): {
1091
1149
  unsubscribe: VoidFunction;
1092
1150
  };
1093
1151
  /**
1094
1152
  * @description Listen for mouse click events at a point.
1095
1153
  * @param listener
1096
1154
  */
1097
- onPointClickListener(listener: (result: IPointEvent) => void): {
1155
+ onPointClickListener(listener: (result: IPointClickEvent) => void): {
1098
1156
  unsubscribe: VoidFunction;
1099
1157
  };
1100
1158
  /**
@@ -1104,7 +1162,7 @@ declare class Map$1 {
1104
1162
  onMapChangeListener(listener: (params: {
1105
1163
  venue: MapGeoJSONFeature | null;
1106
1164
  building: MapGeoJSONFeature | null;
1107
- floor: IFloor;
1165
+ floor: IFloor | ISharedFloor | null;
1108
1166
  }) => void): {
1109
1167
  unsubscribe: VoidFunction;
1110
1168
  };
@@ -1114,10 +1172,12 @@ declare class Map$1 {
1114
1172
  */
1115
1173
  switchTheme(theme: string): void;
1116
1174
  /**
1175
+ * @deprecated Use 'setSelectedHighlightStyle' instead.
1117
1176
  * @description Set the SelectedBuildingBorder's style. If set to null, the border will be invisible.
1118
- * @param style {ISelectedBuildingBorderStyle | null}
1177
+ * @param style {ISelectedHighlightStyle | null}
1119
1178
  */
1120
- setSelectedBuildingBorderStyle(style: ISelectedBuildingBorderStyle | null): this;
1179
+ setSelectedBuildingBorderStyle(style: ISelectedHighlightStyle | null): this;
1180
+ setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): this;
1121
1181
  private _setup;
1122
1182
  private _getStyleUrl;
1123
1183
  private _setIndoorFilter;
@@ -1132,11 +1192,12 @@ declare class Map$1 {
1132
1192
  * @description Query building features within the center rectangle(width: 1/2 width of map view, height: 1/2 height of map view) of map.
1133
1193
  * @returns Map<buildingId, buildingFeature>
1134
1194
  */
1135
- private _getCenterBuildingsMap;
1195
+ private _getCenterBuildingUnitsMap;
1136
1196
  private _bindMapClickListener;
1137
1197
  private _bindTokenChangedListener;
1138
1198
  private _handleSearchError;
1139
1199
  private _setMaskEnabled;
1200
+ private _installRtlTextPlugin;
1140
1201
  private _destroy;
1141
1202
  }
1142
1203
  export declare class Marker {
@@ -1200,7 +1261,7 @@ export declare class Marker {
1200
1261
  * @param callback
1201
1262
  */
1202
1263
  on(eventKey: keyof MapLayerEventType, callback: (marker: MapGeoJSONFeature) => void): {
1203
- off: () => maplibregl$1.Map;
1264
+ off: () => void;
1204
1265
  };
1205
1266
  /**
1206
1267
  * @description Filter marker by custom properties.
@@ -1261,22 +1322,19 @@ export declare class Marker {
1261
1322
  }
1262
1323
  export declare class Poi {
1263
1324
  private _map;
1325
+ private _currentStyle;
1264
1326
  private _layerIds;
1265
1327
  private _dispatch;
1266
- private _debounceQueryFeatures;
1328
+ private _listeners;
1267
1329
  constructor(map: maplibregl$1.Map);
1268
1330
  destroy(): void;
1269
- /**
1270
- * @description Listen for POI click events.
1271
- * @param listener
1272
- */
1273
- onPoiClick(listener: (param: IPoiEvent) => void): {
1331
+ onPoiClick(listener: (param: IPoiClickEvent) => void): {
1274
1332
  unsubscribe: VoidFunction;
1275
1333
  };
1276
- private _bindEvents;
1277
1334
  private _queryPoiLayers;
1278
- private _initPoiClick;
1279
- private _getFloorDataByFloorId;
1335
+ private _bindPoiClickEvent;
1336
+ private _queryIndoorFeaturesBySharedFloor;
1337
+ private _queryIndoorFeaturesByFloor;
1280
1338
  }
1281
1339
  export interface IRouteMarkers {
1282
1340
  from: string | null;
@@ -1315,6 +1373,7 @@ export declare class RoutePainter {
1315
1373
  private _curVenue;
1316
1374
  private _curBuilding;
1317
1375
  private _curOrdinal;
1376
+ private _renderBoundaryLayer;
1318
1377
  constructor(maplibreMap: maplibregl$1.Map, routeStyle?: TRouteStyleOptions);
1319
1378
  /**
1320
1379
  * @description Set the style of the route.
@@ -1462,36 +1521,20 @@ export declare class VenuesService {
1462
1521
  searchByIds(ids: string | string[]): TPromiseVenues;
1463
1522
  /**
1464
1523
  * @description Search venues by center and distance.
1465
- * @param keywords
1466
- * @param center
1467
- * @param distance Radius from center, unit is kilometers.
1468
- * @param offset The maximum value is 100, default is 10.
1469
- * @param page Default is 1.
1524
+ * @param {ISearchByDistanceOptions} options
1470
1525
  */
1471
- searchByDistance(keywords: string, center: [
1472
- number,
1473
- number
1474
- ], distance: number, offset?: number, page?: number): TPromiseVenues;
1526
+ searchByDistance(options: ISearchByDistanceOptions): TPromiseVenues;
1475
1527
  /**
1476
- * @description Search venues in specified bbox.
1477
- * @param keywords
1478
- * @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
1479
- * @param offset The maximum value is 100, default is 10.
1480
- * @param page Default is 1.
1528
+ * @description Search venues in a rectangular area.
1529
+ * @param {ISearchByBoundsOptions} options
1481
1530
  */
1482
- searchByBbox(keywords: string, bbox: [
1483
- number,
1484
- number,
1485
- number,
1486
- number
1487
- ], offset?: number, page?: number): TPromiseVenues;
1531
+ searchByBounds(options: ISearchByBoundsOptions): TPromiseVenues;
1488
1532
  /**
1489
1533
  * @description Search venues by global.
1490
- * @param keywords
1491
- * @param offset The maximum value is 100, default is 10.
1492
- * @param page Default is 1.
1534
+ * @param {ISearchByKeywordsOptions} options
1493
1535
  */
1494
- searchByGlobal(keywords: string, offset?: number, page?: number): TPromiseVenues;
1536
+ searchByGlobal(options: ISearchByKeywordsOptions): TPromiseVenues;
1537
+ searchBySharedFloorId(sharedFloorId: string): TPromiseVenues;
1495
1538
  search(options: IVenueSearchCustomizedOptions): TPromiseVenues;
1496
1539
  private _changedRes;
1497
1540
  }
@@ -1506,28 +1549,19 @@ export declare class BuildingsService {
1506
1549
  searchByIds(ids: string | string[]): TPromiseBuildings;
1507
1550
  /**
1508
1551
  * @description Search buildings by center and distance.
1509
- * @param keywords
1510
- * @param center
1511
- * @param distance Radius from center, unit is kilometers.
1512
- * @param offset The maximum value is 100, default is 10.
1513
- * @param page Default is 1.
1552
+ * @param {ISearchByDistanceOptions} options
1514
1553
  */
1515
- searchByDistance(keywords: string, center: number[], distance: number, offset?: number, page?: number): TPromiseBuildings;
1554
+ searchByDistance(options: ISearchByDistanceOptions): TPromiseBuildings;
1516
1555
  /**
1517
- * @description Search buildings in specified bbox.
1518
- * @param keywords
1519
- * @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
1520
- * @param offset The maximum value is 100, default is 10.
1521
- * @param page Default is 1.
1556
+ * @description Search buildings in a rectangular area.
1557
+ * @param {ISearchByBoundsOptions} options
1522
1558
  */
1523
- searchByBbox(keywords: string, bbox: number[], offset?: number, page?: number): TPromiseBuildings;
1559
+ searchByBounds(options: ISearchByBoundsOptions): TPromiseBuildings;
1524
1560
  /**
1525
1561
  * @description Search buildings global.
1526
- * @param keywords
1527
- * @param offset The maximum value is 100, default is 10.
1528
- * @param page Default is 1.
1562
+ * @param {ISearchByKeywordsOptions} options
1529
1563
  */
1530
- searchByGlobal(keywords: string, offset?: number, page?: number): TPromiseBuildings;
1564
+ searchByGlobal(options: ISearchByKeywordsOptions): TPromiseBuildings;
1531
1565
  /**
1532
1566
  * @description Search building by floor id.
1533
1567
  * @param floorId
@@ -1537,9 +1571,7 @@ export declare class BuildingsService {
1537
1571
  private _changedRes;
1538
1572
  }
1539
1573
  export declare class PoisService {
1540
- private _api;
1541
- private _apiV4;
1542
- private _categoriesApi;
1574
+ private _poisApi;
1543
1575
  private _categoriesGroupApi;
1544
1576
  private _request;
1545
1577
  constructor();
@@ -1547,52 +1579,52 @@ export declare class PoisService {
1547
1579
  * @description Search POIs by id[s].
1548
1580
  * @param ids Single id string or string ids in array. The number of IDs cannot exceed 100.
1549
1581
  */
1550
- searchByIds(ids: string | string[]): TPromisePois;
1582
+ searchByIds(ids: string | string[]): TPromisePois<IPoi | ISharedPoi>;
1551
1583
  /**
1552
1584
  * @description Search POIs by radius distance of the center point.
1553
- * @param options {IPoiSearchByDistanceOptions}
1585
+ * @param options {ISearchByDistanceOptions}
1554
1586
  */
1555
- searchByDistance(options: IPoiSearchByDistanceOptions): TPromisePois;
1587
+ searchByDistance(options: ISearchByDistanceOptions): TPromisePois<IPoi | ISharedPoi>;
1556
1588
  /**
1557
1589
  * @description Search POIs in a rectangular area.
1558
1590
  * @param options {IPoiSearchByBoundsOptions}
1559
1591
  * 'orderBy' cannot be used with 'keywords'.
1560
1592
  */
1561
- searchByBounds(options: IPoiSearchByBoundsOptions): TPromisePois;
1593
+ searchByBounds(options: IPoiSearchByBoundsOptions): TPromisePois<IPoi | ISharedPoi>;
1562
1594
  /**
1563
1595
  * @description Search POIs of a building.
1564
- * @param options {IPoiSearchByBuildingOptions}
1596
+ * @param options {ISearchByBuildingOptions}
1565
1597
  * 'orderBy' cannot be used with 'keywords'.
1566
1598
  */
1567
- searchByBuilding(options: IPoiSearchByBuildingOptions): TPromisePois;
1599
+ searchByBuilding(options: ISearchByBuildingOptions): TPromisePois<IPoi>;
1568
1600
  /**
1569
1601
  * @description Search POIs of a venue.
1570
- * @param options {IPoiSearchByVenueOptions}
1602
+ * @param options {ISearchByVenueOptions}
1571
1603
  * 'orderBy' cannot be used with 'keywords'.
1572
1604
  */
1573
- searchByVenue(options: IPoiSearchByVenueOptions): TPromisePois;
1605
+ searchByVenue(options: ISearchByVenueOptions): TPromisePois<IPoi | ISharedPoi>;
1574
1606
  /**
1575
1607
  * @description Search POIs of a floor.
1576
- * @param options {IPoiSearchByFloorOptions}
1608
+ * @param options {TSearchByFloorOptions}
1577
1609
  * 'orderBy' cannot be used with 'keywords'.
1578
1610
  */
1579
- searchByFloor(options: IPoiSearchByFloorOptions): TPromisePois;
1580
- /**
1581
- * @description Search poi categories by venue/building/floor/bounds.
1582
- * @param options
1583
- */
1584
- searchCategories(options: TSearchCategoriesOptions): TPromiseCategories;
1611
+ searchByFloor(options: TSearchByFloorOptions): TPromisePois<IPoi | ISharedPoi>;
1585
1612
  /**
1586
1613
  * @description Search surrounding POIs based on the user's location and orientation.
1587
- * @param options {TPoiSearchByOrientationOptions}
1614
+ * @param {TSearchByOrientationOptions} options
1588
1615
  */
1589
- searchByOrientation(options: TPoiSearchByOrientationOptions): TPromiseOrientationPois;
1616
+ searchByOrientation(options: TSearchByOrientationOptions): TPromiseOrientationPois;
1590
1617
  /**
1591
1618
  * @description Search POIs by category or excluded categories.
1592
- * @param options {TPoiSearchByCategoryOptions}
1619
+ * @param {TSearchByCategoryOptions} options
1620
+ */
1621
+ searchByCategory(options: TSearchByCategoryOptions): TPromisePois<IPoi | ISharedPoi>;
1622
+ /**
1623
+ * @description Search poi categories by venue id, building id, or floor id.
1624
+ * @param {TSearchCategoriesOptions} options
1593
1625
  */
1594
- searchByCategory(options: TPoiSearchByCategoryOptions): TPromisePois;
1595
- search(options: IPoiSearchCustomizedOptions): TPromisePois;
1626
+ searchCategories(options: TSearchCategoriesOptions): TPromiseCategories;
1627
+ search(options: IPoiSearchCustomizedOptions): TPromisePois<IPoi | ISharedPoi>;
1596
1628
  private _changedRes;
1597
1629
  }
1598
1630
  export declare class RouteService {
@@ -1612,6 +1644,8 @@ export declare const PAGE: number;
1612
1644
  * @param language {string} window.navigator.language
1613
1645
  */
1614
1646
  export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
1647
+ export declare const ASSISTANT_LAYER_INDOOR_FLOORS = "reserve_mapxus-level-fill";
1648
+ export declare const ASSISTANT_LAYER_SHARED_FLOORS = "reserve_mapxus-shared-level-fill";
1615
1649
  /**
1616
1650
  * Get access token
1617
1651
  * @param appId