@rnmapbox/maps 10.0.0-beta.33 → 10.0.0-beta.35
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/.eslintrc.js +2 -2
- package/.nvmrc +1 -1
- package/README-v10.md +1 -1
- package/README.md +31 -26
- package/android/install.md +1 -1
- package/android/rctmgl/build.gradle +1 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/RCTMGLPackage.java +8 -3
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.kt +15 -6
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.kt +40 -0
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewWrapper.kt +8 -0
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewWrapperManager.kt +21 -0
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +26 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTLayer.kt +5 -5
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLModule.kt +1 -0
- package/docs/Annotation.md +8 -8
- package/docs/Annotations.md +14 -12
- package/docs/Atmosphere.md +76 -76
- package/docs/BackgroundLayer.md +44 -44
- package/docs/Callout.md +4 -4
- package/docs/Camera.md +124 -6
- package/docs/CircleLayer.md +129 -129
- package/docs/CustomHttpHeaders.md +12 -14
- package/docs/FillExtrusionLayer.md +120 -120
- package/docs/FillLayer.md +83 -83
- package/docs/HeadingIndicator.md +3 -3
- package/docs/HeatmapLayer.md +58 -58
- package/docs/ImageSource.md +4 -3
- package/docs/Images.md +3 -3
- package/docs/Light.md +45 -45
- package/docs/LineLayer.md +166 -166
- package/docs/Logger.md +8 -9
- package/docs/MapView.md +32 -32
- package/docs/MapboxGL.md +26 -27
- package/docs/MarkerView.md +11 -6
- package/docs/NativeUserLocation.md +3 -3
- package/docs/OfflineManager.md +35 -33
- package/docs/PointAnnotation.md +12 -6
- package/docs/RasterDemSource.md +3 -3
- package/docs/RasterLayer.md +99 -99
- package/docs/RasterSource.md +5 -3
- package/docs/ShapeSource.md +17 -16
- package/docs/SkyLayer.md +69 -69
- package/docs/Style.md +5 -3
- package/docs/StyleSheet.md +74 -278
- package/docs/SymbolLayer.md +454 -454
- package/docs/Terrain.md +6 -6
- package/docs/UserLocation.md +8 -8
- package/docs/VectorSource.md +9 -8
- package/docs/docs.json +196 -28
- package/docs/snapshotManager.md +7 -5
- package/index.d.ts +30 -26
- package/ios/RCTMGL-v10/RCTMGLCamera.swift +14 -5
- package/ios/RCTMGL-v10/RCTMGLMarkerView.swift +28 -14
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapper.swift +24 -0
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.m +8 -0
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.swift +14 -0
- package/ios/install.md +25 -14
- package/javascript/{utils/animated → classes}/AnimatedCoordinatesArray.js +1 -1
- package/javascript/{utils/animated → classes}/AnimatedExtractCoordinateFromArray.js +3 -1
- package/javascript/{utils/animated → classes}/AnimatedPoint.js +0 -0
- package/javascript/{utils/animated → classes}/AnimatedRouteCoordinatesArray.js +3 -1
- package/javascript/{utils/animated → classes}/AnimatedShape.js +9 -3
- package/javascript/classes/index.d.ts +5 -0
- package/javascript/classes/index.js +5 -0
- package/javascript/components/Callout.js +1 -1
- package/javascript/components/Camera.tsx +5 -1
- package/javascript/components/Images.js +1 -1
- package/javascript/components/MapView.js +3 -4
- package/javascript/components/MarkerView.tsx +125 -0
- package/javascript/components/PointAnnotation.d.ts +13 -0
- package/javascript/components/RasterDemSource.js +1 -1
- package/javascript/components/RasterSource.js +1 -1
- package/javascript/components/ShapeSource.js +4 -4
- package/javascript/components/Style.js +1 -1
- package/javascript/components/annotations/Annotation.js +3 -3
- package/javascript/index.js +27 -14
- package/javascript/types/index.ts +1 -1
- package/javascript/utils/BridgeValue.ts +89 -0
- package/javascript/utils/StyleValue.ts +21 -10
- package/javascript/utils/animated/Animated.js +0 -11
- package/javascript/utils/deprecation.js +0 -1
- package/javascript/utils/geoUtils.d.ts +10 -0
- package/javascript/utils/index.d.ts +6 -0
- package/package.json +16 -13
- package/plugin/build/withMapbox.js +0 -2
- package/plugin/install.md +13 -6
- package/rnmapbox-maps.podspec +1 -1
- package/scripts/autogenHelpers/DocJSONBuilder.js +43 -4
- package/scripts/autogenHelpers/globals.js +0 -2
- package/scripts/autogenerate.js +1 -2
- package/scripts/templates/component.md.ejs +25 -25
- package/tsconfig.json +1 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java +0 -45
- package/javascript/components/MarkerView.js +0 -91
- package/javascript/utils/BridgeValue.js +0 -81
package/docs/Light.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<!-- This file was autogenerated from Light.js do not modify -->
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
# <MapboxGL.Light />
|
|
3
|
+
Light represents the light source for extruded geometries
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
8
|
| style | `custom` | `none` | `false` | Customizable style attributes |
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## styles
|
|
12
12
|
|
|
13
13
|
* <a href="#anchor">anchor</a><br/>
|
|
14
14
|
* <a href="#position">position</a><br/>
|
|
@@ -17,143 +17,143 @@
|
|
|
17
17
|
|
|
18
18
|
___
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
### anchor
|
|
21
21
|
Name: `anchor`
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
### Description
|
|
24
24
|
Whether extruded geometries are lit relative to the map or viewport.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
### Type
|
|
27
27
|
`enum`
|
|
28
|
-
|
|
28
|
+
### Default Value
|
|
29
29
|
`viewport`
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
### Supported Values
|
|
32
32
|
**map** - The position of the light source is aligned to the rotation of the map.<br />
|
|
33
33
|
**viewport** - The position of the light source is aligned to the rotation of the viewport.<br />
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
### Expression
|
|
37
37
|
|
|
38
38
|
Parameters: `zoom`
|
|
39
39
|
|
|
40
40
|
___
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
### position
|
|
43
43
|
Name: `position`
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
### Description
|
|
46
46
|
Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
### Type
|
|
49
49
|
`array<number>`
|
|
50
|
-
|
|
50
|
+
### Default Value
|
|
51
51
|
`[1.15,210,30]`
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
### Expression
|
|
55
55
|
|
|
56
56
|
Parameters: `zoom`
|
|
57
57
|
___
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
### Name
|
|
60
60
|
|
|
61
61
|
`positionTransition`
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
### Description
|
|
64
64
|
|
|
65
|
-
The transition affecting any changes to this layer’s position
|
|
65
|
+
The transition affecting any changes to this layer’s position property.
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
### Type
|
|
68
68
|
|
|
69
69
|
`{ duration, delay }`
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
### Units
|
|
72
72
|
`milliseconds`
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
### Default Value
|
|
75
75
|
`{duration: 300, delay: 0}`
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
___
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
### color
|
|
81
81
|
Name: `color`
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
### Description
|
|
84
84
|
Color tint for lighting extruded geometries.
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
### Type
|
|
87
87
|
`color`
|
|
88
|
-
|
|
88
|
+
### Default Value
|
|
89
89
|
`#ffffff`
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
### Expression
|
|
93
93
|
|
|
94
94
|
Parameters: `zoom`
|
|
95
95
|
___
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
### Name
|
|
98
98
|
|
|
99
99
|
`colorTransition`
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
### Description
|
|
102
102
|
|
|
103
|
-
The transition affecting any changes to this layer’s color
|
|
103
|
+
The transition affecting any changes to this layer’s color property.
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
### Type
|
|
106
106
|
|
|
107
107
|
`{ duration, delay }`
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
### Units
|
|
110
110
|
`milliseconds`
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
### Default Value
|
|
113
113
|
`{duration: 300, delay: 0}`
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
___
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
### intensity
|
|
119
119
|
Name: `intensity`
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
### Description
|
|
122
122
|
Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
### Type
|
|
125
125
|
`number`
|
|
126
|
-
|
|
126
|
+
### Default Value
|
|
127
127
|
`0.5`
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
### Minimum
|
|
130
130
|
`0`
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
### Maximum
|
|
134
134
|
`1`
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
### Expression
|
|
137
137
|
|
|
138
138
|
Parameters: `zoom`
|
|
139
139
|
___
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
### Name
|
|
142
142
|
|
|
143
143
|
`intensityTransition`
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
### Description
|
|
146
146
|
|
|
147
|
-
The transition affecting any changes to this layer’s intensity
|
|
147
|
+
The transition affecting any changes to this layer’s intensity property.
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
### Type
|
|
150
150
|
|
|
151
151
|
`{ duration, delay }`
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
### Units
|
|
154
154
|
`milliseconds`
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
### Default Value
|
|
157
157
|
`{duration: 300, delay: 0}`
|
|
158
158
|
|
|
159
159
|
|