@mapxus/mapxus-map-jp 7.7.2 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +183 -0
- package/dist/index.umd.js +1 -0
- package/{index.d.ts → es/index.d.ts} +683 -673
- package/es/index.mjs +1 -0
- package/es/utils/index.mjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/utils/index.cjs +1 -0
- package/package.json +9 -6
- package/index.js +0 -1
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { AxiosPromise } from 'axios';
|
|
4
|
+
import { GeoJsonProperties, LineString, Point } from 'geojson';
|
|
5
|
+
import maplibregl$1 from 'maplibre-gl';
|
|
4
6
|
import { ControlPosition, FilterSpecification, IControl, LngLat, Map as MaplibreMap, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike, RequireAtLeastOne } from 'maplibre-gl';
|
|
5
7
|
|
|
8
|
+
export declare enum FloorSwitchMode {
|
|
9
|
+
SWITCHED_BY_BUILDING = 0,
|
|
10
|
+
SWITCHED_BY_VENUE = 1
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use enum `PresetLanguage` instead.
|
|
14
|
+
*/
|
|
15
|
+
export type TPresetLanguage = "en" | "zh-Hans" | "zh-Hant" | "ja" | "ko";
|
|
16
|
+
export declare enum PresetLanguage {
|
|
17
|
+
ENGLISH = "en",
|
|
18
|
+
CHINESE_SIMPLIFIED = "zh-Hans",
|
|
19
|
+
CHINESE_TRADITIONAL = "zh-Hant",
|
|
20
|
+
JAPANESE = "ja",
|
|
21
|
+
KOREAN = "ko"
|
|
22
|
+
}
|
|
6
23
|
export declare enum ThemeType {
|
|
7
24
|
CHRISTMAS = "christmas",
|
|
8
25
|
HALLOWEEN = "halloween",
|
|
@@ -12,10 +29,71 @@ export declare enum ThemeType {
|
|
|
12
29
|
COMMON = "common",
|
|
13
30
|
MAPXUS_V2 = "mapxus_v2"
|
|
14
31
|
}
|
|
15
|
-
export interface
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
32
|
+
export interface IBbox {
|
|
33
|
+
maxLat: number;
|
|
34
|
+
maxLon: number;
|
|
35
|
+
minLat: number;
|
|
36
|
+
minLon: number;
|
|
37
|
+
}
|
|
38
|
+
export interface IBuildingChangedOptions {
|
|
39
|
+
buildingId: string | null;
|
|
40
|
+
ordinal: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface IMultilingualName extends Partial<Record<PresetLanguage, string>> {
|
|
43
|
+
default: string;
|
|
44
|
+
}
|
|
45
|
+
export type IMultilingualAddress = Record<keyof IMultilingualName, {
|
|
46
|
+
housenumber: string;
|
|
47
|
+
street: string;
|
|
48
|
+
}>;
|
|
49
|
+
export interface ILocation {
|
|
50
|
+
lat: number;
|
|
51
|
+
lon: number;
|
|
52
|
+
}
|
|
53
|
+
export interface IResponse<T> {
|
|
54
|
+
code: number;
|
|
55
|
+
message: string;
|
|
56
|
+
result: T;
|
|
57
|
+
}
|
|
58
|
+
export interface IBuildingInlineFloor {
|
|
59
|
+
code: string;
|
|
60
|
+
id: string;
|
|
61
|
+
ordinal: number;
|
|
62
|
+
signalMap: boolean;
|
|
63
|
+
visualMap: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface IBuilding {
|
|
66
|
+
address: IMultilingualAddress;
|
|
67
|
+
bbox: IBbox;
|
|
68
|
+
buildingId: string;
|
|
69
|
+
buildingOutlineId: number;
|
|
70
|
+
city?: string;
|
|
71
|
+
country: string;
|
|
72
|
+
defaultFloor?: string;
|
|
73
|
+
floors: IBuildingInlineFloor[];
|
|
74
|
+
groundFloor: string;
|
|
75
|
+
isPrivate: "yes" | "no";
|
|
76
|
+
labelCenter: ILocation;
|
|
77
|
+
name: IMultilingualName;
|
|
78
|
+
organization: string;
|
|
79
|
+
region: string;
|
|
80
|
+
signalMap: boolean;
|
|
81
|
+
type: string;
|
|
82
|
+
venueId: string;
|
|
83
|
+
venueName: IMultilingualName;
|
|
84
|
+
visualMap: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface IResponseBuildings {
|
|
87
|
+
buildings: IBuilding[];
|
|
88
|
+
total: number;
|
|
89
|
+
}
|
|
90
|
+
export type TPromiseBuildings = AxiosPromise<IResponse<IResponseBuildings>>;
|
|
91
|
+
export type TPointFeature = GeoJSON.Feature<Point, GeoJsonProperties>;
|
|
92
|
+
export type TLineStringFeature = GeoJSON.Feature<LineString, GeoJsonProperties>;
|
|
93
|
+
export interface IFloor {
|
|
94
|
+
code: string | null;
|
|
95
|
+
id: string | null;
|
|
96
|
+
ordinal: string | null;
|
|
19
97
|
}
|
|
20
98
|
/**
|
|
21
99
|
* @deprecated Use 'IFloorSelectorStyle' instead.
|
|
@@ -38,23 +116,19 @@ export interface IFloorSelectorStyle {
|
|
|
38
116
|
itemCount?: number;
|
|
39
117
|
defaultFolded?: boolean;
|
|
40
118
|
}
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
119
|
+
export interface IMapClickEvent {
|
|
120
|
+
coordinate: LngLat;
|
|
121
|
+
building: MapGeoJSONFeature | null;
|
|
122
|
+
venue: MapGeoJSONFeature | null;
|
|
123
|
+
floor: IFloor;
|
|
44
124
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export declare enum PresetLanguage {
|
|
50
|
-
ENGLISH = "en",
|
|
51
|
-
CHINESE_SIMPLIFIED = "zh-Hans",
|
|
52
|
-
CHINESE_TRADITIONAL = "zh-Hant",
|
|
53
|
-
JAPANESE = "ja",
|
|
54
|
-
KOREAN = "ko"
|
|
125
|
+
export interface ISelectedBuildingBorderStyle {
|
|
126
|
+
lineWidth?: number;
|
|
127
|
+
lineColor?: string;
|
|
128
|
+
lineOpacity?: number;
|
|
55
129
|
}
|
|
56
130
|
export interface IMapOption {
|
|
57
|
-
map:
|
|
131
|
+
map: maplibregl$1.Map;
|
|
58
132
|
appId: string;
|
|
59
133
|
secret: string;
|
|
60
134
|
/** @deprecated Use 'floorSelectorEnabled' instead */
|
|
@@ -119,74 +193,421 @@ export interface IMapOption {
|
|
|
119
193
|
boundsPadding?: number | RequireAtLeastOne<PaddingOptions>;
|
|
120
194
|
language?: PresetLanguage;
|
|
121
195
|
}
|
|
122
|
-
export type
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
196
|
+
export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
197
|
+
export interface IMarkerOptions {
|
|
198
|
+
lngLat: [
|
|
199
|
+
number,
|
|
200
|
+
number
|
|
201
|
+
];
|
|
202
|
+
properties?: {
|
|
203
|
+
[k: string]: string;
|
|
204
|
+
};
|
|
131
205
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
206
|
+
export interface IMarkerOptionsWithFeatureId extends IMarkerOptions {
|
|
207
|
+
featureId: number;
|
|
208
|
+
}
|
|
209
|
+
export interface IPoiEvent {
|
|
210
|
+
coordinate: LngLat;
|
|
211
|
+
poi: MapGeoJSONFeature;
|
|
212
|
+
building: MapGeoJSONFeature | null;
|
|
213
|
+
venue: MapGeoJSONFeature | null;
|
|
214
|
+
floor: IFloor;
|
|
215
|
+
}
|
|
216
|
+
export interface IPointEvent {
|
|
217
|
+
coordinate: LngLat;
|
|
218
|
+
point: PointLike;
|
|
219
|
+
}
|
|
220
|
+
export interface IPoi {
|
|
221
|
+
accessibilityDetail: IMultilingualName;
|
|
222
|
+
buildingId: string;
|
|
223
|
+
category: string[];
|
|
224
|
+
distance: number;
|
|
225
|
+
floor: string;
|
|
226
|
+
floorId: string;
|
|
227
|
+
id: string;
|
|
228
|
+
location: ILocation;
|
|
229
|
+
name: IMultilingualName;
|
|
230
|
+
osmRefId: number;
|
|
231
|
+
poiId: string;
|
|
232
|
+
venueId: string;
|
|
233
|
+
/** @deprecated 'description' will be removed soon */
|
|
234
|
+
description?: string;
|
|
235
|
+
descriptions?: IMultilingualName;
|
|
236
|
+
email?: string;
|
|
237
|
+
openingHours?: string;
|
|
238
|
+
phone?: string;
|
|
239
|
+
website?: string;
|
|
240
|
+
}
|
|
241
|
+
export interface IResponsePois {
|
|
242
|
+
pois: IPoi[];
|
|
243
|
+
total: number;
|
|
244
|
+
}
|
|
245
|
+
export type TPromisePois = AxiosPromise<IResponse<IResponsePois>>;
|
|
246
|
+
export type TPromiseCategories = AxiosPromise<IResponse<IPoiCategory[]>>;
|
|
247
|
+
export type TPromiseOrientationPois = AxiosPromise<IResponse<IOrientationPoi[]>>;
|
|
248
|
+
export declare enum DistanceSearchType {
|
|
249
|
+
POINT = "Point",
|
|
250
|
+
POLYGON = "Polygon",
|
|
251
|
+
GATE = "Gate"
|
|
252
|
+
}
|
|
253
|
+
export interface IPoiCategory {
|
|
254
|
+
category: string;
|
|
255
|
+
description: string | null;
|
|
256
|
+
id: string;
|
|
257
|
+
title: Partial<Record<keyof IMultilingualName, string>>;
|
|
258
|
+
}
|
|
259
|
+
export interface IOrientationPoi {
|
|
260
|
+
angle: number;
|
|
261
|
+
buildingId: string;
|
|
262
|
+
category: string[];
|
|
263
|
+
distance: number;
|
|
264
|
+
distanceSource: string;
|
|
265
|
+
floor: string;
|
|
266
|
+
floorId: string;
|
|
267
|
+
id: string;
|
|
268
|
+
location: ILocation;
|
|
269
|
+
name: IMultilingualName;
|
|
270
|
+
osmRefId: number;
|
|
271
|
+
poiId: string;
|
|
272
|
+
description?: string;
|
|
273
|
+
email?: string;
|
|
274
|
+
openingHours?: string;
|
|
275
|
+
phone?: string;
|
|
276
|
+
website?: string;
|
|
277
|
+
}
|
|
278
|
+
export interface ISearchDistance {
|
|
142
279
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @param type name of the event(a unique string)
|
|
145
|
-
* @param listener event handler, it will be called when the event is fired
|
|
280
|
+
* The center of searching range, [lng, lat].
|
|
146
281
|
*/
|
|
147
|
-
|
|
282
|
+
center: [
|
|
283
|
+
number,
|
|
284
|
+
number
|
|
285
|
+
];
|
|
148
286
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @param type name of the event
|
|
151
|
-
* @param listener event handler
|
|
287
|
+
* Radius from center, unit is meter, cannot exceed 10,000.
|
|
152
288
|
*/
|
|
153
|
-
|
|
289
|
+
distance: number;
|
|
154
290
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* The listener will be called first time the event fires after the listener is registered.
|
|
158
|
-
*
|
|
159
|
-
* @param {string} type The event type to listen for.
|
|
160
|
-
* @param {Function} listener The function to be called when the event is fired the first time.
|
|
161
|
-
* @returns {Object} `this`
|
|
291
|
+
* The maximum value is 100, default is 10.
|
|
162
292
|
*/
|
|
163
|
-
|
|
164
|
-
fire(event: DefinedEvent): this;
|
|
293
|
+
offset?: number;
|
|
165
294
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* @param {string} type The event type
|
|
169
|
-
* @returns {boolean} `true` if there is at least one registered listener for specified event type, `false` otherwise
|
|
170
|
-
* @private
|
|
295
|
+
* Results for specified page number. Default is 1.
|
|
171
296
|
*/
|
|
172
|
-
|
|
297
|
+
page?: number;
|
|
298
|
+
}
|
|
299
|
+
export interface IPoiSearchByCategoryOptions extends ISearchDistance {
|
|
300
|
+
category: string;
|
|
301
|
+
}
|
|
302
|
+
export interface IPoiSearchByExcludedCategoriesOptions extends ISearchDistance {
|
|
303
|
+
excludedCategories: string | string[];
|
|
304
|
+
}
|
|
305
|
+
export type TPoiSearchByCategoryOptions = IPoiSearchByCategoryOptions | IPoiSearchByExcludedCategoriesOptions;
|
|
306
|
+
export interface IPoiSearchByDistanceOptions extends ISearchDistance {
|
|
173
307
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* @returns {Object} `this`
|
|
177
|
-
* @private
|
|
308
|
+
* Keywords of POI name.
|
|
178
309
|
*/
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
export interface IFloor {
|
|
182
|
-
code: string | null;
|
|
183
|
-
id: string | null;
|
|
184
|
-
ordinal: string | null;
|
|
310
|
+
keywords?: string;
|
|
185
311
|
}
|
|
186
|
-
export
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
312
|
+
export interface ISearchOrientation {
|
|
313
|
+
/**
|
|
314
|
+
* User's position, [lng, lat].
|
|
315
|
+
*/
|
|
316
|
+
center: [
|
|
317
|
+
number,
|
|
318
|
+
number
|
|
319
|
+
];
|
|
320
|
+
/**
|
|
321
|
+
* The angle between the user's orientation and true north.
|
|
322
|
+
*/
|
|
323
|
+
angle: number;
|
|
324
|
+
/**
|
|
325
|
+
* The radius with 'center' as the center of the circle.
|
|
326
|
+
*/
|
|
327
|
+
distance: number;
|
|
328
|
+
/**
|
|
329
|
+
* The type of POI, default is 'Point'.
|
|
330
|
+
*/
|
|
331
|
+
distanceSearchType?: DistanceSearchType;
|
|
332
|
+
}
|
|
333
|
+
export interface IPoiSearchByOrientationAndBuildingOptions extends ISearchOrientation {
|
|
334
|
+
buildingId: string;
|
|
335
|
+
}
|
|
336
|
+
export interface IPoiSearchByOrientationAndFloorOptions extends ISearchOrientation {
|
|
337
|
+
floorId: string;
|
|
338
|
+
}
|
|
339
|
+
export interface IPoiSearchByOrientationAndOrdinalOptions extends ISearchOrientation {
|
|
340
|
+
ordinal: string;
|
|
341
|
+
}
|
|
342
|
+
export type TPoiSearchByOrientationOptions = IPoiSearchByOrientationAndBuildingOptions | IPoiSearchByOrientationAndFloorOptions | IPoiSearchByOrientationAndOrdinalOptions;
|
|
343
|
+
export interface IPoiSearchOrientationOptions {
|
|
344
|
+
/**
|
|
345
|
+
* User's current position, [lng, lat].
|
|
346
|
+
*/
|
|
347
|
+
center: [
|
|
348
|
+
number,
|
|
349
|
+
number
|
|
350
|
+
];
|
|
351
|
+
/**
|
|
352
|
+
* The angle between cellphone's orientation and the north.
|
|
353
|
+
*/
|
|
354
|
+
angle: number;
|
|
355
|
+
/**
|
|
356
|
+
* Radius.
|
|
357
|
+
*/
|
|
358
|
+
distance: number;
|
|
359
|
+
buildingId?: string;
|
|
360
|
+
floorId?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Floor order in physical space, e.g. '-1', '0'(ground floor), '1'...
|
|
363
|
+
*/
|
|
364
|
+
ordinal?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Search type.
|
|
367
|
+
*/
|
|
368
|
+
distanceSearchType?: DistanceSearchType;
|
|
369
|
+
}
|
|
370
|
+
export declare enum PoisOrderBy {
|
|
371
|
+
DEFAULT_NAME = "DefaultName"
|
|
372
|
+
}
|
|
373
|
+
export interface ISearchKeywords {
|
|
374
|
+
keywords?: string;
|
|
375
|
+
/**
|
|
376
|
+
* Quantity per page, the maximum is 100, default is 10.
|
|
377
|
+
*/
|
|
378
|
+
offset?: number;
|
|
379
|
+
/**
|
|
380
|
+
* Results for specified page number. Default is 1.
|
|
381
|
+
*/
|
|
382
|
+
page?: number;
|
|
383
|
+
}
|
|
384
|
+
export interface IPoiSearchByBuildingOptions extends ISearchKeywords {
|
|
385
|
+
buildingId: string;
|
|
386
|
+
orderBy?: PoisOrderBy;
|
|
387
|
+
}
|
|
388
|
+
export interface IPoiSearchByVenueOptions extends ISearchKeywords {
|
|
389
|
+
venueId: string;
|
|
390
|
+
orderBy?: PoisOrderBy;
|
|
391
|
+
}
|
|
392
|
+
export interface IPoiSearchByFloorOptions extends ISearchKeywords {
|
|
393
|
+
floorId: string;
|
|
394
|
+
orderBy?: PoisOrderBy;
|
|
395
|
+
}
|
|
396
|
+
export interface IPoiSearchByBoundsOptions extends ISearchKeywords {
|
|
397
|
+
/**
|
|
398
|
+
* An array of LngLat coordinates in [sw, ne] order
|
|
399
|
+
*/
|
|
400
|
+
bounds: [
|
|
401
|
+
[
|
|
402
|
+
number,
|
|
403
|
+
number
|
|
404
|
+
],
|
|
405
|
+
[
|
|
406
|
+
number,
|
|
407
|
+
number
|
|
408
|
+
]
|
|
409
|
+
];
|
|
410
|
+
orderBy?: PoisOrderBy;
|
|
411
|
+
}
|
|
412
|
+
export interface ITokenInfo {
|
|
413
|
+
"app:name": string;
|
|
414
|
+
auth_time: number;
|
|
415
|
+
"cognito:username": string;
|
|
416
|
+
"custom:organization": string;
|
|
417
|
+
exp: number;
|
|
418
|
+
iat: number;
|
|
419
|
+
organization: string;
|
|
420
|
+
"organization:name": string;
|
|
421
|
+
privatization_type: string;
|
|
422
|
+
username: string;
|
|
423
|
+
}
|
|
424
|
+
export declare enum VehicleType {
|
|
425
|
+
FOOT = "foot",
|
|
426
|
+
WHEELCHAIR = "wheelchair",
|
|
427
|
+
ESCALATOR = "escalator",
|
|
428
|
+
EMERGENCY = "emergency"
|
|
429
|
+
}
|
|
430
|
+
export interface IRouteInfo {
|
|
431
|
+
copyrights: string[];
|
|
432
|
+
took: number;
|
|
433
|
+
}
|
|
434
|
+
export interface IInstruction {
|
|
435
|
+
building_id: string;
|
|
436
|
+
distance: number;
|
|
437
|
+
floor_id: string;
|
|
438
|
+
heading: number;
|
|
439
|
+
interval: [
|
|
440
|
+
number,
|
|
441
|
+
number
|
|
442
|
+
];
|
|
443
|
+
ordinal: number;
|
|
444
|
+
sign: number;
|
|
445
|
+
street_name: string;
|
|
446
|
+
text: string;
|
|
447
|
+
time: number;
|
|
448
|
+
type: string | null;
|
|
449
|
+
venue_id: string;
|
|
450
|
+
}
|
|
451
|
+
export interface IRoutePath {
|
|
452
|
+
bbox: [
|
|
453
|
+
number,
|
|
454
|
+
number,
|
|
455
|
+
number,
|
|
456
|
+
number
|
|
457
|
+
];
|
|
458
|
+
distance: number;
|
|
459
|
+
instructions: IInstruction[];
|
|
460
|
+
points: {
|
|
461
|
+
coordinates: Array<[
|
|
462
|
+
number,
|
|
463
|
+
number
|
|
464
|
+
]>;
|
|
465
|
+
type: string;
|
|
466
|
+
};
|
|
467
|
+
snapped_waypoints: {
|
|
468
|
+
coordinates: Array<[
|
|
469
|
+
number,
|
|
470
|
+
number
|
|
471
|
+
]>;
|
|
472
|
+
type: string;
|
|
473
|
+
};
|
|
474
|
+
time: number;
|
|
475
|
+
}
|
|
476
|
+
export interface IResponseRoute {
|
|
477
|
+
infos: IRouteInfo | null;
|
|
478
|
+
paths: IRoutePath[];
|
|
479
|
+
}
|
|
480
|
+
export type TPromiseRoute = AxiosPromise<IResponse<IResponseRoute>>;
|
|
481
|
+
export interface IRouteSearchOptions {
|
|
482
|
+
/**
|
|
483
|
+
* @description Points are in order, from -> stops -> to.
|
|
484
|
+
* The length of points must be: 1 < {points.length} < 6.
|
|
485
|
+
*/
|
|
486
|
+
points: Array<{
|
|
487
|
+
lat: number;
|
|
488
|
+
lon: number;
|
|
489
|
+
buildingId?: string;
|
|
490
|
+
floorId?: string;
|
|
491
|
+
}>;
|
|
492
|
+
/**
|
|
493
|
+
* @description Default is "foot".
|
|
494
|
+
*/
|
|
495
|
+
vehicle?: VehicleType;
|
|
496
|
+
/**
|
|
497
|
+
* @description Language-specific response. Default is "en".
|
|
498
|
+
*/
|
|
499
|
+
locale?: PresetLanguage;
|
|
500
|
+
/**
|
|
501
|
+
* @description Whether the end point of the route is at the door(otherwise in the room), default is "true".
|
|
502
|
+
* @deprecated
|
|
503
|
+
*/
|
|
504
|
+
toDoor?: boolean;
|
|
505
|
+
}
|
|
506
|
+
export interface IVenueInlineBuilding {
|
|
507
|
+
buildingOutlineId: number;
|
|
508
|
+
defaultFloor?: string;
|
|
509
|
+
floors: IBuildingInlineFloor[];
|
|
510
|
+
id: string;
|
|
511
|
+
labelCenter: ILocation;
|
|
512
|
+
name: IMultilingualName;
|
|
513
|
+
point: {
|
|
514
|
+
type: string;
|
|
515
|
+
coordinates: [
|
|
516
|
+
number,
|
|
517
|
+
number
|
|
518
|
+
];
|
|
519
|
+
};
|
|
520
|
+
signalMap: boolean;
|
|
521
|
+
visualMap: boolean;
|
|
522
|
+
}
|
|
523
|
+
export interface IVenue {
|
|
524
|
+
address: IMultilingualAddress;
|
|
525
|
+
bbox: IBbox;
|
|
526
|
+
buildings: IVenueInlineBuilding[];
|
|
527
|
+
businessStatus?: {
|
|
528
|
+
status: string;
|
|
529
|
+
};
|
|
530
|
+
country: string;
|
|
531
|
+
defaultBuilding?: string;
|
|
532
|
+
id: string;
|
|
533
|
+
labelCenter: ILocation;
|
|
534
|
+
name: IMultilingualName;
|
|
535
|
+
organization: string[];
|
|
536
|
+
owner: string;
|
|
537
|
+
publicData?: string[];
|
|
538
|
+
photos?: object[];
|
|
539
|
+
region: string;
|
|
540
|
+
restricted: boolean;
|
|
541
|
+
signalMap: boolean;
|
|
542
|
+
totalPhotoCount?: number;
|
|
543
|
+
type: string;
|
|
544
|
+
venueOutlineId: number;
|
|
545
|
+
visualMap: boolean;
|
|
546
|
+
}
|
|
547
|
+
export interface IResponseVenues {
|
|
548
|
+
venues: IVenue[];
|
|
549
|
+
total: number;
|
|
550
|
+
}
|
|
551
|
+
export type TPromiseVenues = AxiosPromise<IResponse<IResponseVenues>>;
|
|
552
|
+
export type Listener = (param: any) => any;
|
|
553
|
+
declare class Event$1 {
|
|
554
|
+
private _type;
|
|
555
|
+
private _target;
|
|
556
|
+
constructor(type: string, data?: Object);
|
|
557
|
+
get type(): string;
|
|
558
|
+
set type(type: string);
|
|
559
|
+
get target(): Evented;
|
|
560
|
+
set target(target: Evented);
|
|
561
|
+
}
|
|
562
|
+
/** MixedEvent class */
|
|
563
|
+
export declare class Evented {
|
|
564
|
+
private _listeners;
|
|
565
|
+
private _oneTimeListeners;
|
|
566
|
+
private _eventedParent;
|
|
567
|
+
private _eventedParentData;
|
|
568
|
+
/**
|
|
569
|
+
* @description Register a new event listener
|
|
570
|
+
* @param type name of the event(a unique string)
|
|
571
|
+
* @param listener event handler, it will be called when the event is fired
|
|
572
|
+
*/
|
|
573
|
+
on(type: string, listener: Listener): this;
|
|
574
|
+
/**
|
|
575
|
+
* @description Remove a registered event listener
|
|
576
|
+
* @param type name of the event
|
|
577
|
+
* @param listener event handler
|
|
578
|
+
*/
|
|
579
|
+
off(type: string, listener: Listener): this;
|
|
580
|
+
/**
|
|
581
|
+
* Adds a listener that will be called only once to a specified event type.
|
|
582
|
+
*
|
|
583
|
+
* The listener will be called first time the event fires after the listener is registered.
|
|
584
|
+
*
|
|
585
|
+
* @param {string} type The event type to listen for.
|
|
586
|
+
* @param {Function} listener The function to be called when the event is fired the first time.
|
|
587
|
+
* @returns {Object} `this`
|
|
588
|
+
*/
|
|
589
|
+
once(type: string, listener: Listener): this;
|
|
590
|
+
fire(event: Event$1): this;
|
|
591
|
+
/**
|
|
592
|
+
* Returns a true if this instance of Evented or any forwardeed instances of Evented have a listener for the specified type.
|
|
593
|
+
*
|
|
594
|
+
* @param {string} type The event type
|
|
595
|
+
* @returns {boolean} `true` if there is at least one registered listener for specified event type, `false` otherwise
|
|
596
|
+
* @private
|
|
597
|
+
*/
|
|
598
|
+
listens(type: string): boolean;
|
|
599
|
+
/**
|
|
600
|
+
* Bubble all events fired by this instance of Evented to this parent instance of Evented.
|
|
601
|
+
*
|
|
602
|
+
* @returns {Object} `this`
|
|
603
|
+
* @private
|
|
604
|
+
*/
|
|
605
|
+
setEventedParent(parent: Evented, data?: Object | (() => Object)): this;
|
|
606
|
+
}
|
|
607
|
+
export declare class Indoor extends Evented {
|
|
608
|
+
private _map;
|
|
609
|
+
private _features;
|
|
610
|
+
private _allBuildings;
|
|
190
611
|
private _curBuildingId;
|
|
191
612
|
private _curBuildingFeature;
|
|
192
613
|
private _ordinal;
|
|
@@ -390,39 +811,6 @@ export declare class Indoor extends Evented {
|
|
|
390
811
|
private _checkAndPanToBuilding;
|
|
391
812
|
private _invisibleSelectedBuilding;
|
|
392
813
|
}
|
|
393
|
-
export interface IPoiEvent {
|
|
394
|
-
coordinate: LngLat;
|
|
395
|
-
poi: MapGeoJSONFeature;
|
|
396
|
-
building: MapGeoJSONFeature | null;
|
|
397
|
-
venue: MapGeoJSONFeature | null;
|
|
398
|
-
floor: IFloor;
|
|
399
|
-
}
|
|
400
|
-
export interface IPointEvent {
|
|
401
|
-
coordinate: LngLat;
|
|
402
|
-
point: PointLike;
|
|
403
|
-
}
|
|
404
|
-
export interface IMapClickEvent {
|
|
405
|
-
coordinate: LngLat;
|
|
406
|
-
building: MapGeoJSONFeature | null;
|
|
407
|
-
venue: MapGeoJSONFeature | null;
|
|
408
|
-
floor: IFloor;
|
|
409
|
-
}
|
|
410
|
-
export declare class SwitchOutdoorHandler {
|
|
411
|
-
private _indoor;
|
|
412
|
-
private _isEnabled;
|
|
413
|
-
constructor(indoor: Indoor);
|
|
414
|
-
enable(): void;
|
|
415
|
-
disable(): void;
|
|
416
|
-
get isEnabled(): boolean;
|
|
417
|
-
}
|
|
418
|
-
export declare class SwitchBuildingHandler {
|
|
419
|
-
private _indoor;
|
|
420
|
-
private _isEnabled;
|
|
421
|
-
constructor(indoor: Indoor);
|
|
422
|
-
enable(): void;
|
|
423
|
-
disable(): void;
|
|
424
|
-
get isEnabled(): boolean;
|
|
425
|
-
}
|
|
426
814
|
export declare class BuildingFilterControl implements IControl {
|
|
427
815
|
private _map;
|
|
428
816
|
private _maplibre;
|
|
@@ -477,22 +865,6 @@ export declare class BuildingFilterControl implements IControl {
|
|
|
477
865
|
private _$hideLayout;
|
|
478
866
|
private _updateBuildingListLayout;
|
|
479
867
|
}
|
|
480
|
-
export declare class BuildingSelectorHandler {
|
|
481
|
-
private _buildingSelector;
|
|
482
|
-
private _isEnabled;
|
|
483
|
-
private _position;
|
|
484
|
-
constructor(buildingSelector: BuildingFilterControl);
|
|
485
|
-
enable(): void;
|
|
486
|
-
disable(): void;
|
|
487
|
-
/**
|
|
488
|
-
* Set the position of the building selector control
|
|
489
|
-
* @param position
|
|
490
|
-
* @param index - The index of the control in the controls-container. Default at the last.
|
|
491
|
-
*/
|
|
492
|
-
setPosition(position: ControlPosition, index?: number): void;
|
|
493
|
-
get isEnabled(): boolean;
|
|
494
|
-
get position(): ControlPosition;
|
|
495
|
-
}
|
|
496
868
|
export interface IFloorSelectorOptions {
|
|
497
869
|
style?: IFloorSelectorStyle;
|
|
498
870
|
enabled?: boolean;
|
|
@@ -572,6 +944,22 @@ export declare class FloorsControl implements IControl {
|
|
|
572
944
|
private _handleScroll;
|
|
573
945
|
private _expandSelector;
|
|
574
946
|
}
|
|
947
|
+
export declare class BuildingSelectorHandler {
|
|
948
|
+
private _buildingSelector;
|
|
949
|
+
private _isEnabled;
|
|
950
|
+
private _position;
|
|
951
|
+
constructor(buildingSelector: BuildingFilterControl);
|
|
952
|
+
enable(): void;
|
|
953
|
+
disable(): void;
|
|
954
|
+
/**
|
|
955
|
+
* Set the position of the building selector control
|
|
956
|
+
* @param position
|
|
957
|
+
* @param index - The index of the control in the controls-container. Default at the last.
|
|
958
|
+
*/
|
|
959
|
+
setPosition(position: ControlPosition, index?: number): void;
|
|
960
|
+
get isEnabled(): boolean;
|
|
961
|
+
get position(): ControlPosition;
|
|
962
|
+
}
|
|
575
963
|
export declare class FloorSelectorHandler {
|
|
576
964
|
private _floorSelector;
|
|
577
965
|
private _isEnabled;
|
|
@@ -589,6 +977,22 @@ export declare class FloorSelectorHandler {
|
|
|
589
977
|
get isEnabled(): boolean;
|
|
590
978
|
get position(): ControlPosition;
|
|
591
979
|
}
|
|
980
|
+
export declare class SwitchBuildingHandler {
|
|
981
|
+
private _indoor;
|
|
982
|
+
private _isEnabled;
|
|
983
|
+
constructor(indoor: Indoor);
|
|
984
|
+
enable(): void;
|
|
985
|
+
disable(): void;
|
|
986
|
+
get isEnabled(): boolean;
|
|
987
|
+
}
|
|
988
|
+
export declare class SwitchOutdoorHandler {
|
|
989
|
+
private _indoor;
|
|
990
|
+
private _isEnabled;
|
|
991
|
+
constructor(indoor: Indoor);
|
|
992
|
+
enable(): void;
|
|
993
|
+
disable(): void;
|
|
994
|
+
get isEnabled(): boolean;
|
|
995
|
+
}
|
|
592
996
|
declare class Map$1 extends Evented {
|
|
593
997
|
private _map;
|
|
594
998
|
private _indoor;
|
|
@@ -620,12 +1024,12 @@ declare class Map$1 extends Evented {
|
|
|
620
1024
|
/**
|
|
621
1025
|
* @description Get maplibre map instance.
|
|
622
1026
|
*/
|
|
623
|
-
getMaplibre():
|
|
1027
|
+
getMaplibre(): maplibregl$1.Map;
|
|
624
1028
|
/**
|
|
625
1029
|
* @description Get maplibre map instance.
|
|
626
1030
|
* @deprecated Use 'getMaplibre' instead.
|
|
627
1031
|
*/
|
|
628
|
-
getMap():
|
|
1032
|
+
getMap(): maplibregl$1.Map;
|
|
629
1033
|
/**
|
|
630
1034
|
* @description Get current selected floor info.
|
|
631
1035
|
* @return {IFloor | null}
|
|
@@ -818,19 +1222,6 @@ declare class Map$1 extends Evented {
|
|
|
818
1222
|
private _updatePermission;
|
|
819
1223
|
private _panToBuilding;
|
|
820
1224
|
}
|
|
821
|
-
export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
822
|
-
export interface IMarkerOptions {
|
|
823
|
-
lngLat: [
|
|
824
|
-
number,
|
|
825
|
-
number
|
|
826
|
-
];
|
|
827
|
-
properties?: {
|
|
828
|
-
[k: string]: string;
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
export interface IMarkerOptionsWithFeatureId extends IMarkerOptions {
|
|
832
|
-
featureId: number;
|
|
833
|
-
}
|
|
834
1225
|
export declare class Marker {
|
|
835
1226
|
private readonly _maplibreMap;
|
|
836
1227
|
private readonly _layerId;
|
|
@@ -952,404 +1343,204 @@ export declare class Marker {
|
|
|
952
1343
|
* @param buildingId {string | null | undefined} null | undefined will be treated as ''.
|
|
953
1344
|
* @param ordinal {string | null | undefined} null | undefined will be treated as ''.
|
|
954
1345
|
*/
|
|
955
|
-
setOpacityByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
|
|
956
|
-
private _createIconFeature;
|
|
957
|
-
private _addIconSource;
|
|
958
|
-
private _addIconLayer;
|
|
959
|
-
private _handleEventListener;
|
|
960
|
-
}
|
|
961
|
-
export declare class Poi {
|
|
962
|
-
private _map;
|
|
963
|
-
private _layerIds;
|
|
964
|
-
private _dispatch;
|
|
965
|
-
constructor(map: MaplibreMap);
|
|
966
|
-
/**
|
|
967
|
-
* @description Listen for POI click events.
|
|
968
|
-
* @param listener
|
|
969
|
-
*/
|
|
970
|
-
onPoiClick(listener: (param: IPoiEvent) => void): {
|
|
971
|
-
unsubscribe: VoidFunction;
|
|
972
|
-
};
|
|
973
|
-
private _bindEvents;
|
|
974
|
-
private _init;
|
|
975
|
-
private _initPoiClick;
|
|
976
|
-
private _getFloorDataByFloorId;
|
|
977
|
-
}
|
|
978
|
-
export interface IMultilingualName extends Partial<Record<PresetLanguage, string>> {
|
|
979
|
-
default: string;
|
|
980
|
-
}
|
|
981
|
-
export type IMultilingualAddress = Record<keyof IMultilingualName, {
|
|
982
|
-
housenumber: string;
|
|
983
|
-
street: string;
|
|
984
|
-
}>;
|
|
985
|
-
export interface ILocation {
|
|
986
|
-
lat: number;
|
|
987
|
-
lon: number;
|
|
988
|
-
}
|
|
989
|
-
export interface IBbox {
|
|
990
|
-
maxLat: number;
|
|
991
|
-
maxLon: number;
|
|
992
|
-
minLat: number;
|
|
993
|
-
minLon: number;
|
|
994
|
-
}
|
|
995
|
-
export interface IResponse<T> {
|
|
996
|
-
code: number;
|
|
997
|
-
message: string;
|
|
998
|
-
result: T;
|
|
999
|
-
}
|
|
1000
|
-
export interface IBuildingInlineFloor {
|
|
1001
|
-
code: string;
|
|
1002
|
-
id: string;
|
|
1003
|
-
ordinal: number;
|
|
1004
|
-
signalMap: boolean;
|
|
1005
|
-
visualMap: boolean;
|
|
1006
|
-
}
|
|
1007
|
-
export interface IBuilding {
|
|
1008
|
-
address: IMultilingualAddress;
|
|
1009
|
-
bbox: IBbox;
|
|
1010
|
-
buildingId: string;
|
|
1011
|
-
buildingOutlineId: number;
|
|
1012
|
-
city?: string;
|
|
1013
|
-
country: string;
|
|
1014
|
-
defaultFloor?: string;
|
|
1015
|
-
floors: IBuildingInlineFloor[];
|
|
1016
|
-
groundFloor: string;
|
|
1017
|
-
isPrivate: "yes" | "no";
|
|
1018
|
-
labelCenter: ILocation;
|
|
1019
|
-
name: IMultilingualName;
|
|
1020
|
-
organization: string;
|
|
1021
|
-
region: string;
|
|
1022
|
-
signalMap: boolean;
|
|
1023
|
-
type: string;
|
|
1024
|
-
venueId: string;
|
|
1025
|
-
venueName: IMultilingualName;
|
|
1026
|
-
visualMap: boolean;
|
|
1027
|
-
}
|
|
1028
|
-
export interface IResponseBuildings {
|
|
1029
|
-
buildings: IBuilding[];
|
|
1030
|
-
total: number;
|
|
1031
|
-
}
|
|
1032
|
-
export type TPromiseBuildings = AxiosPromise<IResponse<IResponseBuildings>>;
|
|
1033
|
-
export interface IVenueInlineBuilding {
|
|
1034
|
-
buildingOutlineId: number;
|
|
1035
|
-
defaultFloor?: string;
|
|
1036
|
-
floors: IBuildingInlineFloor[];
|
|
1037
|
-
id: string;
|
|
1038
|
-
labelCenter: ILocation;
|
|
1039
|
-
name: IMultilingualName;
|
|
1040
|
-
point: {
|
|
1041
|
-
type: string;
|
|
1042
|
-
coordinates: [
|
|
1043
|
-
number,
|
|
1044
|
-
number
|
|
1045
|
-
];
|
|
1046
|
-
};
|
|
1047
|
-
signalMap: boolean;
|
|
1048
|
-
visualMap: boolean;
|
|
1049
|
-
}
|
|
1050
|
-
export interface IVenue {
|
|
1051
|
-
address: IMultilingualAddress;
|
|
1052
|
-
bbox: IBbox;
|
|
1053
|
-
buildings: IVenueInlineBuilding[];
|
|
1054
|
-
businessStatus?: {
|
|
1055
|
-
status: string;
|
|
1056
|
-
};
|
|
1057
|
-
country: string;
|
|
1058
|
-
defaultBuilding?: string;
|
|
1059
|
-
id: string;
|
|
1060
|
-
labelCenter: ILocation;
|
|
1061
|
-
name: IMultilingualName;
|
|
1062
|
-
organization: string[];
|
|
1063
|
-
owner: string;
|
|
1064
|
-
publicData?: string[];
|
|
1065
|
-
photos?: object[];
|
|
1066
|
-
region: string;
|
|
1067
|
-
restricted: boolean;
|
|
1068
|
-
signalMap: boolean;
|
|
1069
|
-
totalPhotoCount?: number;
|
|
1070
|
-
type: string;
|
|
1071
|
-
venueOutlineId: number;
|
|
1072
|
-
visualMap: boolean;
|
|
1073
|
-
}
|
|
1074
|
-
export interface IResponseVenues {
|
|
1075
|
-
venues: IVenue[];
|
|
1076
|
-
total: number;
|
|
1077
|
-
}
|
|
1078
|
-
export type TPromiseVenues = AxiosPromise<IResponse<IResponseVenues>>;
|
|
1079
|
-
export declare class VenuesService {
|
|
1080
|
-
private _api;
|
|
1081
|
-
private _request;
|
|
1082
|
-
constructor();
|
|
1083
|
-
/**
|
|
1084
|
-
* @description Search venues by ids.
|
|
1085
|
-
* @param ids The number of IDs cannot exceed 10.
|
|
1086
|
-
*/
|
|
1087
|
-
searchByIds(ids: string | string[]): TPromiseVenues;
|
|
1088
|
-
/**
|
|
1089
|
-
* @description Search venues by center and distance.
|
|
1090
|
-
* @param keywords
|
|
1091
|
-
* @param center
|
|
1092
|
-
* @param distance Radius from center, unit is kilometers.
|
|
1093
|
-
* @param offset The maximum value is 100, default is 10.
|
|
1094
|
-
* @param page Default is 1.
|
|
1095
|
-
*/
|
|
1096
|
-
searchByDistance(keywords: string, center: [
|
|
1097
|
-
number,
|
|
1098
|
-
number
|
|
1099
|
-
], distance: number, offset?: number, page?: number): TPromiseVenues;
|
|
1100
|
-
/**
|
|
1101
|
-
* @description Search venues in specified bbox.
|
|
1102
|
-
* @param keywords
|
|
1103
|
-
* @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
|
|
1104
|
-
* @param offset The maximum value is 100, default is 10.
|
|
1105
|
-
* @param page Default is 1.
|
|
1106
|
-
*/
|
|
1107
|
-
searchByBbox(keywords: string, bbox: [
|
|
1108
|
-
number,
|
|
1109
|
-
number,
|
|
1110
|
-
number,
|
|
1111
|
-
number
|
|
1112
|
-
], offset?: number, page?: number): TPromiseVenues;
|
|
1346
|
+
setOpacityByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
|
|
1347
|
+
private _createIconFeature;
|
|
1348
|
+
private _addIconSource;
|
|
1349
|
+
private _addIconLayer;
|
|
1350
|
+
private _handleEventListener;
|
|
1351
|
+
}
|
|
1352
|
+
export declare class Poi {
|
|
1353
|
+
private _map;
|
|
1354
|
+
private _layerIds;
|
|
1355
|
+
private _dispatch;
|
|
1356
|
+
constructor(map: MaplibreMap);
|
|
1113
1357
|
/**
|
|
1114
|
-
* @description
|
|
1115
|
-
* @param
|
|
1116
|
-
* @param offset The maximum value is 100, default is 10.
|
|
1117
|
-
* @param page Default is 1.
|
|
1358
|
+
* @description Listen for POI click events.
|
|
1359
|
+
* @param listener
|
|
1118
1360
|
*/
|
|
1119
|
-
|
|
1120
|
-
|
|
1361
|
+
onPoiClick(listener: (param: IPoiEvent) => void): {
|
|
1362
|
+
unsubscribe: VoidFunction;
|
|
1363
|
+
};
|
|
1364
|
+
private _bindEvents;
|
|
1365
|
+
private _init;
|
|
1366
|
+
private _initPoiClick;
|
|
1367
|
+
private _getFloorDataByFloorId;
|
|
1121
1368
|
}
|
|
1122
|
-
export declare class
|
|
1123
|
-
private
|
|
1124
|
-
private
|
|
1125
|
-
|
|
1369
|
+
export declare class RoutePainter {
|
|
1370
|
+
private readonly _maplibreMap;
|
|
1371
|
+
private _fromMarkerIcon;
|
|
1372
|
+
private _toMarkerIcon;
|
|
1373
|
+
private _stopMarkerIcons;
|
|
1374
|
+
private _markerIconSize;
|
|
1375
|
+
private _paintProperties;
|
|
1376
|
+
constructor(maplibreMap: MaplibreMap);
|
|
1126
1377
|
/**
|
|
1127
|
-
* @description
|
|
1128
|
-
* @param
|
|
1378
|
+
* @description Set image[s] of the stop marker[s].
|
|
1379
|
+
* @param icons {**Array<string | null> | {from?: string | null; to?: string | null; stops?: Array<string | null> | null;}**}
|
|
1380
|
+
* Array of sprite names or URLs, or the object with specifying icon.
|
|
1381
|
+
* Markers use images in order of icons array.
|
|
1382
|
+
* First is as from-marker, last is as to-marker, the middles are as stop-markers.
|
|
1383
|
+
* If icons array has only one element, all stop markers use this image.
|
|
1384
|
+
* Image file must be in png, webp, or jpg format.
|
|
1385
|
+
* Null means none image.
|
|
1129
1386
|
*/
|
|
1130
|
-
|
|
1387
|
+
setMarkerIcons(icons: Array<string | null> | {
|
|
1388
|
+
from?: string | null;
|
|
1389
|
+
to?: string | null;
|
|
1390
|
+
stops?: Array<string | null> | null;
|
|
1391
|
+
}): Promise<void>;
|
|
1131
1392
|
/**
|
|
1132
|
-
* @description
|
|
1133
|
-
* @param
|
|
1134
|
-
* @param center
|
|
1135
|
-
* @param distance Radius from center, unit is kilometers.
|
|
1136
|
-
* @param offset The maximum value is 100, default is 10.
|
|
1137
|
-
* @param page Default is 1.
|
|
1393
|
+
* @description Set image icon scale.
|
|
1394
|
+
* @param size Default is 1.
|
|
1138
1395
|
*/
|
|
1139
|
-
|
|
1396
|
+
setMarkerIconSize(size: number): this;
|
|
1140
1397
|
/**
|
|
1141
|
-
* @description
|
|
1142
|
-
* @param
|
|
1143
|
-
*
|
|
1144
|
-
*
|
|
1145
|
-
* @param page Default is 1.
|
|
1398
|
+
* @description Set the route color of the indoor part.
|
|
1399
|
+
* @param color The color type is a color in the sRGB color space.
|
|
1400
|
+
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1401
|
+
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1146
1402
|
*/
|
|
1147
|
-
|
|
1403
|
+
setIndoorLineColor(color: string): this;
|
|
1148
1404
|
/**
|
|
1149
|
-
* @description
|
|
1150
|
-
* @param
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1405
|
+
* @description Set the route color of the outdoor part.
|
|
1406
|
+
* @param color The color type is a color in the sRGB color space.
|
|
1407
|
+
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1408
|
+
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1153
1409
|
*/
|
|
1154
|
-
|
|
1410
|
+
setOutdoorLineColor(color: string): this;
|
|
1155
1411
|
/**
|
|
1156
|
-
* @description
|
|
1157
|
-
* @param
|
|
1412
|
+
* @description Set color of dashed lines which connected the start and end markers.
|
|
1413
|
+
* @param color The color type is a color in the sRGB color space.
|
|
1414
|
+
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1415
|
+
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1158
1416
|
*/
|
|
1159
|
-
|
|
1160
|
-
private _changedRes;
|
|
1161
|
-
}
|
|
1162
|
-
export interface IPoi {
|
|
1163
|
-
accessibilityDetail: IMultilingualName;
|
|
1164
|
-
buildingId: string;
|
|
1165
|
-
category: string[];
|
|
1166
|
-
distance: number;
|
|
1167
|
-
floor: string;
|
|
1168
|
-
floorId: string;
|
|
1169
|
-
id: string;
|
|
1170
|
-
location: ILocation;
|
|
1171
|
-
name: IMultilingualName;
|
|
1172
|
-
osmRefId: number;
|
|
1173
|
-
poiId: string;
|
|
1174
|
-
venueId: string;
|
|
1175
|
-
/** @deprecated 'description' will be removed soon */
|
|
1176
|
-
description?: string;
|
|
1177
|
-
descriptions?: IMultilingualName;
|
|
1178
|
-
email?: string;
|
|
1179
|
-
openingHours?: string;
|
|
1180
|
-
phone?: string;
|
|
1181
|
-
website?: string;
|
|
1182
|
-
}
|
|
1183
|
-
export interface IResponsePois {
|
|
1184
|
-
pois: IPoi[];
|
|
1185
|
-
total: number;
|
|
1186
|
-
}
|
|
1187
|
-
export type TPromisePois = AxiosPromise<IResponse<IResponsePois>>;
|
|
1188
|
-
export type TPromiseCategories = AxiosPromise<IResponse<IPoiCategory[]>>;
|
|
1189
|
-
export type TPromiseOrientationPois = AxiosPromise<IResponse<IOrientationPoi[]>>;
|
|
1190
|
-
export declare enum DistanceSearchType {
|
|
1191
|
-
POINT = "Point",
|
|
1192
|
-
POLYGON = "Polygon",
|
|
1193
|
-
GATE = "Gate"
|
|
1194
|
-
}
|
|
1195
|
-
export interface IPoiCategory {
|
|
1196
|
-
category: string;
|
|
1197
|
-
description: string | null;
|
|
1198
|
-
id: string;
|
|
1199
|
-
title: Partial<Record<keyof IMultilingualName, string>>;
|
|
1200
|
-
}
|
|
1201
|
-
export interface IOrientationPoi {
|
|
1202
|
-
angle: number;
|
|
1203
|
-
buildingId: string;
|
|
1204
|
-
category: string[];
|
|
1205
|
-
distance: number;
|
|
1206
|
-
distanceSource: string;
|
|
1207
|
-
floor: string;
|
|
1208
|
-
floorId: string;
|
|
1209
|
-
id: string;
|
|
1210
|
-
location: ILocation;
|
|
1211
|
-
name: IMultilingualName;
|
|
1212
|
-
osmRefId: number;
|
|
1213
|
-
poiId: string;
|
|
1214
|
-
description?: string;
|
|
1215
|
-
email?: string;
|
|
1216
|
-
openingHours?: string;
|
|
1217
|
-
phone?: string;
|
|
1218
|
-
website?: string;
|
|
1219
|
-
}
|
|
1220
|
-
export interface ISearchDistance {
|
|
1417
|
+
setDashedLineColor(color: string): this;
|
|
1221
1418
|
/**
|
|
1222
|
-
*
|
|
1419
|
+
* @description Set color of shuttle bus line.
|
|
1420
|
+
* @param color The color type is a color in the sRGB color space.
|
|
1421
|
+
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1422
|
+
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1223
1423
|
*/
|
|
1224
|
-
|
|
1424
|
+
setBusLineColor(color: string): this;
|
|
1425
|
+
/**
|
|
1426
|
+
* @description Render route on the map.
|
|
1427
|
+
* @param path Route path from RouteService.search response.
|
|
1428
|
+
* @param markerLocations Coordinate([lng, lat]) array of markers, order from beginning to end.
|
|
1429
|
+
*/
|
|
1430
|
+
render(path: IRoutePath, markerLocations: Array<[
|
|
1225
1431
|
number,
|
|
1226
1432
|
number
|
|
1227
|
-
];
|
|
1433
|
+
]>): void;
|
|
1228
1434
|
/**
|
|
1229
|
-
*
|
|
1435
|
+
* @description Remove route from the map.
|
|
1230
1436
|
*/
|
|
1231
|
-
|
|
1437
|
+
remove(): void;
|
|
1232
1438
|
/**
|
|
1233
|
-
*
|
|
1439
|
+
* @description Filter paths' opacity by venue and ordinal.
|
|
1440
|
+
* @param venueId {string | null | undefined}
|
|
1441
|
+
* @param ordinal {string | null | undefined}
|
|
1234
1442
|
*/
|
|
1235
|
-
|
|
1443
|
+
setFilterByVenue(venueId: string | null | undefined, ordinal: string | null | undefined): void;
|
|
1236
1444
|
/**
|
|
1237
|
-
*
|
|
1445
|
+
* @description Filter paths' opacity by building and ordinal.
|
|
1446
|
+
* @param buildingId {string | null | undefined}
|
|
1447
|
+
* @param ordinal {string | null | undefined}
|
|
1238
1448
|
*/
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1449
|
+
setFilterByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
|
|
1450
|
+
private _classifyFeatures;
|
|
1451
|
+
private _createLineFeature;
|
|
1452
|
+
private _createIconFeature;
|
|
1453
|
+
private _renderSolidLines;
|
|
1454
|
+
private _renderDashedLines;
|
|
1455
|
+
private _renderConnectors;
|
|
1456
|
+
private _renderMarkers;
|
|
1457
|
+
private _addCollectionSource;
|
|
1458
|
+
private _addLineLayer;
|
|
1459
|
+
private _addTriangleLayer;
|
|
1460
|
+
private _addIconLayer;
|
|
1246
1461
|
}
|
|
1247
|
-
export
|
|
1248
|
-
|
|
1462
|
+
export declare class VenuesService {
|
|
1463
|
+
private _api;
|
|
1464
|
+
private _request;
|
|
1465
|
+
constructor();
|
|
1249
1466
|
/**
|
|
1250
|
-
*
|
|
1467
|
+
* @description Search venues by ids.
|
|
1468
|
+
* @param ids Single id string or string ids in array. The number of IDs cannot exceed 10.
|
|
1251
1469
|
*/
|
|
1252
|
-
|
|
1253
|
-
}
|
|
1254
|
-
export interface ISearchOrientation {
|
|
1470
|
+
searchByIds(ids: string | string[]): TPromiseVenues;
|
|
1255
1471
|
/**
|
|
1256
|
-
*
|
|
1472
|
+
* @description Search venues by center and distance.
|
|
1473
|
+
* @param keywords
|
|
1474
|
+
* @param center
|
|
1475
|
+
* @param distance Radius from center, unit is kilometers.
|
|
1476
|
+
* @param offset The maximum value is 100, default is 10.
|
|
1477
|
+
* @param page Default is 1.
|
|
1257
1478
|
*/
|
|
1258
|
-
center: [
|
|
1479
|
+
searchByDistance(keywords: string, center: [
|
|
1259
1480
|
number,
|
|
1260
1481
|
number
|
|
1261
|
-
];
|
|
1262
|
-
/**
|
|
1263
|
-
* The angle between the user's orientation and true north.
|
|
1264
|
-
*/
|
|
1265
|
-
angle: number;
|
|
1266
|
-
/**
|
|
1267
|
-
* The radius with 'center' as the center of the circle.
|
|
1268
|
-
*/
|
|
1269
|
-
distance: number;
|
|
1270
|
-
/**
|
|
1271
|
-
* The type of POI, default is 'Point'.
|
|
1272
|
-
*/
|
|
1273
|
-
distanceSearchType?: DistanceSearchType;
|
|
1274
|
-
}
|
|
1275
|
-
export interface IPoiSearchByOrientationAndBuildingOptions extends ISearchOrientation {
|
|
1276
|
-
buildingId: string;
|
|
1277
|
-
}
|
|
1278
|
-
export interface IPoiSearchByOrientationAndFloorOptions extends ISearchOrientation {
|
|
1279
|
-
floorId: string;
|
|
1280
|
-
}
|
|
1281
|
-
export interface IPoiSearchByOrientationAndOrdinalOptions extends ISearchOrientation {
|
|
1282
|
-
ordinal: string;
|
|
1283
|
-
}
|
|
1284
|
-
export type TPoiSearchByOrientationOptions = IPoiSearchByOrientationAndBuildingOptions | IPoiSearchByOrientationAndFloorOptions | IPoiSearchByOrientationAndOrdinalOptions;
|
|
1285
|
-
export interface IPoiSearchOrientationOptions {
|
|
1482
|
+
], distance: number, offset?: number, page?: number): TPromiseVenues;
|
|
1286
1483
|
/**
|
|
1287
|
-
*
|
|
1484
|
+
* @description Search venues in specified bbox.
|
|
1485
|
+
* @param keywords
|
|
1486
|
+
* @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
|
|
1487
|
+
* @param offset The maximum value is 100, default is 10.
|
|
1488
|
+
* @param page Default is 1.
|
|
1288
1489
|
*/
|
|
1289
|
-
|
|
1490
|
+
searchByBbox(keywords: string, bbox: [
|
|
1491
|
+
number,
|
|
1492
|
+
number,
|
|
1290
1493
|
number,
|
|
1291
1494
|
number
|
|
1292
|
-
];
|
|
1293
|
-
/**
|
|
1294
|
-
* The angle between cellphone's orientation and the north.
|
|
1295
|
-
*/
|
|
1296
|
-
angle: number;
|
|
1495
|
+
], offset?: number, page?: number): TPromiseVenues;
|
|
1297
1496
|
/**
|
|
1298
|
-
*
|
|
1497
|
+
* @description Search venues by global.
|
|
1498
|
+
* @param keywords
|
|
1499
|
+
* @param offset The maximum value is 100, default is 10.
|
|
1500
|
+
* @param page Default is 1.
|
|
1299
1501
|
*/
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1502
|
+
searchByGlobal(keywords: string, offset?: number, page?: number): TPromiseVenues;
|
|
1503
|
+
private _changedRes;
|
|
1504
|
+
}
|
|
1505
|
+
export declare class BuildingsService {
|
|
1506
|
+
private _api;
|
|
1507
|
+
private _request;
|
|
1508
|
+
constructor();
|
|
1303
1509
|
/**
|
|
1304
|
-
*
|
|
1510
|
+
* @description Search buildings by id[s].
|
|
1511
|
+
* @param ids Single id string or string ids in array. The number of IDs cannot exceed 10.
|
|
1305
1512
|
*/
|
|
1306
|
-
|
|
1513
|
+
searchByIds(ids: string | string[]): TPromiseBuildings;
|
|
1307
1514
|
/**
|
|
1308
|
-
* Search
|
|
1515
|
+
* @description Search buildings by center and distance.
|
|
1516
|
+
* @param keywords
|
|
1517
|
+
* @param center
|
|
1518
|
+
* @param distance Radius from center, unit is kilometers.
|
|
1519
|
+
* @param offset The maximum value is 100, default is 10.
|
|
1520
|
+
* @param page Default is 1.
|
|
1309
1521
|
*/
|
|
1310
|
-
|
|
1311
|
-
}
|
|
1312
|
-
export declare enum PoisOrderBy {
|
|
1313
|
-
DEFAULT_NAME = "DefaultName"
|
|
1314
|
-
}
|
|
1315
|
-
export interface ISearchKeywords {
|
|
1316
|
-
keywords?: string;
|
|
1522
|
+
searchByDistance(keywords: string, center: number[], distance: number, offset?: number, page?: number): TPromiseBuildings;
|
|
1317
1523
|
/**
|
|
1318
|
-
*
|
|
1524
|
+
* @description Search buildings in specified bbox.
|
|
1525
|
+
* @param keywords
|
|
1526
|
+
* @param bbox Rectangular area, [minLon, minLat, maxLon, maxLat].
|
|
1527
|
+
* @param offset The maximum value is 100, default is 10.
|
|
1528
|
+
* @param page Default is 1.
|
|
1319
1529
|
*/
|
|
1320
|
-
offset?: number;
|
|
1530
|
+
searchByBbox(keywords: string, bbox: number[], offset?: number, page?: number): TPromiseBuildings;
|
|
1321
1531
|
/**
|
|
1322
|
-
*
|
|
1532
|
+
* @description Search buildings global.
|
|
1533
|
+
* @param keywords
|
|
1534
|
+
* @param offset The maximum value is 100, default is 10.
|
|
1535
|
+
* @param page Default is 1.
|
|
1323
1536
|
*/
|
|
1324
|
-
page?: number;
|
|
1325
|
-
}
|
|
1326
|
-
export interface IPoiSearchByBuildingOptions extends ISearchKeywords {
|
|
1327
|
-
buildingId: string;
|
|
1328
|
-
orderBy?: PoisOrderBy;
|
|
1329
|
-
}
|
|
1330
|
-
export interface IPoiSearchByVenueOptions extends ISearchKeywords {
|
|
1331
|
-
venueId: string;
|
|
1332
|
-
orderBy?: PoisOrderBy;
|
|
1333
|
-
}
|
|
1334
|
-
export interface IPoiSearchByFloorOptions extends ISearchKeywords {
|
|
1335
|
-
floorId: string;
|
|
1336
|
-
orderBy?: PoisOrderBy;
|
|
1337
|
-
}
|
|
1338
|
-
export interface IPoiSearchByBoundsOptions extends ISearchKeywords {
|
|
1537
|
+
searchByGlobal(keywords: string, offset?: number, page?: number): TPromiseBuildings;
|
|
1339
1538
|
/**
|
|
1340
|
-
*
|
|
1539
|
+
* @description Search building by floor id.
|
|
1540
|
+
* @param floorId
|
|
1341
1541
|
*/
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
number,
|
|
1345
|
-
number
|
|
1346
|
-
],
|
|
1347
|
-
[
|
|
1348
|
-
number,
|
|
1349
|
-
number
|
|
1350
|
-
]
|
|
1351
|
-
];
|
|
1352
|
-
orderBy?: PoisOrderBy;
|
|
1542
|
+
searchByFloorId(floorId: string): TPromiseBuildings;
|
|
1543
|
+
private _changedRes;
|
|
1353
1544
|
}
|
|
1354
1545
|
export declare class PoisService {
|
|
1355
1546
|
private _api;
|
|
@@ -1359,7 +1550,7 @@ export declare class PoisService {
|
|
|
1359
1550
|
constructor();
|
|
1360
1551
|
/**
|
|
1361
1552
|
* @description Search POIs by id[s].
|
|
1362
|
-
* @param ids Single id string or
|
|
1553
|
+
* @param ids Single id string or string ids in array. The number of IDs cannot exceed 100.
|
|
1363
1554
|
*/
|
|
1364
1555
|
searchByIds(ids: string | string[]): TPromisePois;
|
|
1365
1556
|
/**
|
|
@@ -1447,88 +1638,6 @@ export declare class PoisService {
|
|
|
1447
1638
|
searchByCategory(options: TPoiSearchByCategoryOptions): TPromisePois;
|
|
1448
1639
|
private _changedRes;
|
|
1449
1640
|
}
|
|
1450
|
-
export declare enum VehicleType {
|
|
1451
|
-
FOOT = "foot",
|
|
1452
|
-
WHEELCHAIR = "wheelchair",
|
|
1453
|
-
ESCALATOR = "escalator",
|
|
1454
|
-
EMERGENCY = "emergency"
|
|
1455
|
-
}
|
|
1456
|
-
export interface IRouteInfo {
|
|
1457
|
-
copyrights: string[];
|
|
1458
|
-
took: number;
|
|
1459
|
-
}
|
|
1460
|
-
export interface IInstruction {
|
|
1461
|
-
building_id: string;
|
|
1462
|
-
distance: number;
|
|
1463
|
-
floor_id: string;
|
|
1464
|
-
heading: number;
|
|
1465
|
-
interval: [
|
|
1466
|
-
number,
|
|
1467
|
-
number
|
|
1468
|
-
];
|
|
1469
|
-
ordinal: number;
|
|
1470
|
-
sign: number;
|
|
1471
|
-
street_name: string;
|
|
1472
|
-
text: string;
|
|
1473
|
-
time: number;
|
|
1474
|
-
type: string | null;
|
|
1475
|
-
venue_id: string;
|
|
1476
|
-
}
|
|
1477
|
-
export interface IRoutePath {
|
|
1478
|
-
bbox: [
|
|
1479
|
-
number,
|
|
1480
|
-
number,
|
|
1481
|
-
number,
|
|
1482
|
-
number
|
|
1483
|
-
];
|
|
1484
|
-
distance: number;
|
|
1485
|
-
instructions: IInstruction[];
|
|
1486
|
-
points: {
|
|
1487
|
-
coordinates: Array<[
|
|
1488
|
-
number,
|
|
1489
|
-
number
|
|
1490
|
-
]>;
|
|
1491
|
-
type: string;
|
|
1492
|
-
};
|
|
1493
|
-
snapped_waypoints: {
|
|
1494
|
-
coordinates: Array<[
|
|
1495
|
-
number,
|
|
1496
|
-
number
|
|
1497
|
-
]>;
|
|
1498
|
-
type: string;
|
|
1499
|
-
};
|
|
1500
|
-
time: number;
|
|
1501
|
-
}
|
|
1502
|
-
export interface IResponseRoute {
|
|
1503
|
-
infos: IRouteInfo | null;
|
|
1504
|
-
paths: IRoutePath[];
|
|
1505
|
-
}
|
|
1506
|
-
export type TPromiseRoute = AxiosPromise<IResponse<IResponseRoute>>;
|
|
1507
|
-
export interface IRouteSearchOptions {
|
|
1508
|
-
/**
|
|
1509
|
-
* @description Points are in order, from -> stops -> to.
|
|
1510
|
-
* The length of points must be: 1 < {points.length} < 6.
|
|
1511
|
-
*/
|
|
1512
|
-
points: Array<{
|
|
1513
|
-
lat: number;
|
|
1514
|
-
lon: number;
|
|
1515
|
-
buildingId?: string;
|
|
1516
|
-
floorId?: string;
|
|
1517
|
-
}>;
|
|
1518
|
-
/**
|
|
1519
|
-
* @description Default is "foot".
|
|
1520
|
-
*/
|
|
1521
|
-
vehicle?: VehicleType;
|
|
1522
|
-
/**
|
|
1523
|
-
* @description Language-specific response. Default is "en".
|
|
1524
|
-
*/
|
|
1525
|
-
locale?: PresetLanguage;
|
|
1526
|
-
/**
|
|
1527
|
-
* @description Whether the end point of the route is at the door(otherwise in the room), default is "true".
|
|
1528
|
-
* @deprecated
|
|
1529
|
-
*/
|
|
1530
|
-
toDoor?: boolean;
|
|
1531
|
-
}
|
|
1532
1641
|
export declare class RouteService {
|
|
1533
1642
|
private _api;
|
|
1534
1643
|
private _request;
|
|
@@ -1539,97 +1648,6 @@ export declare class RouteService {
|
|
|
1539
1648
|
*/
|
|
1540
1649
|
search(options: IRouteSearchOptions): TPromiseRoute;
|
|
1541
1650
|
}
|
|
1542
|
-
export declare class RoutePainter {
|
|
1543
|
-
private readonly _maplibreMap;
|
|
1544
|
-
private _fromMarkerIcon;
|
|
1545
|
-
private _toMarkerIcon;
|
|
1546
|
-
private _stopMarkerIcons;
|
|
1547
|
-
private _markerIconSize;
|
|
1548
|
-
private _paintProperties;
|
|
1549
|
-
constructor(maplibreMap: MaplibreMap);
|
|
1550
|
-
/**
|
|
1551
|
-
* @description Set image[s] of the stop marker[s].
|
|
1552
|
-
* @param icons Array of sprite names or URLs, or the object with specifying icon.
|
|
1553
|
-
* Markers use images in order of icons array.
|
|
1554
|
-
* First is as from-marker, last is as to-marker, the middles are as stop-markers.
|
|
1555
|
-
* If icons array has only one element, all stop markers use this image.
|
|
1556
|
-
* Image file must be in png, webp, or jpg format.
|
|
1557
|
-
*/
|
|
1558
|
-
setMarkerIcons(icons: string[] | {
|
|
1559
|
-
from?: string;
|
|
1560
|
-
to?: string;
|
|
1561
|
-
stops?: string[];
|
|
1562
|
-
}): Promise<void>;
|
|
1563
|
-
/**
|
|
1564
|
-
* @description Set image icon scale.
|
|
1565
|
-
* @param size Default is 1.
|
|
1566
|
-
*/
|
|
1567
|
-
setMarkerIconSize(size: number): this;
|
|
1568
|
-
/**
|
|
1569
|
-
* @description Set the route color of the indoor part.
|
|
1570
|
-
* @param color The color type is a color in the sRGB color space.
|
|
1571
|
-
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1572
|
-
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1573
|
-
*/
|
|
1574
|
-
setIndoorLineColor(color: string): this;
|
|
1575
|
-
/**
|
|
1576
|
-
* @description Set the route color of the outdoor part.
|
|
1577
|
-
* @param color The color type is a color in the sRGB color space.
|
|
1578
|
-
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1579
|
-
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1580
|
-
*/
|
|
1581
|
-
setOutdoorLineColor(color: string): this;
|
|
1582
|
-
/**
|
|
1583
|
-
* @description Set color of dashed lines which connected the start and end markers.
|
|
1584
|
-
* @param color The color type is a color in the sRGB color space.
|
|
1585
|
-
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1586
|
-
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1587
|
-
*/
|
|
1588
|
-
setDashedLineColor(color: string): this;
|
|
1589
|
-
/**
|
|
1590
|
-
* @description Set color of shuttle bus line.
|
|
1591
|
-
* @param color The color type is a color in the sRGB color space.
|
|
1592
|
-
* Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA.
|
|
1593
|
-
* Predefined HTML colors names, like yellow and blue, are also permitted.
|
|
1594
|
-
*/
|
|
1595
|
-
setBusLineColor(color: string): this;
|
|
1596
|
-
/**
|
|
1597
|
-
* @description Render route on the map.
|
|
1598
|
-
* @param path Route path from RouteService.search response.
|
|
1599
|
-
* @param markerLocations Coordinate([lng, lat]) array of markers, order from beginning to end.
|
|
1600
|
-
*/
|
|
1601
|
-
render(path: IRoutePath, markerLocations: Array<[
|
|
1602
|
-
number,
|
|
1603
|
-
number
|
|
1604
|
-
]>): void;
|
|
1605
|
-
/**
|
|
1606
|
-
* @description Remove route from the map.
|
|
1607
|
-
*/
|
|
1608
|
-
remove(): void;
|
|
1609
|
-
/**
|
|
1610
|
-
* @description Filter paths' opacity by venue and ordinal.
|
|
1611
|
-
* @param venueId {string | null | undefined}
|
|
1612
|
-
* @param ordinal {string | null | undefined}
|
|
1613
|
-
*/
|
|
1614
|
-
setFilterByVenue(venueId: string | null | undefined, ordinal: string | null | undefined): void;
|
|
1615
|
-
/**
|
|
1616
|
-
* @description Filter paths' opacity by building and ordinal.
|
|
1617
|
-
* @param buildingId {string | null | undefined}
|
|
1618
|
-
* @param ordinal {string | null | undefined}
|
|
1619
|
-
*/
|
|
1620
|
-
setFilterByBuilding(buildingId: string | null | undefined, ordinal: string | null | undefined): void;
|
|
1621
|
-
private _classifyFeatures;
|
|
1622
|
-
private _createLineFeature;
|
|
1623
|
-
private _createIconFeature;
|
|
1624
|
-
private _renderSolidLines;
|
|
1625
|
-
private _renderDashedLines;
|
|
1626
|
-
private _renderConnectors;
|
|
1627
|
-
private _renderMarkers;
|
|
1628
|
-
private _addCollectionSource;
|
|
1629
|
-
private _addLineLayer;
|
|
1630
|
-
private _addTriangleLayer;
|
|
1631
|
-
private _addIconLayer;
|
|
1632
|
-
}
|
|
1633
1651
|
export declare const OFFSET: number;
|
|
1634
1652
|
export declare const PAGE: number;
|
|
1635
1653
|
/**
|
|
@@ -1637,20 +1655,12 @@ export declare const PAGE: number;
|
|
|
1637
1655
|
* @param language {string} window.navigator.language
|
|
1638
1656
|
*/
|
|
1639
1657
|
export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
|
|
1640
|
-
/**
|
|
1641
|
-
* @deprecated Use `VERSION` instead.
|
|
1642
|
-
*/
|
|
1658
|
+
/** @deprecated Use `VERSION` instead. */
|
|
1643
1659
|
export declare const version: string;
|
|
1644
1660
|
export declare const VERSION: string;
|
|
1645
1661
|
|
|
1646
1662
|
export {
|
|
1647
|
-
ControlPosition,
|
|
1648
|
-
FilterSpecification,
|
|
1649
1663
|
Map$1 as Map,
|
|
1650
|
-
MapGeoJSONFeature,
|
|
1651
|
-
MapLayerEventType,
|
|
1652
|
-
MaplibreMap,
|
|
1653
|
-
PointLike,
|
|
1654
1664
|
};
|
|
1655
1665
|
|
|
1656
1666
|
export {};
|