-
Notifications
You must be signed in to change notification settings - Fork 66
/
index.d.ts
1263 lines (1067 loc) · 29.7 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
declare module "react-native-hms-map" {
import * as React from "react";
import {NativeSyntheticEvent, ViewProps, View} from "react-native";
/**
* Defines the longitude and latitude, in degrees.
*/
export interface LatLng {
/**
* Latitude. The value ranges from –90 to 90.
*/
latitude: number;
/**
* Longitude. The value ranges from –180 to 180 (excluded).
*/
longitude: number;
}
/**
* A rectangular area using a pair of longitude and latitude.
*/
export interface LatLngBounds {
/**
* Northeast corner of the bound.
*/
northeast: LatLng;
/**
* Southwest corner of the bound.
*/
southwest: LatLng;
}
/**
* Contains information of UI and gesture controls of the map.
*/
export interface UiSettings {
/**
* Whether the compass is enabled for the map.
*/
isCompassEnabled: boolean;
/**
* Whether the my-location icon is enabled for the map.
*/
isMyLocationButtonEnabled: boolean;
/**
* Whether rotate gestures are enabled for the map.
*/
isRotateGesturesEnabled: boolean;
/**
* Whether scroll gestures are enabled for the map.
*/
isScrollGesturesEnabled: boolean;
/**
* Whether scroll gestures are enabled during rotation or zooming.
*/
isScrollGesturesEnabledDuringRotateOrZoom: boolean;
/**
* Whether tilt gestures are enabled for the map.
*/
isTiltGesturesEnabled: boolean;
/**
* Whether zoom controls are enabled.
*/
isZoomControlsEnabled: boolean;
/**
* Whether zoom gestures are enabled for the map.
*/
isZoomGesturesEnabled: boolean;
}
/**
* Contains all camera position parameters.
*/
export interface CameraPosition {
/**
* Longitude and latitude of the location that the camera is pointing at.
*/
target: LatLng;
/**
* Zoom level near the center of the screen.
*/
zoom?: number;
/**
* Angle of the camera from the nadir (directly facing the Earth's surface).
*/
tilt?: number;
/**
* Direction that the camera is pointing in.
*/
bearing?: number;
}
/**
* It contains four points that define a tetragon visible in the
* camera of a map. The tetragon may be a trapezoid instead of
* rectangle because the camera may tilt. If the camera is
* directly over the center of the visible region, the shape is
* rectangular. If the camera tilts, the shape will be a trapezoid
* whose smallest side is closest to the point of view.
*/
export interface VisibleRegion {
/**
* Far left corner of the camera..
*/
farLeft: LatLng;
/**
* Far right corner of the camera.
*/
farRight: LatLng;
/**
* Near left corner of the camera.
*/
nearLeft: LatLng;
/**
* Near right corner of the camera.
*/
nearRight: LatLng;
/**
* Smallest bounding box that includes the visible region.
*/
latLngBounds: LatLngBounds;
}
/**
* Contains map information.
*/
export interface HuaweiMap {
/**
* The current position of the camera.
*/
cameraPosition: CameraPosition;
/**
* The current map type.
*/
mapType: number;
/**
* The maximum zoom level at the current camera position.
*/
maxZoomLevel: number;
/**
* The minimum zoom level at the current camera position.
*/
minZoomLevel: number;
/**
* The current visible region on the map.
*/
visibleRegion: VisibleRegion;
/**
* The current UI settings.
*/
uiSettings: UiSettings;
/**
* Whether the 3D building layer is enabled for a map.
*/
isBuildingsEnabled: boolean;
/**
* Whether my location layer is enabled for a map.
*/
isMyLocationEnabled: boolean;
}
/**
* Coordinates of a location on the screen, in pixels.
*/
export interface Point {
x: number;
y: number;
}
/**
* Contains attributes about the POI.
*/
export interface PointOfInterest {
/**
* Position of the POI.
*/
latLng: LatLng;
/**
* Name of the POI.
*/
name: string;
/**
* Place id of the POI.
*/
placeId: string;
}
/**
* Contains information of clicked(or long-clicked) place on the map.
*/
export interface ProjectionOnLatLng {
/**
* Point of the place.
*/
point: Point;
/**
* Coordinate of the place.
*/
coordinate: LatLng;
/**
* The current visible region on the map.
*/
visibleRegion: VisibleRegion;
}
/**
* Type of the stroke pattern used for a polyline or the outline
* of a polygon or circle.
* DASH = 0;
* DOT = 1;
* GAP = 2;
*/
export type PatternItemType = 0 | 1 | 2;
/**
* The stroke pattern of a polyline or the outline of a polygon or circle
*/
export interface PatternItem {
/**
* Type of the stroke pattern.
*/
type: PatternItemType;
/**
* Length of a gap, in pixels.
* Not needed for `DOT` type
*/
length?: number;
}
/**
* Hue colors defined in sdk.
* RED = 0.0;
* ORANGE = 30.0;
* YELLOW = 60.0;
* GREEN = 120.0;
* CYAN = 180.0;
* AZURE = 210.0;
* BLUE = 240.0;
* VIOLET = 270.0;
* MAGENTA = 300.0;
* ROSE = 330.0;
*/
export type Hue =
| 0.0
| 30.0
| 60.0
| 120.0
| 180.0
| 210.0
| 240.0
| 270.0
| 300.0
| 330.0;
/**
* Creates the definition of a bitmap image.
*/
export interface BitmapDescriptor {
/**
* Creates object for default marker icons in
* different colors using different hue values.
* Possible values are 0, 30, 60, 120, 180, 210, 240, 270, 300, 330
*/
hue?: Hue;
/**
* Creates object using an image resource in the assets directory.
*/
asset?: string;
/**
* Creates object using the name of an image file
* in the internal storage.
*/
file?: string;
/**
* Creates object using the absolute path to an image resource.
*/
path?: string;
}
/**
* Type of the cap that is applied at the start or end vertex of a polyline.
* BUTT = 0;
* SQUARE = 1;
* ROUND = 2;
* CUSTOM = 3;
*/
export type CapType = 0 | 1 | 2 | 3;
/**
* Defines a cap that is applied at the start or end vertex of a polyline.
*/
export interface Cap extends BitmapDescriptor {
/**
* Type of the cap.
*/
type: CapType;
/**
* Reference stroke width, in pixels when using `CUSTOM` type cap.
*/
refWidth?: number;
}
export interface TileProvider {
/**
* URL String for tiles. Ex: "https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
*/
url: string;
/**
* Width of a tile, in pixels.
*/
width?: number;
/**
* Height of a tile, in pixels.
*/
height?: number;
}
/**
* Events triggered by the map.
*/
export interface MapEvent<T = {}> extends NativeSyntheticEvent<T> {}
/**
* Props for <Circle> component.
*/
export interface CircleProps {
/**
* Center of the circle.
*/
center: LatLng;
/**
* Radius of the circle.
*/
radius: number;
/**
* Whether the circle is tappable.
*/
clickable?: boolean;
/**
* The fill color of the circle, in ARGB format.
*/
fillColor?: number;
/**
* The stroke color of the circle's outline.
*/
strokeColor?: number;
/**
* The stroke width of the circle's outline.
*/
strokeWidth?: number;
/**
* Stroke pattern of the circle's outline.
*/
strokePattern?: PatternItem[];
/**
* Whether the circle is visible.
*/
visible?: boolean;
/**
* The z-index of the circle. The z-index indicates the overlapping order
* of the circle. A circle with a larger z-index overlaps that with
* a smaller z-index. Circles with the same z-index overlap each other
* in a random order. By default, the z-index is 0.
*/
zIndex?: number;
/**
* Event listener for clicks on the cricle.
*/
onClick?: (event: MapEvent<{}>) => void;
}
/**
* React component that shows a circle object on the map.
*/
export class Circle extends React.Component<CircleProps, any> {}
/**
* The joint type for a polyline or the outline of a polygon.
* DEFAULT = 0;
* BEVEL = 1;
* ROUND = 2;
*/
export type JointType = 0 | 1 | 2;
/**
* Props for <Polygon> component.
*/
export interface PolygonProps {
/**
* Vertex coordinates of the polygon.
*/
points?: LatLng[];
/**
* Holes in the polygon.
*/
holes?: LatLng[][];
/**
* Whether the polygon is tappable.
*/
clickable?: boolean;
/**
* The fill color of the polygon, in ARGB format.
*/
fillColor?: number;
/**
* Whether each segment of the polygon is drawn as a geodesic.
*/
geodesic?: boolean;
/**
* The stroke color of the polygon's outline.
*/
strokeColor?: number;
/**
* The joint type of the polygon.
*/
strokeJointType: JointType;
/**
* The stroke width of the polygon's outline, in pixels.
*/
strokeWidth?: number;
/**
* The stroke pattern of the polygon's outline. By default,
* the stroke pattern is solid, represented by null.
*/
strokePattern?: PatternItem[];
/**
* Whether the polygon is visible.
*/
visible?: boolean;
/**
* The z-index of the polygon. The z-index indicates the overlapping order
* of the polygon. A polygon with a larger z-index overlaps that with
* a smaller z-index. Polygons with the same z-index overlap each other in
* a random order.
*/
zIndex?: number;
/**
* Event listener for clicks on the polygon.
*/
onClick?: (event: MapEvent<{}>) => void;
}
/**
* React component that shows a polygon object on the map.
* A polygon can be convex or concave. It can span
* the 180 meridian and have holes that are not filled in.
*/
export class Polygon extends React.Component<PolygonProps, any> {}
/**
* Props for <Polyline> component.
*/
export interface PolylineProps {
/**
* Vertex set of the polyline.
*/
points?: LatLng[];
/**
* Whether the polyline is tappable.
*/
clickable?: boolean;
/**
* The stroke color of a polyline in ARGB format.
*/
color?: number;
/**
* Whether each segment of the polyline is drawn as a geodesic.
*/
geodesic?: boolean;
/**
* The joint type of all vertices of the polyline,
* except the start and end vertices.
*/
jointType: JointType;
/**
* The stroke pattern of the polyline.
*/
pattern?: PatternItem[];
/**
* The start vertex of the polyline.
*/
startCap?: Cap;
/**
* The end vertex of the polyline.
*/
endCap?: Cap;
/**
* The stroke width of the polyline.
*/
width?: number;
/**
* Whether the polyline is visible.
*/
visible?: boolean;
/**
* The z-index of a polyline. The z-index indicates the overlapping order
* of a polyline. A polyline with a larger z-index overlaps that with
* a smaller z-index. Polylines with the same z-index overlap each other
* in any order.
*/
zIndex?: number;
/**
* Event listener for clicks on the polyline.
*/
onClick?: (event: MapEvent<{}>) => void;
}
/**
* React component that shows a polyline object, which is a list of
* vertices where line segments are drawn between consecutive
* vertices, on the map.
*/
export class Polyline extends React.Component<PolylineProps, any> {}
/**
* Props for <Marker> component.
*/
export interface MarkerProps {
/**
* The position of a marker.
*/
coordinate: LatLng;
/**
* Whether the marker can be dragged.
*/
draggable?: boolean;
/**
* The icon of the marker.
*/
icon?: BitmapDescriptor;
/**
* The transparency of the marker.
*/
alpha?: number;
/**
* Whether the marker is flatly attached to the map.
*/
flat?: boolean;
/**
* The anchor point of the marker. The anchor point is used to anchor
* a marker image to the map.
* The coordinates [0, 0], [1, 0], [0, 1], and [1, 1] respectively
* indicate the top-left, top-right, bottom-left, and bottom-right
* corners of the marker image.
*/
markerAnchor?: [number, number];
/**
* The anchor point of the marker's information window. The anchor point
* is used to anchor a marker image to the map.
* The coordinates [0, 0], [1, 0], [0, 1], and [1, 1] respectively
* indicate the top-left, top-right, bottom-left, and bottom-right
* corners of the marker image.
*/
infoWindowAnchor?: [number, number];
/**
* The rotation angle of the marker.
*/
rotation?: number;
/**
* The title of the marker.
*/
title?: string;
/**
* The text of the marker.
*/
snippet?: string;
/**
* Whether the marker is visible.
*/
visible?: boolean;
/**
* The z-index of the marker. The z-index indicates the overlapping order
* of a marker. A marker with a larger z-index overlaps that with
* a smaller z-index. Markers with the same z-index overlap each other
* in a random order.
*/
zIndex?: number;
/**
* Whether the marker can be clustered.
*/
clusterable?: boolean;
/**
* Listener for the event called when the marker is clicked.
*/
onClick?: (event: MapEvent<{}>) => void;
/**
* Listener for the event called when the marker starts being dragged.
*/
onDragStart?: (event: MapEvent<{}>) => void;
/**
* Listener for the event called when the marker is being dragged.
*/
onDrag?: (event: MapEvent<{}>) => void;
/**
* Listener for the event called when the marker dragging is complete.
*/
onDragEnd?: (event: MapEvent<{}>) => void;
/**
* Event listener for clicks on the information window.
*/
onInfoWindowClick?: (event: MapEvent<{}>) => void;
/**
* Listener for the event called when information window is closed.
*/
onInfoWindowClose?: (event: MapEvent<{}>) => void;
/**
* Event listener for long clicks on the information window.
*/
onInfoWindowLongClick?: (event: MapEvent<{}>) => void;
}
/**
* React component that shows a marker object, an icon placed at
* a specified position, on the map.
*/
export class Marker extends React.Component<MarkerProps, any> {
/**
* Shows infromation window.
*/
showInfoWindow(): void;
/**
* Hides infromation window.
*/
hideInfoWindow(): void;
}
/**
* React component that shows infromation window on a marker
*/
export class InfoWindow extends React.Component<ViewProps, any> {}
export interface LatLngWithSize extends LatLng {
/**
* Height of a ground overlay, in meters
*/
height: number;
/**
* Width of a ground overlay, in meters
*/
width: number;
}
/**
* Props for <GroundOverlay> component.
*/
export interface GroundOverlayProps {
/**
* The image for the ground overlay.
*/
image: BitmapDescriptor;
/**
* The position of the ground overlay.
*/
coordinate: LatLngWithSize | LatLng[];
/**
* The alignment (that is, anchor point) of a ground overlay.
* The coordinates [0, 0], [1, 0], [0, 1], and [1, 1] respectively
* indicate the top-left, top-right, bottom-left, and bottom-right
* corners of the ground overlay. If no anchor point is set, the center
* point (0.5, 0.5) of the ground overlay will be used by default.
*/
anchor?: [number, number];
/**
* The bearing of the ground overlay, in degrees clockwise from north.
* The value ranges from 0 to 360 (excluded).
*/
bearing?: number;
/**
* Whether the ground overlay is tappable.
*/
clickable?: boolean;
/**
* The transparency of the ground overlay.The value ranges from 0 to 1.
* The value 0 indicates opaque and the value 1 indicates transparent.
*/
transparency?: number;
/**
* Whether the ground overlay is visible.
*/
visible?: boolean;
/**
* The z-index of the ground overlay. The z-index indicates
* the overlapping order of a ground overlay. A ground overlay with
* a larger z-index overlaps that with a smaller z-index. Ground overlays
* with the same z-index overlap each other in a random order.
* By default, the z-index is 0.
*/
zIndex?: number;
/**
* Listener for the event called when the ground overlay is clicked.
*/
onClick?: (event: MapEvent<{}>) => void;
}
/**
* React component that shows a ground overlay object, an image
* that is fixed to the map.
*/
export class GroundOverlay extends React.Component<GroundOverlayProps, any> {}
/**
* Props for <TileOverlay> component.
*/
export interface TileOverlayProps {
/**
* The provider of the tile overlay.
*/
tileProvider: TileProvider;
/**
* Whether the tile overlay fades in.
*/
fadeIn?: boolean;
/**
* The transparency of the tile overlay.
*/
transparency?: number;
/**
* Whether the tile overlay is visible.
*/
visible?: boolean;
/**
* The z-index of the tile overlay. The z-index indicates the overlapping
* order of a tile overlay. A tile overlay with a larger z-index overlaps
* that with a smaller z-index. Tile overlays with the same z-index
* overlap each other in any order.
*/
zIndex?: number;
}
/**
* React component that shows a tile overlay object,
* which is a set of images to be displayed on a map.
*/
export class TileOverlay extends React.Component<TileOverlayProps, any> {
/**
* Clears the cache of the tile overlay.
*/
clearTileCache(): void;
}
/**
* Padding on a map.
*/
export interface MapPadding {
/**
* Distance from the visible region to the right edge
* of the map, in pixels.
*/
right?: number;
/**
* Distance from the visible region to the left edge
* of the map, in pixels.
*/
left?: number;
/**
* Distance from the visible region to the top edge
* of the map, in pixels.
*/
top?: number;
/**
* Distance from the visible region to the bottom edge
* of the map, in pixels.
*/
bottom?: number;
}
/**
* Contains bitmap string of the snapshot image.
*/
export interface SnapshotImage {
/**
* Bitmap string of the snapshot image.
*/
bitmap: string;
}
/**
* The type of the map.
* NONE = 0; Empty grid map.
* NORMAL = 1; Basic map.
*/
export type MapType = 0 | 1;
/**
* Props for <MapView> component.
*/
export interface MapViewProps extends ViewProps {
/**
* Starting position of the camera on the map.
*/
camera?: CameraPosition;
/**
* Bounds to constraint the camera target so that the camera target does
* not move outside the bounds when a user scrolls the map.
*/
latLngBoundsForCameraTarget?: LatLng[];
/**
* Whether to use animation on camera update.
*/
useAnimation?: boolean;
/**
* Duration of the animation in ms. By default, the camera animation
* takes 250 milliseconds
*/
animationDuration?: number;
/**
* Whether to enable the compass for the map.
*/
compassEnabled?: boolean;
/**
* Type of the map.
*/
mapType?: MapType;
/**
* The preferred minimum zoom level of the camera. The value must be
* greater than or equal to the minimum zoom level (0) supported by
* the HUAWEI Map SDK. If the preferred minimum zoom level is higher
* than the current maximum zoom level, the SDK uses the preferred
* minimum zoom level as both the minimum and maximum zoom levels.
* Assume that the current minimum and maximum zoom levels are
* 4 and 10, respectively. If you set the preferred minimum zoom level
* to 15, the SDK uses the value 15 as both the minimum and maximum zoom
* levels. That is, the zoom level of the camera is fixed at 15.
*/
minZoomPreference?: number;
/**
* The preferred maximum zoom level of the camera. If the preferred
* maximum zoom level is lower than the current minimum zoom level,
* the SDK uses the preferred maximum zoom level as both the minimum
* and maximum zoom levels. Assume that the current minimum and maximum
* zoom levels are 6 and 15, respectively. If you set the preferred
* maximum zoom level to 4, the SDK uses the value 4 as both the minimum
* and maximum zoom levels. That is, the zoom level of the camera is
* fixed at 4.
*/
maxZoomPreference?: number;
/**
* Whether rotate gestures are enabled for the map.
*/
rotateGesturesEnabled?: boolean;
/**
* Whether scroll gestures are enabled for the map.
*/
scrollGesturesEnabled?: boolean;
/**
* Whether tilt gestures are enabled for the map.
*/
tiltGesturesEnabled?: boolean;
/**
* Whether to enable the zoom function for the camera.
*/
zoomControlsEnabled?: boolean;
/**
* Whether zoom gestures are enabled for the map.
*/
zoomGesturesEnabled?: boolean;
/**
* Whether the 3D building layer is enabled for the map.
*/
buildingsEnabled?: boolean;
/**
* the content description to the map. If the auxiliary mode is enabled,
* voice description about the map will be provided.
*/
description?: string;
/**
* JSON string for styling the map.
*/
mapStyle?: string;