@rnmapbox/maps 10.0.0-beta.43 → 10.0.0-beta.45
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/android/install.md +49 -1
- package/android/rctmgl/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/camera/CameraStop.java +4 -4
- package/android/rctmgl/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java +3 -3
- package/android/rctmgl/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java +1 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/RCTMGLPackage.java +0 -2
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.kt +162 -51
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.kt +10 -0
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.kt +6 -6
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/camera/CameraStop.kt +11 -7
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/images/RCTMGLImages.kt +22 -2
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +17 -19
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/RCTMGLStyle.kt +1 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java +1 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/utils/DownloadMapImageTask.kt +2 -1
- package/docs/MapboxGL.md +1 -1
- package/docs/MarkerView.md +17 -10
- package/docs/PointAnnotation.md +1 -1
- package/docs/ShapeSource.md +13 -9
- package/docs/SymbolLayer.md +1 -1
- package/docs/docs.json +145 -161
- package/index.d.ts +7 -56
- package/ios/RCTMGL-v10/RCTLog.swift +5 -5
- package/ios/RCTMGL-v10/RCTMGLCamera.swift +2 -2
- package/ios/RCTMGL-v10/RCTMGLMapViewManager.swift +2 -2
- package/ios/RCTMGL-v10/RCTMGLMarkerView.swift +186 -105
- package/ios/RCTMGL-v10/RCTMGLMarkerViewManager.m +2 -1
- package/ios/RCTMGL-v10/RCTMGLShapeSourceManager.swift +1 -1
- package/ios/RCTMGL-v10/RCTMGLUtils.swift +1 -1
- package/ios/RCTMGL-v10/RCTMGLVectorLayer.swift +1 -1
- package/ios/install.md +3 -2
- package/javascript/components/AbstractLayer.tsx +9 -6
- package/javascript/components/AbstractSource.tsx +23 -0
- package/javascript/components/HeadingIndicator.tsx +1 -1
- package/javascript/components/Images.js +1 -1
- package/javascript/components/MapView.js +5 -2
- package/javascript/components/MarkerView.tsx +81 -76
- package/javascript/components/NativeBridgeComponent.tsx +20 -14
- package/javascript/components/PointAnnotation.tsx +3 -2
- package/javascript/components/RasterSource.js +1 -1
- package/javascript/components/ShapeSource.tsx +412 -0
- package/javascript/components/Style.js +2 -2
- package/javascript/components/SymbolLayer.tsx +3 -5
- package/javascript/components/VectorSource.js +6 -3
- package/javascript/components/annotations/Annotation.js +1 -1
- package/javascript/index.js +2 -2
- package/javascript/utils/animated/Animated.js +2 -2
- package/javascript/utils/deprecation.ts +7 -4
- package/javascript/utils/filterUtils.tsx +1 -1
- package/javascript/utils/index.d.ts +19 -6
- package/package.json +1 -1
- package/scripts/autogenHelpers/DocJSONBuilder.js +17 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewWrapper.kt +0 -8
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewWrapperManager.kt +0 -21
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapper.swift +0 -24
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.m +0 -8
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.swift +0 -14
- package/javascript/components/AbstractSource.js +0 -15
- package/javascript/components/ShapeSource.js +0 -373
package/docs/MapboxGL.md
CHANGED
|
@@ -20,7 +20,7 @@ not required when using other tiles
|
|
|
20
20
|
| `tileServer` | `String` | `Yes` | tile server |
|
|
21
21
|
|
|
22
22
|
#### Description
|
|
23
|
-
No-op on non MapLibre implemntations. Use MapboxGL.
|
|
23
|
+
No-op on non MapLibre implemntations. Use MapboxGL.TileServers.Mapbox to consume mapbox tiles with maplibre. *Note*: Consuming mapbox with MapLibre has different pricing than with the official SDK. Other values: MapboxGL.TileServers.MapLibre, MapboxGL.TileServers.MapTiler
|
|
24
24
|
|
|
25
25
|
### getAccessToken()
|
|
26
26
|
|
package/docs/MarkerView.md
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
<!-- This file was autogenerated from MarkerView.tsx do not modify -->
|
|
2
2
|
# <MapboxGL.MarkerView />
|
|
3
|
-
MarkerView
|
|
3
|
+
MarkerView represents an interactive React Native marker on the map.
|
|
4
4
|
|
|
5
|
-
If you have static
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
If you have static views, consider using PointAnnotation or SymbolLayer to display
|
|
6
|
+
an image, as they'll offer much better performance. Mapbox suggests using this
|
|
7
|
+
component for a maximum of around 100 views displayed at one time.
|
|
8
|
+
|
|
9
|
+
This is implemented with view annotations on [Android](https://docs.mapbox.com/android/maps/guides/annotations/view-annotations/)
|
|
10
|
+
and [iOS](https://docs.mapbox.com/ios/maps/guides/annotations/view-annotations).
|
|
11
|
+
|
|
12
|
+
This component has no dedicated `onPress` method. Instead, you should handle gestures
|
|
13
|
+
with the React views passed in as `children`.
|
|
9
14
|
|
|
10
15
|
## props
|
|
11
16
|
| Prop | Type | Default | Required | Description |
|
|
12
17
|
| ---- | :-- | :----- | :------ | :---------- |
|
|
13
|
-
| coordinate | `tuple` | `none` | `true` | The center point (specified as a map coordinate) of the marker
|
|
14
|
-
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` |
|
|
15
|
-
| x | `number` | `none` | `true` |
|
|
16
|
-
| y | `number` | `none` | `true` |
|
|
17
|
-
|
|
|
18
|
+
| coordinate | `tuple` | `none` | `true` | The center point (specified as a map coordinate) of the marker. |
|
|
19
|
+
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Any coordinate between (0, 0) and (1, 1), where (0, 0) is the top-left corner of<br/>the view, and (1, 1) is the bottom-right corner. Defaults to the center at (0.5, 0.5). |
|
|
20
|
+
| x | `number` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
21
|
+
| y | `number` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
22
|
+
| allowOverlap | `boolean` | `false` | `false` | @v10<br/><br/>Whether or not nearby markers on the map should all be displayed. If false, adjacent<br/>markers will 'collapse' and only one will be shown. Defaults to false. |
|
|
23
|
+
| isSelected | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
|
|
24
|
+
| children | `ReactReactElement` | `none` | `true` | One or more valid React Native views. |
|
|
18
25
|
|
|
19
26
|
|
package/docs/PointAnnotation.md
CHANGED
|
@@ -6,7 +6,7 @@ Consider using ShapeSource and SymbolLayer instead, if you have many points and
|
|
|
6
6
|
they'll offer much better performance.
|
|
7
7
|
|
|
8
8
|
If you need interactive views please use MarkerView,
|
|
9
|
-
as with PointAnnotation
|
|
9
|
+
as with PointAnnotation child views are rendered onto a bitmap
|
|
10
10
|
|
|
11
11
|
## props
|
|
12
12
|
| Prop | Type | Default | Required | Description |
|
package/docs/ShapeSource.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- This file was autogenerated from ShapeSource.
|
|
1
|
+
<!-- This file was autogenerated from ShapeSource.tsx do not modify -->
|
|
2
2
|
# <MapboxGL.ShapeSource />
|
|
3
3
|
ShapeSource is a map content source that supplies vector shapes to be shown on the map.
|
|
4
4
|
The shape may be an url or a GeoJSON object
|
|
@@ -8,19 +8,23 @@ The shape may be an url or a GeoJSON object
|
|
|
8
8
|
| ---- | :-- | :----- | :------ | :---------- |
|
|
9
9
|
| id | `string` | `MapboxGL.StyleSource.DefaultSourceID` | `false` | A string that uniquely identifies the source. |
|
|
10
10
|
| url | `string` | `none` | `false` | An HTTP(S) URL, absolute file URL, or local file URL relative to the current application’s resource bundle. |
|
|
11
|
-
| shape |
|
|
12
|
-
|
|
11
|
+
| shape | `\| GeoJSON.GeometryCollection
|
|
12
|
+
\| GeoJSON.Feature
|
|
13
|
+
\| GeoJSON.FeatureCollection
|
|
14
|
+
\| GeoJSON.Geometry` | `none` | `false` | The contents of the source. A shape can represent a GeoJSON geometry, a feature, or a feature collection. |
|
|
15
|
+
| cluster | `boolean` | `none` | `false` | Enables clustering on the source for point shapes. |
|
|
13
16
|
| clusterRadius | `number` | `none` | `false` | Specifies the radius of each cluster if clustering is enabled.<br/>A value of 512 produces a radius equal to the width of a tile.<br/>The default value is 50. |
|
|
14
17
|
| clusterMaxZoomLevel | `number` | `none` | `false` | Specifies the maximum zoom level at which to cluster points if clustering is enabled.<br/>Defaults to one zoom level less than the value of maxZoomLevel so that, at the maximum zoom level,<br/>the shapes are not clustered. |
|
|
15
18
|
| clusterProperties | `object` | `none` | `false` | [`mapbox-gl` (v8) implementation only]<br/>Specifies custom properties on the generated clusters if clustering<br/>is enabled, aggregating values from clustered points.<br/><br/>Has the form `{ "property_name": [operator, map_expression]}`, where<br/> `operator` is a custom reduce expression that references a special `["accumulated"]` value -<br/> it accumulates the property value from clusters/points the cluster contains<br/> `map_expression` produces the value of a single point<br/><br/>Example: `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }` |
|
|
16
19
|
| maxZoomLevel | `number` | `none` | `false` | Specifies the maximum zoom level at which to create vector tiles.<br/>A greater value produces greater detail at high zoom levels.<br/>The default value is 18. |
|
|
17
20
|
| buffer | `number` | `none` | `false` | Specifies the size of the tile buffer on each side.<br/>A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself.<br/>Larger values produce fewer rendering artifacts near tile edges and slower performance.<br/>The default value is 128. |
|
|
18
21
|
| tolerance | `number` | `none` | `false` | Specifies the Douglas-Peucker simplification tolerance.<br/>A greater value produces simpler geometries and improves performance.<br/>The default value is 0.375. |
|
|
19
|
-
| lineMetrics | `
|
|
20
|
-
| onPress | `func` | `none` | `false` | Source press listener, gets called when a user presses one of the children layers only<br/>if that layer has a higher z-index than another source layers |
|
|
22
|
+
| lineMetrics | `boolean` | `none` | `false` | Whether to calculate line distance metrics.<br/>This is required for line layers that specify lineGradient values.<br/>The default value is false. |
|
|
23
|
+
| onPress | `func` | `none` | `false` | Source press listener, gets called when a user presses one of the children layers only<br/>if that layer has a higher z-index than another source layers<br/><br/>@param {Object} event<br/>@param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)<br/>@param {Object} event.coordinates - the coordinates of the click<br/>@param {Object} event.point - the point of the click<br/>@return void<br/>*signature:*`(event:{features: Array, coordinates: {latitude: number, longitude: number}, point: {x: number, y: number}}) => void` |
|
|
21
24
|
| hitbox | `shape` | `none` | `false` | Overrides the default touch hitbox(44x44 pixels) for the source layers |
|
|
22
25
|
| width | `number` | `none` | `true` | `width` of hitbox |
|
|
23
26
|
| height | `number` | `none` | `true` | `height` of hitbox |
|
|
27
|
+
| children | `React.ReactElement \| React.ReactElement[]` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
24
28
|
|
|
25
29
|
## methods
|
|
26
30
|
### features([filter])
|
|
@@ -46,7 +50,7 @@ Returns the zoom needed to expand the cluster.
|
|
|
46
50
|
#### arguments
|
|
47
51
|
| Name | Type | Required | Description |
|
|
48
52
|
| ---- | :--: | :------: | :----------: |
|
|
49
|
-
| `feature` | `Feature` | `Yes` | The feature cluster to expand. |
|
|
53
|
+
| `feature` | `string \| GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
50
54
|
|
|
51
55
|
|
|
52
56
|
|
|
@@ -62,7 +66,7 @@ Returns the FeatureCollection from the cluster.
|
|
|
62
66
|
#### arguments
|
|
63
67
|
| Name | Type | Required | Description |
|
|
64
68
|
| ---- | :--: | :------: | :----------: |
|
|
65
|
-
| `feature` | `Feature` | `Yes` | The feature cluster to expand. |
|
|
69
|
+
| `feature` | `number \| GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
66
70
|
| `limit` | `number` | `Yes` | The number of points to return. |
|
|
67
71
|
| `offset` | `number` | `Yes` | The amount of points to skip (for pagination). |
|
|
68
72
|
|
|
@@ -80,7 +84,7 @@ Returns the FeatureCollection from the cluster (on the next zoom level).
|
|
|
80
84
|
#### arguments
|
|
81
85
|
| Name | Type | Required | Description |
|
|
82
86
|
| ---- | :--: | :------: | :----------: |
|
|
83
|
-
| `feature` | `Feature` | `Yes` | The feature cluster to expand. |
|
|
87
|
+
| `feature` | `number \| GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
84
88
|
|
|
85
89
|
|
|
86
90
|
|
|
@@ -96,7 +100,7 @@ const collection = await shapeSource.getClusterChildren(clusterId);
|
|
|
96
100
|
#### arguments
|
|
97
101
|
| Name | Type | Required | Description |
|
|
98
102
|
| ---- | :--: | :------: | :----------: |
|
|
99
|
-
| `event` | `
|
|
103
|
+
| `event` | `NativeSyntheticEvent` | `Yes` | undefined |
|
|
100
104
|
|
|
101
105
|
|
|
102
106
|
|
package/docs/SymbolLayer.md
CHANGED
|
@@ -11,7 +11,7 @@ SymbolLayer is a style layer that renders icon and text labels at points or alon
|
|
|
11
11
|
| aboveLayerID | `string` | `none` | `false` | Inserts a layer above aboveLayerID. |
|
|
12
12
|
| belowLayerID | `string` | `none` | `false` | Inserts a layer below belowLayerID |
|
|
13
13
|
| layerIndex | `number` | `none` | `false` | Inserts a layer at a specified index |
|
|
14
|
-
| filter | `
|
|
14
|
+
| filter | `Expression` | `none` | `false` | Filter only the features in the source layer that satisfy a condition that you define |
|
|
15
15
|
| minZoomLevel | `number` | `none` | `false` | The minimum zoom level at which the layer gets parsed and appears. |
|
|
16
16
|
| maxZoomLevel | `number` | `none` | `false` | The maximum zoom level at which the layer gets parsed and appears. |
|
|
17
17
|
| style | `SymbolLayerStyleProps` | `none` | `true` | FIX ME NO DESCRIPTION |
|
package/docs/docs.json
CHANGED
|
@@ -1,4 +1,98 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Annotation": {
|
|
3
|
+
"description": "",
|
|
4
|
+
"displayName": "Annotation",
|
|
5
|
+
"methods": [
|
|
6
|
+
{
|
|
7
|
+
"name": "onPress",
|
|
8
|
+
"docblock": null,
|
|
9
|
+
"modifiers": [],
|
|
10
|
+
"params": [],
|
|
11
|
+
"returns": null
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "symbolStyle",
|
|
15
|
+
"docblock": null,
|
|
16
|
+
"modifiers": [
|
|
17
|
+
"get"
|
|
18
|
+
],
|
|
19
|
+
"params": [],
|
|
20
|
+
"returns": null
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"props": [
|
|
24
|
+
{
|
|
25
|
+
"name": "id",
|
|
26
|
+
"required": true,
|
|
27
|
+
"type": "string",
|
|
28
|
+
"default": "none",
|
|
29
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "animated",
|
|
33
|
+
"required": false,
|
|
34
|
+
"type": "bool",
|
|
35
|
+
"default": "false",
|
|
36
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "animationDuration",
|
|
40
|
+
"required": false,
|
|
41
|
+
"type": "number",
|
|
42
|
+
"default": "1000",
|
|
43
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "animationEasingFunction",
|
|
47
|
+
"required": false,
|
|
48
|
+
"type": "func",
|
|
49
|
+
"default": "Easing.linear",
|
|
50
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "coordinates",
|
|
54
|
+
"required": false,
|
|
55
|
+
"type": {
|
|
56
|
+
"name": "array",
|
|
57
|
+
"value": {
|
|
58
|
+
"type": "number"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"default": "none",
|
|
62
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "onPress",
|
|
66
|
+
"required": false,
|
|
67
|
+
"type": "func",
|
|
68
|
+
"default": "none",
|
|
69
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "children",
|
|
73
|
+
"required": false,
|
|
74
|
+
"type": "any",
|
|
75
|
+
"default": "none",
|
|
76
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "style",
|
|
80
|
+
"required": false,
|
|
81
|
+
"type": "any",
|
|
82
|
+
"default": "none",
|
|
83
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "icon",
|
|
87
|
+
"required": false,
|
|
88
|
+
"type": "union",
|
|
89
|
+
"default": "none",
|
|
90
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"fileNameWithExt": "Annotation.js",
|
|
94
|
+
"name": "Annotation"
|
|
95
|
+
},
|
|
2
96
|
"Atmosphere": {
|
|
3
97
|
"description": "",
|
|
4
98
|
"displayName": "Atmosphere",
|
|
@@ -3166,7 +3260,7 @@
|
|
|
3166
3260
|
"name": "MapView"
|
|
3167
3261
|
},
|
|
3168
3262
|
"MarkerView": {
|
|
3169
|
-
"description": "MarkerView
|
|
3263
|
+
"description": "MarkerView represents an interactive React Native marker on the map.\n\nIf you have static views, consider using PointAnnotation or SymbolLayer to display\nan image, as they'll offer much better performance. Mapbox suggests using this\ncomponent for a maximum of around 100 views displayed at one time.\n\nThis is implemented with view annotations on [Android](https://docs.mapbox.com/android/maps/guides/annotations/view-annotations/)\nand [iOS](https://docs.mapbox.com/ios/maps/guides/annotations/view-annotations).\n\nThis component has no dedicated `onPress` method. Instead, you should handle gestures\nwith the React views passed in as `children`.",
|
|
3170
3264
|
"displayName": "MarkerView",
|
|
3171
3265
|
"methods": [],
|
|
3172
3266
|
"props": [
|
|
@@ -3175,7 +3269,7 @@
|
|
|
3175
3269
|
"required": true,
|
|
3176
3270
|
"type": "tuple",
|
|
3177
3271
|
"default": "none",
|
|
3178
|
-
"description": "The center point (specified as a map coordinate) of the marker
|
|
3272
|
+
"description": "The center point (specified as a map coordinate) of the marker."
|
|
3179
3273
|
},
|
|
3180
3274
|
{
|
|
3181
3275
|
"name": "anchor",
|
|
@@ -3188,26 +3282,40 @@
|
|
|
3188
3282
|
"required": true,
|
|
3189
3283
|
"type": "number",
|
|
3190
3284
|
"default": "none",
|
|
3191
|
-
"description": "
|
|
3285
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
3192
3286
|
},
|
|
3193
3287
|
{
|
|
3194
3288
|
"name": "y",
|
|
3195
3289
|
"required": true,
|
|
3196
3290
|
"type": "number",
|
|
3197
3291
|
"default": "none",
|
|
3198
|
-
"description": "
|
|
3292
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
3199
3293
|
}
|
|
3200
3294
|
]
|
|
3201
3295
|
},
|
|
3202
3296
|
"default": "{ x: 0.5, y: 0.5 }",
|
|
3203
|
-
"description": "
|
|
3297
|
+
"description": "Any coordinate between (0, 0) and (1, 1), where (0, 0) is the top-left corner of\nthe view, and (1, 1) is the bottom-right corner. Defaults to the center at (0.5, 0.5)."
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
"name": "allowOverlap",
|
|
3301
|
+
"required": false,
|
|
3302
|
+
"type": "boolean",
|
|
3303
|
+
"default": "false",
|
|
3304
|
+
"description": "@v10\n\nWhether or not nearby markers on the map should all be displayed. If false, adjacent\nmarkers will 'collapse' and only one will be shown. Defaults to false."
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
"name": "isSelected",
|
|
3308
|
+
"required": false,
|
|
3309
|
+
"type": "boolean",
|
|
3310
|
+
"default": "false",
|
|
3311
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
3204
3312
|
},
|
|
3205
3313
|
{
|
|
3206
3314
|
"name": "children",
|
|
3207
3315
|
"required": true,
|
|
3208
3316
|
"type": "ReactReactElement",
|
|
3209
3317
|
"default": "none",
|
|
3210
|
-
"description": "
|
|
3318
|
+
"description": "One or more valid React Native views."
|
|
3211
3319
|
}
|
|
3212
3320
|
],
|
|
3213
3321
|
"fileNameWithExt": "MarkerView.tsx",
|
|
@@ -3237,7 +3345,7 @@
|
|
|
3237
3345
|
"name": "NativeUserLocation"
|
|
3238
3346
|
},
|
|
3239
3347
|
"PointAnnotation": {
|
|
3240
|
-
"description": "PointAnnotation represents a one-dimensional shape located at a single geographical coordinate.\n\nConsider using ShapeSource and SymbolLayer instead, if you have many points and you have static images,\nthey'll offer much better performance.\n\nIf you need interactive views please use MarkerView,\nas with PointAnnotation
|
|
3348
|
+
"description": "PointAnnotation represents a one-dimensional shape located at a single geographical coordinate.\n\nConsider using ShapeSource and SymbolLayer instead, if you have many points and you have static images,\nthey'll offer much better performance.\n\nIf you need interactive views please use MarkerView,\nas with PointAnnotation child views are rendered onto a bitmap",
|
|
3241
3349
|
"displayName": "PointAnnotation",
|
|
3242
3350
|
"methods": [
|
|
3243
3351
|
{
|
|
@@ -3820,7 +3928,7 @@
|
|
|
3820
3928
|
"name": "feature",
|
|
3821
3929
|
"description": "The feature cluster to expand.",
|
|
3822
3930
|
"type": {
|
|
3823
|
-
"name": "Feature"
|
|
3931
|
+
"name": "string \\| GeoJSON.Feature"
|
|
3824
3932
|
},
|
|
3825
3933
|
"optional": false
|
|
3826
3934
|
}
|
|
@@ -3828,7 +3936,13 @@
|
|
|
3828
3936
|
"returns": {
|
|
3829
3937
|
"description": null,
|
|
3830
3938
|
"type": {
|
|
3831
|
-
"name": "
|
|
3939
|
+
"name": "Promise",
|
|
3940
|
+
"elements": [
|
|
3941
|
+
{
|
|
3942
|
+
"name": "string"
|
|
3943
|
+
}
|
|
3944
|
+
],
|
|
3945
|
+
"raw": "Promise<string>"
|
|
3832
3946
|
}
|
|
3833
3947
|
},
|
|
3834
3948
|
"description": "Returns the zoom needed to expand the cluster.",
|
|
@@ -3838,7 +3952,7 @@
|
|
|
3838
3952
|
},
|
|
3839
3953
|
{
|
|
3840
3954
|
"name": "getClusterLeaves",
|
|
3841
|
-
"docblock": "Returns the FeatureCollection from the cluster.\n\n@example\nconst collection = await shapeSource.getClusterLeaves(clusterId, limit, offset);\n\n@param {Feature} feature - The feature cluster to expand.\n@param {number} limit - The number of points to return.\n@param {number} offset - The amount of points to skip (for pagination).\n@return {FeatureCollection}",
|
|
3955
|
+
"docblock": "Returns the FeatureCollection from the cluster.\n\n@example\nconst collection = await shapeSource.getClusterLeaves(clusterId, limit, offset);\n\n@param {GeoJSON.Feature} feature - The feature cluster to expand.\n@param {number} limit - The number of points to return.\n@param {number} offset - The amount of points to skip (for pagination).\n@return {FeatureCollection}",
|
|
3842
3956
|
"modifiers": [
|
|
3843
3957
|
"async"
|
|
3844
3958
|
],
|
|
@@ -3847,7 +3961,7 @@
|
|
|
3847
3961
|
"name": "feature",
|
|
3848
3962
|
"description": "The feature cluster to expand.",
|
|
3849
3963
|
"type": {
|
|
3850
|
-
"name": "Feature"
|
|
3964
|
+
"name": "number \\| GeoJSON.Feature"
|
|
3851
3965
|
},
|
|
3852
3966
|
"optional": false
|
|
3853
3967
|
},
|
|
@@ -3881,7 +3995,7 @@
|
|
|
3881
3995
|
},
|
|
3882
3996
|
{
|
|
3883
3997
|
"name": "getClusterChildren",
|
|
3884
|
-
"docblock": "Returns the FeatureCollection from the cluster (on the next zoom level).\n\n@example\nconst collection = await shapeSource.getClusterChildren(clusterId);\n\n@param {Feature} feature - The feature cluster to expand.\n@return {FeatureCollection}",
|
|
3998
|
+
"docblock": "Returns the FeatureCollection from the cluster (on the next zoom level).\n\n@example\nconst collection = await shapeSource.getClusterChildren(clusterId);\n\n@param {GeoJSON.Feature} feature - The feature cluster to expand.\n@return {FeatureCollection}",
|
|
3885
3999
|
"modifiers": [
|
|
3886
4000
|
"async"
|
|
3887
4001
|
],
|
|
@@ -3890,7 +4004,7 @@
|
|
|
3890
4004
|
"name": "feature",
|
|
3891
4005
|
"description": "The feature cluster to expand.",
|
|
3892
4006
|
"type": {
|
|
3893
|
-
"name": "Feature"
|
|
4007
|
+
"name": "number \\| GeoJSON.Feature"
|
|
3894
4008
|
},
|
|
3895
4009
|
"optional": false
|
|
3896
4010
|
}
|
|
@@ -3915,7 +4029,7 @@
|
|
|
3915
4029
|
"name": "event",
|
|
3916
4030
|
"optional": false,
|
|
3917
4031
|
"type": {
|
|
3918
|
-
"name":
|
|
4032
|
+
"name": "NativeSyntheticEvent"
|
|
3919
4033
|
}
|
|
3920
4034
|
}
|
|
3921
4035
|
],
|
|
@@ -3940,14 +4054,14 @@
|
|
|
3940
4054
|
{
|
|
3941
4055
|
"name": "shape",
|
|
3942
4056
|
"required": false,
|
|
3943
|
-
"type": "
|
|
4057
|
+
"type": "\\| GeoJSON.GeometryCollection\n\\| GeoJSON.Feature\n\\| GeoJSON.FeatureCollection\n\\| GeoJSON.Geometry",
|
|
3944
4058
|
"default": "none",
|
|
3945
4059
|
"description": "The contents of the source. A shape can represent a GeoJSON geometry, a feature, or a feature collection."
|
|
3946
4060
|
},
|
|
3947
4061
|
{
|
|
3948
4062
|
"name": "cluster",
|
|
3949
4063
|
"required": false,
|
|
3950
|
-
"type": "
|
|
4064
|
+
"type": "boolean",
|
|
3951
4065
|
"default": "none",
|
|
3952
4066
|
"description": "Enables clustering on the source for point shapes."
|
|
3953
4067
|
},
|
|
@@ -3996,59 +4110,19 @@
|
|
|
3996
4110
|
{
|
|
3997
4111
|
"name": "lineMetrics",
|
|
3998
4112
|
"required": false,
|
|
3999
|
-
"type": "
|
|
4113
|
+
"type": "boolean",
|
|
4000
4114
|
"default": "none",
|
|
4001
4115
|
"description": "Whether to calculate line distance metrics.\nThis is required for line layers that specify lineGradient values.\nThe default value is false."
|
|
4002
4116
|
},
|
|
4003
4117
|
{
|
|
4004
4118
|
"name": "onPress",
|
|
4005
4119
|
"required": false,
|
|
4006
|
-
"type":
|
|
4120
|
+
"type": {
|
|
4121
|
+
"name": "func",
|
|
4122
|
+
"funcSignature": "(event:{features: Array, coordinates: {latitude: number, longitude: number}, point: {x: number, y: number}}) => void"
|
|
4123
|
+
},
|
|
4007
4124
|
"default": "none",
|
|
4008
|
-
"description": "Source press listener, gets called when a user presses one of the children layers only\nif that layer has a higher z-index than another source layers"
|
|
4009
|
-
"params": [
|
|
4010
|
-
{
|
|
4011
|
-
"name": "event",
|
|
4012
|
-
"description": null,
|
|
4013
|
-
"type": {
|
|
4014
|
-
"name": "Object"
|
|
4015
|
-
},
|
|
4016
|
-
"optional": false
|
|
4017
|
-
},
|
|
4018
|
-
{
|
|
4019
|
-
"name": "event.features",
|
|
4020
|
-
"description": "the geojson features that have hit by the press (might be multiple)",
|
|
4021
|
-
"type": {
|
|
4022
|
-
"name": "Array",
|
|
4023
|
-
"elements": [
|
|
4024
|
-
{
|
|
4025
|
-
"name": "Object"
|
|
4026
|
-
}
|
|
4027
|
-
]
|
|
4028
|
-
},
|
|
4029
|
-
"optional": false
|
|
4030
|
-
},
|
|
4031
|
-
{
|
|
4032
|
-
"name": "event.coordinates",
|
|
4033
|
-
"description": "the coordinates of the click",
|
|
4034
|
-
"type": {
|
|
4035
|
-
"name": "Object"
|
|
4036
|
-
},
|
|
4037
|
-
"optional": false
|
|
4038
|
-
},
|
|
4039
|
-
{
|
|
4040
|
-
"name": "event.point",
|
|
4041
|
-
"description": "the point of the click",
|
|
4042
|
-
"type": {
|
|
4043
|
-
"name": "Object"
|
|
4044
|
-
},
|
|
4045
|
-
"optional": false
|
|
4046
|
-
}
|
|
4047
|
-
],
|
|
4048
|
-
"returns": {
|
|
4049
|
-
"description": "void",
|
|
4050
|
-
"type": null
|
|
4051
|
-
}
|
|
4125
|
+
"description": "Source press listener, gets called when a user presses one of the children layers only\nif that layer has a higher z-index than another source layers\n\n@param {Object} event\n@param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)\n@param {Object} event.coordinates - the coordinates of the click\n@param {Object} event.point - the point of the click\n@return void\n*signature:*`(event:{features: Array, coordinates: {latitude: number, longitude: number}, point: {x: number, y: number}}) => void`"
|
|
4052
4126
|
},
|
|
4053
4127
|
{
|
|
4054
4128
|
"name": "hitbox",
|
|
@@ -4074,12 +4148,16 @@
|
|
|
4074
4148
|
},
|
|
4075
4149
|
"default": "none",
|
|
4076
4150
|
"description": "Overrides the default touch hitbox(44x44 pixels) for the source layers"
|
|
4151
|
+
},
|
|
4152
|
+
{
|
|
4153
|
+
"name": "children",
|
|
4154
|
+
"required": true,
|
|
4155
|
+
"type": "React.ReactElement \\| React.ReactElement[]",
|
|
4156
|
+
"default": "none",
|
|
4157
|
+
"description": "FIX ME NO DESCRIPTION"
|
|
4077
4158
|
}
|
|
4078
4159
|
],
|
|
4079
|
-
"
|
|
4080
|
-
"../utils"
|
|
4081
|
-
],
|
|
4082
|
-
"fileNameWithExt": "ShapeSource.js",
|
|
4160
|
+
"fileNameWithExt": "ShapeSource.tsx",
|
|
4083
4161
|
"name": "ShapeSource"
|
|
4084
4162
|
},
|
|
4085
4163
|
"SkyLayer": {
|
|
@@ -4411,7 +4489,7 @@
|
|
|
4411
4489
|
{
|
|
4412
4490
|
"name": "filter",
|
|
4413
4491
|
"required": false,
|
|
4414
|
-
"type": "
|
|
4492
|
+
"type": "Expression",
|
|
4415
4493
|
"default": "none",
|
|
4416
4494
|
"description": "Filter only the features in the source layer that satisfy a condition that you define"
|
|
4417
4495
|
},
|
|
@@ -6147,100 +6225,6 @@
|
|
|
6147
6225
|
"fileNameWithExt": "VectorSource.js",
|
|
6148
6226
|
"name": "VectorSource"
|
|
6149
6227
|
},
|
|
6150
|
-
"Annotation": {
|
|
6151
|
-
"description": "",
|
|
6152
|
-
"displayName": "Annotation",
|
|
6153
|
-
"methods": [
|
|
6154
|
-
{
|
|
6155
|
-
"name": "onPress",
|
|
6156
|
-
"docblock": null,
|
|
6157
|
-
"modifiers": [],
|
|
6158
|
-
"params": [],
|
|
6159
|
-
"returns": null
|
|
6160
|
-
},
|
|
6161
|
-
{
|
|
6162
|
-
"name": "symbolStyle",
|
|
6163
|
-
"docblock": null,
|
|
6164
|
-
"modifiers": [
|
|
6165
|
-
"get"
|
|
6166
|
-
],
|
|
6167
|
-
"params": [],
|
|
6168
|
-
"returns": null
|
|
6169
|
-
}
|
|
6170
|
-
],
|
|
6171
|
-
"props": [
|
|
6172
|
-
{
|
|
6173
|
-
"name": "id",
|
|
6174
|
-
"required": true,
|
|
6175
|
-
"type": "string",
|
|
6176
|
-
"default": "none",
|
|
6177
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6178
|
-
},
|
|
6179
|
-
{
|
|
6180
|
-
"name": "animated",
|
|
6181
|
-
"required": false,
|
|
6182
|
-
"type": "bool",
|
|
6183
|
-
"default": "false",
|
|
6184
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6185
|
-
},
|
|
6186
|
-
{
|
|
6187
|
-
"name": "animationDuration",
|
|
6188
|
-
"required": false,
|
|
6189
|
-
"type": "number",
|
|
6190
|
-
"default": "1000",
|
|
6191
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6192
|
-
},
|
|
6193
|
-
{
|
|
6194
|
-
"name": "animationEasingFunction",
|
|
6195
|
-
"required": false,
|
|
6196
|
-
"type": "func",
|
|
6197
|
-
"default": "Easing.linear",
|
|
6198
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6199
|
-
},
|
|
6200
|
-
{
|
|
6201
|
-
"name": "coordinates",
|
|
6202
|
-
"required": false,
|
|
6203
|
-
"type": {
|
|
6204
|
-
"name": "array",
|
|
6205
|
-
"value": {
|
|
6206
|
-
"type": "number"
|
|
6207
|
-
}
|
|
6208
|
-
},
|
|
6209
|
-
"default": "none",
|
|
6210
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6211
|
-
},
|
|
6212
|
-
{
|
|
6213
|
-
"name": "onPress",
|
|
6214
|
-
"required": false,
|
|
6215
|
-
"type": "func",
|
|
6216
|
-
"default": "none",
|
|
6217
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6218
|
-
},
|
|
6219
|
-
{
|
|
6220
|
-
"name": "children",
|
|
6221
|
-
"required": false,
|
|
6222
|
-
"type": "any",
|
|
6223
|
-
"default": "none",
|
|
6224
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6225
|
-
},
|
|
6226
|
-
{
|
|
6227
|
-
"name": "style",
|
|
6228
|
-
"required": false,
|
|
6229
|
-
"type": "any",
|
|
6230
|
-
"default": "none",
|
|
6231
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6232
|
-
},
|
|
6233
|
-
{
|
|
6234
|
-
"name": "icon",
|
|
6235
|
-
"required": false,
|
|
6236
|
-
"type": "union",
|
|
6237
|
-
"default": "none",
|
|
6238
|
-
"description": "FIX ME NO DESCRIPTION"
|
|
6239
|
-
}
|
|
6240
|
-
],
|
|
6241
|
-
"fileNameWithExt": "Annotation.js",
|
|
6242
|
-
"name": "Annotation"
|
|
6243
|
-
},
|
|
6244
6228
|
"offlineManager": {
|
|
6245
6229
|
"name": "offlineManager",
|
|
6246
6230
|
"fileNameWithExt": "offlineManager.js",
|