@mapxus/mapxus-map-jp 8.4.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 {
76
120
  }
77
- export interface IBuilding {
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 {
163
+ }
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,29 +244,28 @@ 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
- export interface IPlatformIos {
255
+ export interface IPlatformCommon {
153
256
  sdkVersion: string;
154
257
  identifier: string;
258
+ }
259
+ export interface IPlatformIos extends IPlatformCommon {
155
260
  bundleId: string;
156
261
  }
157
- export interface IPlatformAndroid {
158
- sdkVersion: string;
159
- identifier: string;
262
+ export interface IPlatformAndroid extends IPlatformCommon {
160
263
  sha1: string;
161
264
  packageName: string;
162
265
  }
163
266
  export type TPlatform = IPlatformIos | IPlatformAndroid;
164
- export interface IMapOption {
267
+ export interface IMapOtherOptions {
165
268
  map: maplibregl$1.Map;
166
- appId: string;
167
- secret: string;
168
269
  floorSelectorEnabled?: boolean;
169
270
  buildingSelectorEnabled?: boolean;
170
271
  /**
@@ -182,6 +283,7 @@ export interface IMapOption {
182
283
  * the priority is: poiId > floorId > buildingId > venueId.
183
284
  */
184
285
  floorId?: string;
286
+ sharedFloorId?: string;
185
287
  /**
186
288
  * @description Initialize the map with POI as the center point, use it with maplibregl.Map 'zoom' option.
187
289
  * 'venueId', 'buildingId', 'floorId', 'poiId' are mutually exclusive,
@@ -192,13 +294,8 @@ export interface IMapOption {
192
294
  theme?: ThemeType | string;
193
295
  /** @deprecated 'collapseCopyright' will be removed soon. You'd not use it. */
194
296
  collapseCopyright?: boolean;
195
- selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
297
+ selectedHighlightStyle?: ISelectedHighlightStyle;
196
298
  floorSelectorStyle?: IFloorSelectorStyle;
197
- /**
198
- * @description Switch floors by venue/building, default by venue.
199
- * @deprecated 'floorSwitchMode' will be removed soon.
200
- */
201
- floorSwitchMode?: FloorSwitchMode;
202
299
  /**
203
300
  * @description Whether unselected buildings are masked, default is false.
204
301
  */
@@ -220,256 +317,52 @@ export interface IMapOption {
220
317
  autoSelectBuilding?: boolean;
221
318
  transformRequest?: maplibregl$1.RequestTransformFunction | null;
222
319
  mapxusLogoEnabled?: boolean;
223
- platform?: TPlatform;
224
- }
225
- export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
226
- export interface IMarkerOptions {
227
- lngLat: [
228
- number,
229
- number
230
- ];
231
- properties?: {
232
- [k: string]: string;
233
- };
234
- }
235
- export interface IMarkerOptionsWithFeatureId extends IMarkerOptions {
236
- featureId: number;
237
- }
238
- export interface IPoiEvent {
239
- coordinate: LngLat;
240
- poi: MapGeoJSONFeature;
241
- building: MapGeoJSONFeature | null;
242
- venue: MapGeoJSONFeature | null;
243
- floor: IFloor;
244
- }
245
- export interface IPointEvent {
246
- coordinate: LngLat;
247
- point: PointLike;
248
- }
249
- export declare enum DistanceSearchType {
250
- POINT = "Point",
251
- POLYGON = "Polygon"
252
320
  }
253
- export declare enum OrientationDistanceSearchType {
254
- POINT = "Point",
255
- POLYGON = "Polygon",
256
- GATE = "Gate"
257
- }
258
- export interface IBoundsSpec {
259
- /** An array of LngLat coordinates in [sw, ne] order */
260
- bounds: [
261
- [
262
- number,
263
- number
264
- ],
265
- [
266
- number,
267
- number
268
- ]
269
- ];
270
- }
271
- export interface IKeywordSpec {
272
- keywords?: string;
273
- }
274
- export interface IBuildingSpec {
275
- buildingId: string;
276
- }
277
- export interface IVenueSpec {
278
- venueId: string;
279
- }
280
- export interface IFloorSpec {
281
- floorId: string;
282
- }
283
- export type TSearchCategoriesOptions = IVenueSpec | IBuildingSpec | IFloorSpec | (IBoundsSpec & IKeywordSpec);
284
- export interface IPoi {
285
- accessibilityDetail: IMultilingualName;
286
- buildingId: string;
287
- category: string[];
288
- distance: number;
289
- floor: string;
290
- floorId: string;
291
- id: string;
292
- location: ILocation;
293
- name: IMultilingualName;
294
- osmRefId: number;
295
- poiId: string;
296
- venueId: string;
297
- descriptions?: IMultilingualName;
298
- email?: string;
299
- openingHours?: string;
300
- phone?: string;
301
- website?: string;
302
- }
303
- export interface IResponsePois {
304
- pois: IPoi[];
305
- total: number;
306
- }
307
- export type TPromisePois = AxiosPromise<IResponse<IResponsePois>>;
308
- export type TPromiseCategories = AxiosPromise<IResponse<IPoiCategory[]>>;
309
- export type TPromiseOrientationPois = AxiosPromise<IResponse<IOrientationPoi[]>>;
310
- export interface IPoiCategory {
311
- category: string;
312
- description: string | null;
313
- id: string;
314
- title: Partial<Record<keyof IMultilingualName, string>>;
315
- }
316
- export interface IOrientationPoi {
317
- angle: number;
318
- buildingId: string;
319
- category: string[];
320
- distance: number;
321
- distanceSource: string;
322
- floor: string;
323
- floorId: string;
324
- id: string;
325
- location: ILocation;
326
- name: IMultilingualName;
327
- osmRefId: number;
328
- poiId: string;
329
- description?: string;
330
- email?: string;
331
- openingHours?: string;
332
- phone?: string;
333
- website?: string;
334
- }
335
- export interface ISearchDistance {
336
- /**
337
- * The center of searching range, [lng, lat].
338
- */
339
- center: [
340
- number,
341
- number
342
- ];
343
- /**
344
- * Radius from center, unit is meter, cannot exceed 10,000.
345
- */
346
- distance: number;
347
- /**
348
- * The maximum value is 100, default is 10.
349
- */
350
- offset?: number;
351
- /**
352
- * Results for specified page number. Default is 1.
353
- */
354
- page?: number;
355
- }
356
- export interface IPoiSearchByCategoryOptions extends ISearchDistance {
357
- category: string;
358
- }
359
- export interface IPoiSearchByExcludedCategoriesOptions extends ISearchDistance {
360
- excludedCategories: string | string[];
361
- }
362
- export type TPoiSearchByCategoryOptions = IPoiSearchByCategoryOptions | IPoiSearchByExcludedCategoriesOptions;
363
- export interface IPoiSearchByDistanceOptions extends ISearchDistance {
364
- /**
365
- * Keywords of POI name.
366
- */
367
- keywords?: string;
368
- }
369
- export interface ISearchOrientation {
370
- /**
371
- * User's position, [lng, lat].
372
- */
373
- center: [
374
- number,
375
- number
376
- ];
377
- /**
378
- * The angle between the user's orientation and true north.
379
- */
380
- angle: number;
381
- /**
382
- * The radius with 'center' as the center of the circle.
383
- */
384
- distance: number;
385
- /**
386
- * The type of POI, default is 'Point'.
387
- */
388
- distanceSearchType?: OrientationDistanceSearchType;
389
- }
390
- export interface IPoiSearchByOrientationAndBuildingOptions extends ISearchOrientation {
391
- buildingId: string;
392
- }
393
- export interface IPoiSearchByOrientationAndFloorOptions extends ISearchOrientation {
394
- floorId: string;
395
- }
396
- export interface IPoiSearchByOrientationAndOrdinalOptions extends ISearchOrientation {
397
- ordinal: string;
398
- }
399
- export type TPoiSearchByOrientationOptions = IPoiSearchByOrientationAndBuildingOptions | IPoiSearchByOrientationAndFloorOptions | IPoiSearchByOrientationAndOrdinalOptions;
400
- export declare enum PoisOrderBy {
401
- DEFAULT_NAME = "DefaultName"
402
- }
403
- export declare enum PoisSortBy {
404
- ABSOLUTE_DISTANCE = "AbsoluteDistance",
405
- ACTUAL_DISTANCE = "ActualDistance"
406
- }
407
- export interface ISearchKeywords {
408
- keywords?: string;
409
- /**
410
- * Quantity per page, the maximum is 100, default is 10.
411
- */
412
- offset?: number;
413
- /**
414
- * Results for specified page number. Default is 1.
415
- */
416
- page?: number;
417
- }
418
- export interface IPoiSearchByBuildingOptions extends ISearchKeywords {
419
- buildingId: string;
420
- orderBy?: PoisOrderBy;
421
- }
422
- export interface IPoiSearchByVenueOptions extends ISearchKeywords {
423
- venueId: string;
424
- orderBy?: PoisOrderBy;
425
- }
426
- export interface IPoiSearchByFloorOptions extends ISearchKeywords {
427
- floorId: string;
428
- orderBy?: PoisOrderBy;
429
- }
430
- export interface IPoiSearchByBoundsOptions extends ISearchKeywords {
431
- /**
432
- * An array of LngLat coordinates in [sw, ne] order
433
- */
434
- bounds: [
435
- [
436
- number,
437
- number
438
- ],
439
- [
440
- number,
441
- number
442
- ]
443
- ];
444
- orderBy?: PoisOrderBy;
321
+ export interface IMapAccessWithAppId {
322
+ appId: string;
323
+ secret: string;
324
+ /**
325
+ * get accessToken of the specific platform(ios or android), optional, default is web
326
+ * @private
327
+ */
328
+ platform?: TPlatform;
445
329
  }
446
- export interface IPoiSearchCustomizedOptions {
447
- bounds?: [
448
- [
449
- number,
450
- number
451
- ],
452
- [
453
- number,
454
- number
455
- ]
456
- ];
457
- 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: [
458
346
  number,
459
347
  number
460
348
  ];
461
- distance?: number;
462
- category?: string;
463
- excludedCategories?: string | string[];
464
- floorId?: string;
465
- buildingId?: string;
466
- venueId?: string;
467
- keywords?: string;
468
- orderBy?: PoisOrderBy;
469
- sort?: PoisSortBy;
470
- distanceSearchType?: DistanceSearchType;
471
- offset?: number;
472
- 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;
473
366
  }
474
367
  export interface ITokenInfo {
475
368
  "app:name": string;
@@ -502,6 +395,7 @@ export interface IInstruction {
502
395
  number,
503
396
  number
504
397
  ];
398
+ on_shared_floor: boolean;
505
399
  ordinal: number;
506
400
  sign: number;
507
401
  street_name: string;
@@ -539,17 +433,18 @@ export interface IResponseRoute {
539
433
  infos: IRouteInfo | null;
540
434
  paths: IRoutePath[];
541
435
  }
542
- 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
+ }
543
442
  export interface IRouteSearchOptions {
544
443
  /**
545
444
  * @description Points are in order, from -> stops -> to.
546
445
  * The length of points must be: 1 < {points.length} < 6.
547
446
  */
548
- points: Array<{
549
- lat: number;
550
- lon: number;
551
- floorId?: string;
552
- }>;
447
+ points: IRoutePoint[];
553
448
  /**
554
449
  * @description Default is "foot".
555
450
  */
@@ -559,12 +454,16 @@ export interface IRouteSearchOptions {
559
454
  */
560
455
  locale?: PresetLanguage;
561
456
  }
562
- 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;
563
463
  buildingOutlineId: number;
564
464
  defaultFloor?: string;
565
465
  floors: IBuildingInlineFloor[];
566
466
  id: string;
567
- labelCenter: ILocation;
568
467
  name: IMultilingualName;
569
468
  point: {
570
469
  type: string;
@@ -573,92 +472,243 @@ export interface IVenueInlineBuilding {
573
472
  number
574
473
  ];
575
474
  };
576
- signalMap: boolean;
577
- visualMap: boolean;
578
475
  }
579
- export interface IVenue {
580
- address: IMultilingualAddress;
581
- bbox: IBbox;
476
+ export interface IVenue extends IBuildingBasicInfo, IBusinessInfo, IMapServices {
582
477
  buildings: IVenueInlineBuilding[];
583
- businessStatus?: {
584
- status: string;
585
- };
586
- country: string;
587
478
  defaultBuilding?: string;
588
479
  id: string;
589
- labelCenter: ILocation;
590
- name: IMultilingualName;
591
480
  organization: string[];
592
481
  owner: string;
593
- publicData?: string[];
594
- photos?: object[];
595
- region: string;
596
482
  restricted: boolean;
597
- signalMap: boolean;
598
- totalPhotoCount?: number;
599
- type: string;
483
+ sharedFloors: IVenueInlineSharedFloor[];
600
484
  venueOutlineId: number;
601
- visualMap: boolean;
602
485
  }
603
486
  export interface IResponseVenues {
604
487
  venues: IVenue[];
605
488
  total: number;
606
489
  }
607
- 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
+ }
608
599
  export interface IVenueSearchCustomizedOptions extends IBuildingSearchCustomizedOptions {
609
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;
610
655
  export declare class Indoor extends EventEmitter {
611
656
  private _map;
612
657
  private _features;
613
- private _allBuildings;
658
+ private _allVenuesMap;
659
+ private _allBuildingsMap;
660
+ private _allSharedLevelsMap;
614
661
  private _curBuildingId;
615
662
  private _curBuildingFeature;
616
- private _ordinal;
617
- private _floorId;
618
- private _floorName;
663
+ private _curSharedLevelId;
664
+ private _floor;
665
+ private _sharedFloor;
619
666
  private _allowOutdoorSwitch;
620
667
  private _allowBuildingSwitch;
621
668
  private _outdoorMapShown;
622
669
  private _originIndoorLayers;
670
+ private _outdoorLayers;
623
671
  private _curVenueId;
624
672
  private _curVenueFeature;
625
- private _buildingHighlightStyle;
626
- private _lowerLayers;
673
+ private _selectedHighlightStyle;
627
674
  private _upperLayers;
675
+ private _middleLayers;
628
676
  private _commonLayers;
677
+ private _lowerLayers;
678
+ private _excludedPoisInMiddle;
629
679
  private _dispatch;
630
680
  private readonly _fitBuildingBounds;
631
681
  private readonly _boundsPadding;
632
682
  private readonly _startWithIndoorView;
633
- private _maplibreMapLoaded;
634
683
  private _indoorMapLoaded;
635
- private readonly _isVenueMode;
684
+ private _isSelectSharedFloor;
636
685
  private readonly _isMaskMode;
637
686
  private _upperLevels;
687
+ private _middleLevels;
638
688
  private _lowerLevels;
639
689
  private _featureIncomplete;
640
690
  private _dragPan;
641
- private _isNewBuilding;
642
691
  private _buildingBounds;
692
+ private _venueBounds;
643
693
  private _history;
644
694
  private _layerBuildings;
645
- private _upperBuildings;
646
- private _lowerBuildings;
647
695
  private readonly _hiddenBuildings;
696
+ private _maskBuildings;
697
+ private _maskSharedFloors;
648
698
  private _isDestroyed;
649
- private _findBuildingTimeoutId;
650
- private _findBuildingIntervalId;
699
+ private _fetchBuildingTimeoutId;
700
+ private _fetchVenueTimeoutId;
701
+ private _fitBoundsTimer;
702
+ private _abortQueryBuilding;
651
703
  private _debounceRendering;
652
704
  constructor(props: {
653
705
  map: maplibregl$1.Map;
654
- /** @deprecated */
655
- floorSwitchMode?: FloorSwitchMode;
656
706
  fitBuildingBounds?: boolean;
657
707
  boundsPadding?: number | RequireAtLeastOne<PaddingOptions>;
658
708
  maskNonSelectedAreas?: boolean;
659
709
  startWithIndoorView?: boolean;
660
710
  outdoorMapShown?: boolean;
661
- selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
711
+ selectedHighlightStyle?: ISelectedHighlightStyle;
662
712
  });
663
713
  destroy(): void;
664
714
  /**
@@ -674,7 +724,7 @@ export declare class Indoor extends EventEmitter {
674
724
  /**
675
725
  * @description Get the current floor's information.
676
726
  */
677
- get floor(): IFloor;
727
+ get floor(): IFloor | ISharedFloor | null;
678
728
  /**
679
729
  * @description Get the current building's information.
680
730
  * @returns {MapGeoJSONFeature | null}
@@ -705,14 +755,10 @@ export declare class Indoor extends EventEmitter {
705
755
  switchFloorByOrdinal(ordinal: string | null): Promise<void>;
706
756
  setOutdoorMapShown(shown: boolean): void;
707
757
  /**
708
- * @description Update map layout.
709
- */
710
- updateCustomLayers(): void;
711
- /**
712
- * @description Set the style of SelectedBuildingBorder. If set to null, the border will be invisible.
713
- * @param style {ISelectedBuildingBorderStyle | null}
758
+ * @description Set the style of the selected floor border. If set to null, the border will be invisible.
759
+ * @param style {ISelectedHighlightStyle | null}
714
760
  */
715
- setSelectedBuildingBorderStyle(style: ISelectedBuildingBorderStyle | null): void;
761
+ setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): void;
716
762
  /**
717
763
  * @description Listen for the indoor map state, including the changes of venue, building and floor.
718
764
  * @param listener
@@ -733,9 +779,15 @@ export declare class Indoor extends EventEmitter {
733
779
  floorId?: string;
734
780
  featureIncomplete?: boolean;
735
781
  }): Promise<void>;
782
+ selectSharedFloor(sharedFloor: ISharedFloor, venue: MapGeoJSONFeature, options?: {
783
+ featureIncomplete?: boolean;
784
+ }): Promise<void>;
785
+ updateCustomLayers(): void;
736
786
  updateRendering(): void;
737
- panToBuildingCenter(): Promise<unknown>;
738
- fitBuildingBbox(): void;
787
+ panToBuildingCenter(): Promise<void>;
788
+ fitBuildingBbox(): Promise<unknown>;
789
+ panToVenueCenter(): Promise<void>;
790
+ fitVenueBbox(): void;
739
791
  setDragPan(dragPan: boolean | "restrict"): void;
740
792
  setBuildingBounds(bounds: [
741
793
  [
@@ -747,35 +799,52 @@ export declare class Indoor extends EventEmitter {
747
799
  number
748
800
  ]
749
801
  ]): void;
750
- selectBuildingByClickMap(point: PointLike): Promise<void>;
751
- private _loadData;
752
- private _init;
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;
815
+ private _bindMaplibreEventListeners;
753
816
  private _clear;
754
817
  private _getIndoorFeatures;
755
818
  private _getBuildingFloorByOrdinal;
756
819
  private _isNotCurrentFeature;
757
820
  private _setOutdoorVisibility;
758
- private _addCustomLevelFillLayer;
821
+ private _addReserveFloorLayers;
759
822
  private _addBuildingMaskLayer;
760
- private _setBuildingLineOpacity;
761
- private _addBuildingHighlightLayer;
762
- private _filterBuildingHighlight;
763
- private _handleBuildings;
764
- private _getVenueDefaultOrdinal;
823
+ private _updateUnselectedMask;
824
+ private _addSelectedHighlightLayers;
825
+ private _filterSelectedHighlight;
765
826
  private _getBuildingDefaultOrdinal;
766
- private _getBuildingsOfBbox;
767
827
  private _copyOverlapLayers;
828
+ private _copySharedFloorBackgroundLayers;
768
829
  private _updateFeatures;
769
- private _layerDisplayedBuildings;
770
- private _setDisplayedLevels;
771
- private _filterTiles;
830
+ private _calExcludedPoisInMiddle;
831
+ private _updateSelectedFeatures;
832
+ private _layerFloors;
833
+ private _layerSelectedLevels;
834
+ private _layerUnselectedLevels;
835
+ private _classifyFloors;
836
+ private _setVenueInitOrdinal;
837
+ private _getBuildingDisplayedLevel;
838
+ private _filterLayers;
772
839
  private _filterIndoorLayers;
773
840
  private _updateIndoorState;
774
841
  private _updateFloorState;
775
- private _resetSelectedBuildingLevel;
842
+ private _resetSelectedDisplayedLevel;
776
843
  private _checkAndPanToBuilding;
777
- private _invisibleSelectedBuilding;
778
- private _clearTimers;
844
+ private _queryFeatureByPoint;
845
+ private _queryVisibleFeature;
846
+ private _queryRenderedFeatures;
847
+ private _dispatchIndoorMapLoaded;
779
848
  }
780
849
  export declare class BuildingFilterControl implements IControl {
781
850
  private _map;
@@ -819,6 +888,7 @@ export declare class BuildingFilterControl implements IControl {
819
888
  private _detectDeviceMode;
820
889
  }
821
890
  export interface IFloorSelectorOptions {
891
+ language: PresetLanguage;
822
892
  style?: IFloorSelectorStyle;
823
893
  enabled?: boolean;
824
894
  }
@@ -842,9 +912,10 @@ export declare class FloorsControl implements IControl {
842
912
  private _$selectorExpanded;
843
913
  private _$selectorFolded;
844
914
  private _componentDidMount;
845
- private _isEnabled;
846
915
  private _visible;
916
+ private _isEnabled;
847
917
  private _dragPan;
918
+ private _language;
848
919
  private _debounceScroll;
849
920
  private _clearScrollEventListener;
850
921
  constructor(indoor: Indoor, options: IFloorSelectorOptions);
@@ -863,11 +934,14 @@ export declare class FloorsControl implements IControl {
863
934
  changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
864
935
  setStyle(style: Partial<IFloorSelectorStyle>): void;
865
936
  private _setVisibility;
866
- private _bindEvents;
937
+ private _addIndoorEventListeners;
938
+ private _updatePrepared;
939
+ private _renderBuildingFloors;
940
+ private _renderSharedLevelFloor;
941
+ private _checkIfShowFloorSelector;
867
942
  private _addMapMoveEventListener;
868
- private _mountFloors;
869
- private _updateFloorSelector;
870
943
  private _clearState;
944
+ private _calcSelectorLayout;
871
945
  private _render;
872
946
  private _hide;
873
947
  private _show;
@@ -935,22 +1009,23 @@ export declare class SwitchOutdoorHandler {
935
1009
  get isEnabled(): boolean;
936
1010
  }
937
1011
  declare class Map$1 {
938
- private _appId;
939
1012
  private _map;
940
1013
  private _indoor;
941
1014
  private _poi;
942
1015
  private _floorsControl;
943
1016
  private _buildingFilterControl;
944
1017
  private _attributionControl;
945
- private _initialHiddenLayers;
946
1018
  private _language;
947
1019
  private _dispatch;
948
1020
  private _fitBuildingBounds;
949
1021
  private _history;
950
1022
  private _hiddenBuildings;
951
1023
  private _debounceHTTPErrorHandler;
952
- private _debounceTilesFilter;
953
1024
  private _transformRequestHandler;
1025
+ private _tokenRefreshingPromise;
1026
+ private _request;
1027
+ private _$mask;
1028
+ private _cancelTokenChangedListener;
954
1029
  isDestroyed: boolean;
955
1030
  switchOutdoor: SwitchOutdoorHandler;
956
1031
  switchBuilding: SwitchBuildingHandler;
@@ -978,9 +1053,9 @@ declare class Map$1 {
978
1053
  getMaplibre(): maplibregl$1.Map;
979
1054
  /**
980
1055
  * @description Get current selected floor info.
981
- * @return {IFloor | null}
1056
+ * @return {IFloor | ISharedFloor | null}
982
1057
  */
983
- get floor(): IFloor | null;
1058
+ get floor(): IFloor | ISharedFloor | null;
984
1059
  /**
985
1060
  * @description Get current selected building info.
986
1061
  * @return {MapGeoJSONFeature | null}
@@ -1015,9 +1090,9 @@ declare class Map$1 {
1015
1090
  lng: number;
1016
1091
  lat: number;
1017
1092
  }, ordinal?: number): {
1018
- venue: MapGeoJSONFeature;
1019
- building: MapGeoJSONFeature;
1020
- level: MapGeoJSONFeature;
1093
+ venue: MapGeoJSONFeature | null;
1094
+ building: MapGeoJSONFeature | null;
1095
+ level: MapGeoJSONFeature | null;
1021
1096
  };
1022
1097
  /**
1023
1098
  * @description Query rendered features from bbox by id. One id may correspond to multiple features,
@@ -1038,6 +1113,9 @@ declare class Map$1 {
1038
1113
  selectFloorById(floorId: string, options?: {
1039
1114
  dragPan?: boolean;
1040
1115
  }): Promise<void>;
1116
+ selectSharedFloorById(sharedFloorId: string, options?: {
1117
+ dragPan?: boolean;
1118
+ }): Promise<void>;
1041
1119
  /**
1042
1120
  * @description Select indoor by locating the target building.
1043
1121
  * @param buildingId
@@ -1067,14 +1145,14 @@ declare class Map$1 {
1067
1145
  * @description Listen for mouse click events on indoor POI
1068
1146
  * @param listener
1069
1147
  */
1070
- onPoiClickListener(listener: (param: IPoiEvent) => void): {
1148
+ onPoiClickListener(listener: (param: IPoiClickEvent) => void): {
1071
1149
  unsubscribe: VoidFunction;
1072
1150
  };
1073
1151
  /**
1074
1152
  * @description Listen for mouse click events at a point.
1075
1153
  * @param listener
1076
1154
  */
1077
- onPointClickListener(listener: (result: IPointEvent) => void): {
1155
+ onPointClickListener(listener: (result: IPointClickEvent) => void): {
1078
1156
  unsubscribe: VoidFunction;
1079
1157
  };
1080
1158
  /**
@@ -1084,7 +1162,7 @@ declare class Map$1 {
1084
1162
  onMapChangeListener(listener: (params: {
1085
1163
  venue: MapGeoJSONFeature | null;
1086
1164
  building: MapGeoJSONFeature | null;
1087
- floor: IFloor;
1165
+ floor: IFloor | ISharedFloor | null;
1088
1166
  }) => void): {
1089
1167
  unsubscribe: VoidFunction;
1090
1168
  };
@@ -1094,10 +1172,13 @@ declare class Map$1 {
1094
1172
  */
1095
1173
  switchTheme(theme: string): void;
1096
1174
  /**
1175
+ * @deprecated Use 'setSelectedHighlightStyle' instead.
1097
1176
  * @description Set the SelectedBuildingBorder's style. If set to null, the border will be invisible.
1098
- * @param style {ISelectedBuildingBorderStyle | null}
1177
+ * @param style {ISelectedHighlightStyle | null}
1099
1178
  */
1100
- setSelectedBuildingBorderStyle(style: ISelectedBuildingBorderStyle | null): this;
1179
+ setSelectedBuildingBorderStyle(style: ISelectedHighlightStyle | null): this;
1180
+ setSelectedHighlightStyle(style: ISelectedHighlightStyle | null): this;
1181
+ private _setup;
1101
1182
  private _getStyleUrl;
1102
1183
  private _setIndoorFilter;
1103
1184
  private _setStyle;
@@ -1105,15 +1186,18 @@ declare class Map$1 {
1105
1186
  private _selectPoiById;
1106
1187
  private _resourceRequestTransform;
1107
1188
  private _checkMapZoom;
1108
- private _hideIndoorLayers;
1109
- private _showIndoorLayers;
1110
1189
  private _updatePermission;
1111
1190
  private _selectCenterBuilding;
1112
1191
  /**
1113
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.
1114
1193
  * @returns Map<buildingId, buildingFeature>
1115
1194
  */
1116
- private _getCenterBuildingsMap;
1195
+ private _getCenterBuildingUnitsMap;
1196
+ private _bindMapClickListener;
1197
+ private _bindTokenChangedListener;
1198
+ private _handleSearchError;
1199
+ private _setMaskEnabled;
1200
+ private _installRtlTextPlugin;
1117
1201
  private _destroy;
1118
1202
  }
1119
1203
  export declare class Marker {
@@ -1177,7 +1261,7 @@ export declare class Marker {
1177
1261
  * @param callback
1178
1262
  */
1179
1263
  on(eventKey: keyof MapLayerEventType, callback: (marker: MapGeoJSONFeature) => void): {
1180
- off: () => maplibregl$1.Map;
1264
+ off: () => void;
1181
1265
  };
1182
1266
  /**
1183
1267
  * @description Filter marker by custom properties.
@@ -1238,22 +1322,19 @@ export declare class Marker {
1238
1322
  }
1239
1323
  export declare class Poi {
1240
1324
  private _map;
1325
+ private _currentStyle;
1241
1326
  private _layerIds;
1242
1327
  private _dispatch;
1243
- private _debounceQueryFeatures;
1328
+ private _listeners;
1244
1329
  constructor(map: maplibregl$1.Map);
1245
1330
  destroy(): void;
1246
- /**
1247
- * @description Listen for POI click events.
1248
- * @param listener
1249
- */
1250
- onPoiClick(listener: (param: IPoiEvent) => void): {
1331
+ onPoiClick(listener: (param: IPoiClickEvent) => void): {
1251
1332
  unsubscribe: VoidFunction;
1252
1333
  };
1253
- private _bindEvents;
1254
1334
  private _queryPoiLayers;
1255
- private _initPoiClick;
1256
- private _getFloorDataByFloorId;
1335
+ private _bindPoiClickEvent;
1336
+ private _queryIndoorFeaturesBySharedFloor;
1337
+ private _queryIndoorFeaturesByFloor;
1257
1338
  }
1258
1339
  export interface IRouteMarkers {
1259
1340
  from: string | null;
@@ -1292,6 +1373,7 @@ export declare class RoutePainter {
1292
1373
  private _curVenue;
1293
1374
  private _curBuilding;
1294
1375
  private _curOrdinal;
1376
+ private _renderBoundaryLayer;
1295
1377
  constructor(maplibreMap: maplibregl$1.Map, routeStyle?: TRouteStyleOptions);
1296
1378
  /**
1297
1379
  * @description Set the style of the route.
@@ -1439,36 +1521,20 @@ export declare class VenuesService {
1439
1521
  searchByIds(ids: string | string[]): TPromiseVenues;
1440
1522
  /**
1441
1523
  * @description Search venues by center and distance.
1442
- * @param keywords
1443
- * @param center
1444
- * @param distance Radius from center, unit is kilometers.
1445
- * @param offset The maximum value is 100, default is 10.
1446
- * @param page Default is 1.
1524
+ * @param {ISearchByDistanceOptions} options
1447
1525
  */
1448
- searchByDistance(keywords: string, center: [
1449
- number,
1450
- number
1451
- ], distance: number, offset?: number, page?: number): TPromiseVenues;
1526
+ searchByDistance(options: ISearchByDistanceOptions): TPromiseVenues;
1452
1527
  /**
1453
- * @description Search venues in specified bbox.
1454
- * @param keywords
1455
- * @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
1456
- * @param offset The maximum value is 100, default is 10.
1457
- * @param page Default is 1.
1528
+ * @description Search venues in a rectangular area.
1529
+ * @param {ISearchByBoundsOptions} options
1458
1530
  */
1459
- searchByBbox(keywords: string, bbox: [
1460
- number,
1461
- number,
1462
- number,
1463
- number
1464
- ], offset?: number, page?: number): TPromiseVenues;
1531
+ searchByBounds(options: ISearchByBoundsOptions): TPromiseVenues;
1465
1532
  /**
1466
1533
  * @description Search venues by global.
1467
- * @param keywords
1468
- * @param offset The maximum value is 100, default is 10.
1469
- * @param page Default is 1.
1534
+ * @param {ISearchByKeywordsOptions} options
1470
1535
  */
1471
- searchByGlobal(keywords: string, offset?: number, page?: number): TPromiseVenues;
1536
+ searchByGlobal(options: ISearchByKeywordsOptions): TPromiseVenues;
1537
+ searchBySharedFloorId(sharedFloorId: string): TPromiseVenues;
1472
1538
  search(options: IVenueSearchCustomizedOptions): TPromiseVenues;
1473
1539
  private _changedRes;
1474
1540
  }
@@ -1483,28 +1549,19 @@ export declare class BuildingsService {
1483
1549
  searchByIds(ids: string | string[]): TPromiseBuildings;
1484
1550
  /**
1485
1551
  * @description Search buildings by center and distance.
1486
- * @param keywords
1487
- * @param center
1488
- * @param distance Radius from center, unit is kilometers.
1489
- * @param offset The maximum value is 100, default is 10.
1490
- * @param page Default is 1.
1552
+ * @param {ISearchByDistanceOptions} options
1491
1553
  */
1492
- searchByDistance(keywords: string, center: number[], distance: number, offset?: number, page?: number): TPromiseBuildings;
1554
+ searchByDistance(options: ISearchByDistanceOptions): TPromiseBuildings;
1493
1555
  /**
1494
- * @description Search buildings in specified bbox.
1495
- * @param keywords
1496
- * @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
1497
- * @param offset The maximum value is 100, default is 10.
1498
- * @param page Default is 1.
1556
+ * @description Search buildings in a rectangular area.
1557
+ * @param {ISearchByBoundsOptions} options
1499
1558
  */
1500
- searchByBbox(keywords: string, bbox: number[], offset?: number, page?: number): TPromiseBuildings;
1559
+ searchByBounds(options: ISearchByBoundsOptions): TPromiseBuildings;
1501
1560
  /**
1502
1561
  * @description Search buildings global.
1503
- * @param keywords
1504
- * @param offset The maximum value is 100, default is 10.
1505
- * @param page Default is 1.
1562
+ * @param {ISearchByKeywordsOptions} options
1506
1563
  */
1507
- searchByGlobal(keywords: string, offset?: number, page?: number): TPromiseBuildings;
1564
+ searchByGlobal(options: ISearchByKeywordsOptions): TPromiseBuildings;
1508
1565
  /**
1509
1566
  * @description Search building by floor id.
1510
1567
  * @param floorId
@@ -1514,9 +1571,7 @@ export declare class BuildingsService {
1514
1571
  private _changedRes;
1515
1572
  }
1516
1573
  export declare class PoisService {
1517
- private _api;
1518
- private _apiV4;
1519
- private _categoriesApi;
1574
+ private _poisApi;
1520
1575
  private _categoriesGroupApi;
1521
1576
  private _request;
1522
1577
  constructor();
@@ -1524,52 +1579,52 @@ export declare class PoisService {
1524
1579
  * @description Search POIs by id[s].
1525
1580
  * @param ids Single id string or string ids in array. The number of IDs cannot exceed 100.
1526
1581
  */
1527
- searchByIds(ids: string | string[]): TPromisePois;
1582
+ searchByIds(ids: string | string[]): TPromisePois<IPoi | ISharedPoi>;
1528
1583
  /**
1529
1584
  * @description Search POIs by radius distance of the center point.
1530
- * @param options {IPoiSearchByDistanceOptions}
1585
+ * @param options {ISearchByDistanceOptions}
1531
1586
  */
1532
- searchByDistance(options: IPoiSearchByDistanceOptions): TPromisePois;
1587
+ searchByDistance(options: ISearchByDistanceOptions): TPromisePois<IPoi | ISharedPoi>;
1533
1588
  /**
1534
1589
  * @description Search POIs in a rectangular area.
1535
1590
  * @param options {IPoiSearchByBoundsOptions}
1536
1591
  * 'orderBy' cannot be used with 'keywords'.
1537
1592
  */
1538
- searchByBounds(options: IPoiSearchByBoundsOptions): TPromisePois;
1593
+ searchByBounds(options: IPoiSearchByBoundsOptions): TPromisePois<IPoi | ISharedPoi>;
1539
1594
  /**
1540
1595
  * @description Search POIs of a building.
1541
- * @param options {IPoiSearchByBuildingOptions}
1596
+ * @param options {ISearchByBuildingOptions}
1542
1597
  * 'orderBy' cannot be used with 'keywords'.
1543
1598
  */
1544
- searchByBuilding(options: IPoiSearchByBuildingOptions): TPromisePois;
1599
+ searchByBuilding(options: ISearchByBuildingOptions): TPromisePois<IPoi>;
1545
1600
  /**
1546
1601
  * @description Search POIs of a venue.
1547
- * @param options {IPoiSearchByVenueOptions}
1602
+ * @param options {ISearchByVenueOptions}
1548
1603
  * 'orderBy' cannot be used with 'keywords'.
1549
1604
  */
1550
- searchByVenue(options: IPoiSearchByVenueOptions): TPromisePois;
1605
+ searchByVenue(options: ISearchByVenueOptions): TPromisePois<IPoi | ISharedPoi>;
1551
1606
  /**
1552
1607
  * @description Search POIs of a floor.
1553
- * @param options {IPoiSearchByFloorOptions}
1608
+ * @param options {TSearchByFloorOptions}
1554
1609
  * 'orderBy' cannot be used with 'keywords'.
1555
1610
  */
1556
- searchByFloor(options: IPoiSearchByFloorOptions): TPromisePois;
1557
- /**
1558
- * @description Search poi categories by venue/building/floor/bounds.
1559
- * @param options
1560
- */
1561
- searchCategories(options: TSearchCategoriesOptions): TPromiseCategories;
1611
+ searchByFloor(options: TSearchByFloorOptions): TPromisePois<IPoi | ISharedPoi>;
1562
1612
  /**
1563
1613
  * @description Search surrounding POIs based on the user's location and orientation.
1564
- * @param options {TPoiSearchByOrientationOptions}
1614
+ * @param {TSearchByOrientationOptions} options
1565
1615
  */
1566
- searchByOrientation(options: TPoiSearchByOrientationOptions): TPromiseOrientationPois;
1616
+ searchByOrientation(options: TSearchByOrientationOptions): TPromiseOrientationPois;
1567
1617
  /**
1568
1618
  * @description Search POIs by category or excluded categories.
1569
- * @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
1570
1625
  */
1571
- searchByCategory(options: TPoiSearchByCategoryOptions): TPromisePois;
1572
- search(options: IPoiSearchCustomizedOptions): TPromisePois;
1626
+ searchCategories(options: TSearchCategoriesOptions): TPromiseCategories;
1627
+ search(options: IPoiSearchCustomizedOptions): TPromisePois<IPoi | ISharedPoi>;
1573
1628
  private _changedRes;
1574
1629
  }
1575
1630
  export declare class RouteService {
@@ -1589,7 +1644,35 @@ export declare const PAGE: number;
1589
1644
  * @param language {string} window.navigator.language
1590
1645
  */
1591
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";
1649
+ /**
1650
+ * Get access token
1651
+ * @param appId
1652
+ * @param secret
1653
+ * @param platform get accessToken of the specific platform(ios or android), optional
1654
+ * @param origin the reference of appId, optional
1655
+ * @returns {accessToken: string; expiresIn: number;} expiresIn means the valid time of accessToken
1656
+ */
1657
+ export declare function getAccessToken(appId: string, secret: string, platform?: TPlatform, origin?: string): Promise<{
1658
+ accessToken: string;
1659
+ expiredTime: number;
1660
+ }>;
1592
1661
  export declare function getIdentifier(): Promise<string>;
1662
+ export declare function setGetTokenAsync(fn: TAccessTokenGetter): void;
1663
+ export declare function setupTokenManager(): Promise<void>;
1664
+ export type InputProduct = "UI_SDK" | "ANYWHERE";
1665
+ /**
1666
+ * @private
1667
+ * This method is internal and should not be exposed in the documentation.
1668
+ */
1669
+ export declare const __internal: {
1670
+ [x: symbol]: (names: InputProduct[]) => void;
1671
+ };
1672
+ export declare const ERRORS: readonly [
1673
+ "unauthorized",
1674
+ "initError"
1675
+ ];
1593
1676
  export declare const VERSION: string;
1594
1677
 
1595
1678
  export {