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
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
| type |`literal`|`none`|`false`| Allows static check of the data type. For internal use only. |
25
25
| centerCoordinate |`Position`|`none`|`false`| The location on which the map should center. |
26
26
| bounds |`intersection`|`none`|`false`| The corners of a box around which the map should bound. Contains padding props for backwards<br/>compatibility; the root `padding` prop should be used instead. |
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property<br/>from which the receiver obtains the data to style. |
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property<br/>from which the receiver obtains the data to style. |
| images |`object`|`none`|`false`| Specifies the external images in key-value pairs required for the shape source.<br/>Keys are names - see iconImage expressions, values can be either urls-s objects<br/>with format {uri: 'http://...'}` or `require('image.png')` or `import 'image.png'` |
9
9
| nativeAssetImages |`array`|`none`|`false`| If you have an asset under Image.xcassets on iOS and the drawables directory on android<br/>you can specify an array of string names with assets as the key `['pin']`. |
10
10
| onImageMissing |`func`|`none`|`false`| Gets called when a Layer is trying to render an image whose key is not present in<br/>any of the `Images` component of the Map. |
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
| coordinate |`tuple`|`none`|`true`| The center point (specified as a map coordinate) of the marker.<br/>See also #anchor. |
14
14
| anchor |`shape`|`{ x: 0.5, y: 0.5 }`|`false`| Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
15
15
| x |`number`|`none`|`true`|`x` of anchor |
| androidRenderMode |`enum`|`none`|`false`| Android render mode.<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
9
9
| iosShowsUserHeadingIndicator |`bool`|`none`|`false`| iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.<br/><br/>@platform ios |
| id |`string`|`none`|`true`| A string that uniquely identifies the annotation |
15
15
| title |`string`|`none`|`false`| The string containing the annotation’s title. Note this is required to be set if you want to see a callout appear on iOS. |
16
16
| snippet |`string`|`none`|`false`| The string containing the annotation’s snippet(subtitle). Not displayed in the default callout. |
| draggable |`boolean`|`false`|`false`| Enable or disable dragging. Defaults to false. |
19
+
| coordinate |`tuple`|`none`|`true`| The center point (specified as a map coordinate) of the annotation. |
20
20
| anchor |`shape`|`{ x: 0.5, y: 0.5 }`|`false`| Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
21
21
| x |`number`|`none`|`true`| See anchor |
22
22
| y |`number`|`none`|`true`| See anchor |
23
-
| onSelected |`func`|`none`|`false`| This callback is fired once this annotation is selected. Returns a Feature as the first param. |
24
-
| onDeselected |`func`|`none`|`false`| This callback is fired once this annotation is deselected. |
25
-
| onDragStart |`func`|`none`|`false`| This callback is fired once this annotation has started being dragged. |
26
-
| onDragEnd |`func`|`none`|`false`| This callback is fired once this annotation has stopped being dragged. |
27
-
| onDrag |`func`|`none`|`false`| This callback is fired while this annotation is being dragged. |
23
+
| onSelected |`func`|`none`|`false`| This callback is fired once this annotation is selected. Returns a Feature as the first param.<br/>*signature:*`(payload:{feature: Feature}) => void`|
24
+
| onDeselected |`func`|`none`|`false`| This callback is fired once this annotation is deselected.<br/>*signature:*`(payload:{feature: Feature}) => void`|
25
+
| onDragStart |`func`|`none`|`false`| This callback is fired once this annotation has started being dragged.<br/>*signature:*`(payload:{feature: Feature}) => void`|
26
+
| onDragEnd |`func`|`none`|`false`| This callback is fired once this annotation has stopped being dragged.<br/>*signature:*`(payload:{feature: Feature}) => void`|
27
+
| onDrag |`func`|`none`|`false`| This callback is fired while this annotation is being dragged.<br/>*signature:*`(payload:{feature: Feature}) => void`|
28
+
| children |`ReactReactElement`|`none`|`true`| Expects one child, and an optional callout can be added as well |
29
+
| style |`ViewProps['style']`|`none`|`false`| FIX ME NO DESCRIPTION |
| id |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| A string that uniquely identifies the source. |
9
9
| url |`string`|`none`|`false`| A URL to a TileJSON configuration file describing the source’s contents and other metadata. |
10
10
| tileUrlTemplates |`array`|`none`|`false`| An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.<br/>Example: https://example.com/raster-tiles/{z}/{x}/{y}.png|
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
| id |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| A string that uniquely identifies the source. |
11
11
| url |`string`|`none`|`false`| A URL to a TileJSON configuration file describing the source’s contents and other metadata. |
12
12
| tileUrlTemplates |`array`|`none`|`false`| An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.<br/>Example: https://example.com/raster-tiles/{z}/{x}/{y}.png|
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined. |
10
10
| aboveLayerID |`string`|`none`|`false`| Inserts a layer above aboveLayerID. |
| id |`string`|`none`|`true`| A string that uniquely identifies the source in the style to which it is added. |
9
9
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
10
| sourceLayerID |`string`|`none`|`false`| Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
| sourceID |`string`|`MapboxGL.StyleSource.DefaultSourceID`|`false`| Name of a source of raster_dem type to be used for terrain elevation. |
9
9
| exaggeration |`union`|`none`|`false`| Optional number between 0 and 1000 inclusive. Defaults to 1. Supports interpolateexpressions. Transitionable.<br/>Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value. |
0 commit comments