You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/Map/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,14 @@ Map
6
6
7
7
`address?: string;` - URL-escaped place name, address. You need to use it for `Google maps`
8
8
9
+
`forceAspectRatio?: boolean` - Determines whether map's aspect ratio is forced autmatically (16:9 for Desktop, 4:3 for Mobile), `true` by default
10
+
9
11
`id?: string` - map id. You need to use it for `Yandex maps`. As an id, you can specify a short description, for example `offices`, and the full id will be `ymap-offices`
10
12
13
+
`disableControls?: boolean` - If `true`, hides map's default controls. Only for `Yandex maps`. `false` by default
14
+
15
+
`disableBalloons?: boolean` - If `true`, disables info ballon opening when clicking on a marker. Only for `Yandex maps`. `false` by default
16
+
11
17
`markers?: object[]` - Description for placemarkers. You need to use it for `Yandex maps`. Specify the parameters given below.
12
18
13
19
-`address?: string` — Place name, address
@@ -17,4 +23,10 @@ Map
17
23
-`iconCaption?: string` - Caption for the geo object's icon
18
24
-`iconContent?: string` - Content of the geo object's icon
19
25
-`iconColor?: string` - The color of the placemark. There are three ways to set the color: using a keyword, in Hex format, or RGB. A red placemark is used by default.
-`iconImageSize?: [number, number]` - Dimensions of custom icon image
28
+
-`iconImageOffset?: [number, number]` - Custom icon image's offset relative to it's anchor point
29
+
-`iconImageClipRect?: [[number, number], [number, number]]` - Coordinates of custom icon image's displayed rectangular area, in pixels
30
+
-`iconLayout?: 'default#image'` - Required to use custom icons for a geo object
31
+
-`iconShape?: Record<string, any>` - Icon's active area shape. Refer to documentation [e.g. Circle](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/shape.Circle)
20
32
-`preset?: string` - Key for the placemark's preset options. A `islands#dotIcon` is used by default. The list of available keys is stored in the [presetStorage](https://yandex.com/dev/maps/jsapi/doc/2.1/ref/reference/option.presetStorage.html) description
`iconImageSize?: [number, number]` - Optional dimensions of custom icon
56
+
57
+
`iconImageOffset?: [number, number]` - Optional custom icon's offset relative to it's anchor point
58
+
59
+
`iconImageClipRect?: [[number, number], [number, number]]` - Optional coordinates of custom icon's displayed rectangular area, in pixels
60
+
61
+
`iconLayout?: 'default#image'` - Required to use custom icons for a marker, otherwise optional
62
+
63
+
`iconShape?: Record<string, any>` - Optional active area shape for custom icon. Refer to documentation [e.g. Circle](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/shape.Circle)
64
+
47
65
`preset?: string` — Optional preset style for the marker
0 commit comments