@rnmapbox/maps 10.1.42 → 10.1.43-rc.0
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/ios/RNMBX/RNMBXCameraViewManager.m +3 -0
- package/ios/RNMBX/RNMBXCameraViewManager.swift +10 -8
- package/ios/RNMBX/RNMBXCircleLayerComponentView.mm +1 -1
- package/ios/RNMBX/RNMBXCircleLayerViewManager.m +2 -0
- package/ios/RNMBX/RNMBXCircleLayerViewManager.swift +2 -0
- package/ios/RNMBX/RNMBXMapViewManager.m +2 -0
- package/ios/RNMBX/RNMBXMapViewManager.swift +231 -177
- package/ios/RNMBX/RNMBXMapViewModule.h +3 -2
- package/ios/RNMBX/RNMBXMapViewModule.mm +10 -19
- package/ios/RNMBX/RNMBXShapeSourceViewManager.m +2 -0
- package/ios/RNMBX/RNMBXShapeSourceViewManager.swift +52 -47
- package/ios/RNMBX/ShapeAnimators/RNMBXMovePointShapeAnimatorModule.mm +2 -2
- package/ios/RNMBX/ShapeAnimators/RNMBXMovePointShapeAnimatorModule.swift +1 -1
- package/ios/RNMBX/Utils/RNMBXViewResolver.h +45 -0
- package/ios/RNMBX/Utils/RNMBXViewResolver.mm +134 -0
- package/lib/commonjs/components/Images.js +1 -1
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/MapView.js +5 -3
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/module/components/Images.js +1 -1
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/MapView.js +4 -2
- package/lib/module/components/MapView.js.map +1 -1
- package/package.json +133 -2
- package/rnmapbox-maps.podspec +2 -1
- package/src/components/Images.tsx +1 -1
- package/src/components/MapView.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnmapbox/maps",
|
|
3
3
|
"description": "A Mapbox react native module for creating custom maps",
|
|
4
|
-
"version": "10.1.
|
|
4
|
+
"version": "10.1.43-rc.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@turf/length": "6.5.0",
|
|
82
82
|
"@turf/nearest-point-on-line": "6.5.0",
|
|
83
83
|
"@types/geojson": "^7946.0.7",
|
|
84
|
-
"debounce": "^
|
|
84
|
+
"debounce": "^2.2.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@babel/core": "^7.25.2",
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"eslint-plugin-ft-flow": "^2.0.3",
|
|
114
114
|
"eslint-plugin-import": "2.25.3",
|
|
115
115
|
"eslint-plugin-jest": "^27.0.1",
|
|
116
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
116
117
|
"expo": "^54.0.0-canary-20250729-d8899ae",
|
|
117
118
|
"expo-module-scripts": "^5.0.1",
|
|
118
119
|
"husky": "^8.0.1",
|
|
@@ -137,6 +138,136 @@
|
|
|
137
138
|
"jsSrcsDir": "src/specs",
|
|
138
139
|
"android": {
|
|
139
140
|
"javaPackageName": "com.rnmapbox.rnmbx"
|
|
141
|
+
},
|
|
142
|
+
"ios": {
|
|
143
|
+
"components": {
|
|
144
|
+
"RNMBXAtmosphere": {
|
|
145
|
+
"className": "RNMBXAtmosphereComponentView"
|
|
146
|
+
},
|
|
147
|
+
"RNMBXBackgroundLayer": {
|
|
148
|
+
"className": "RNMBXBackgroundLayerComponentView"
|
|
149
|
+
},
|
|
150
|
+
"RNMBXCallout": {
|
|
151
|
+
"className": "RNMBXCalloutComponentView"
|
|
152
|
+
},
|
|
153
|
+
"RNMBXCamera": {
|
|
154
|
+
"className": "RNMBXCameraComponentView"
|
|
155
|
+
},
|
|
156
|
+
"RNMBXCircleLayer": {
|
|
157
|
+
"className": "RNMBXCircleLayerComponentView"
|
|
158
|
+
},
|
|
159
|
+
"RNMBXCustomLocationProvider": {
|
|
160
|
+
"className": "RNMBXCustomLocationProviderComponentView"
|
|
161
|
+
},
|
|
162
|
+
"RNMBXFillExtrusionLayer": {
|
|
163
|
+
"className": "RNMBXFillExtrusionLayerComponentView"
|
|
164
|
+
},
|
|
165
|
+
"RNMBXFillLayer": {
|
|
166
|
+
"className": "RNMBXFillLayerComponentView"
|
|
167
|
+
},
|
|
168
|
+
"RNMBXHeatmapLayer": {
|
|
169
|
+
"className": "RNMBXHeatmapLayerComponentView"
|
|
170
|
+
},
|
|
171
|
+
"RNMBXImage": {
|
|
172
|
+
"className": "RNMBXImageComponentView"
|
|
173
|
+
},
|
|
174
|
+
"RNMBXImageSource": {
|
|
175
|
+
"className": "RNMBXImageSourceComponentView"
|
|
176
|
+
},
|
|
177
|
+
"RNMBXImages": {
|
|
178
|
+
"className": "RNMBXImagesComponentView"
|
|
179
|
+
},
|
|
180
|
+
"RNMBXLight": {
|
|
181
|
+
"className": "RNMBXLightComponentView"
|
|
182
|
+
},
|
|
183
|
+
"RNMBXLineLayer": {
|
|
184
|
+
"className": "RNMBXLineLayerComponentView"
|
|
185
|
+
},
|
|
186
|
+
"RNMBXMapView": {
|
|
187
|
+
"className": "RNMBXMapViewComponentView"
|
|
188
|
+
},
|
|
189
|
+
"RNMBXMarkerViewContent": {
|
|
190
|
+
"className": "RNMBXMarkerViewContentComponentView"
|
|
191
|
+
},
|
|
192
|
+
"RNMBXMarkerView": {
|
|
193
|
+
"className": "RNMBXMarkerViewComponentView"
|
|
194
|
+
},
|
|
195
|
+
"RNMBXModelLayer": {
|
|
196
|
+
"className": "RNMBXModelLayerComponentView"
|
|
197
|
+
},
|
|
198
|
+
"RNMBXModels": {
|
|
199
|
+
"className": "RNMBXModelsComponentView"
|
|
200
|
+
},
|
|
201
|
+
"RNMBXNativeUserLocation": {
|
|
202
|
+
"className": "RNMBXNativeUserLocationComponentView"
|
|
203
|
+
},
|
|
204
|
+
"RNMBXPointAnnotation": {
|
|
205
|
+
"className": "RNMBXPointAnnotationComponentView"
|
|
206
|
+
},
|
|
207
|
+
"RNMBXRasterDemSource": {
|
|
208
|
+
"className": "RNMBXRasterDemSourceComponentView"
|
|
209
|
+
},
|
|
210
|
+
"RNMBXRasterLayer": {
|
|
211
|
+
"className": "RNMBXRasterLayerComponentView"
|
|
212
|
+
},
|
|
213
|
+
"RNMBXRasterSource": {
|
|
214
|
+
"className": "RNMBXRasterSourceComponentView"
|
|
215
|
+
},
|
|
216
|
+
"RNMBXShapeSource": {
|
|
217
|
+
"className": "RNMBXShapeSourceComponentView"
|
|
218
|
+
},
|
|
219
|
+
"RNMBXSkyLayer": {
|
|
220
|
+
"className": "RNMBXSkyLayerComponentView"
|
|
221
|
+
},
|
|
222
|
+
"RNMBXStyleImport": {
|
|
223
|
+
"className": "RNMBXStyleImportComponentView"
|
|
224
|
+
},
|
|
225
|
+
"RNMBXSymbolLayer": {
|
|
226
|
+
"className": "RNMBXSymbolLayerComponentView"
|
|
227
|
+
},
|
|
228
|
+
"RNMBXTerrain": {
|
|
229
|
+
"className": "RNMBXTerrainComponentView"
|
|
230
|
+
},
|
|
231
|
+
"RNMBXVectorSource": {
|
|
232
|
+
"className": "RNMBXVectorSourceComponentView"
|
|
233
|
+
},
|
|
234
|
+
"RNMBXViewport": {
|
|
235
|
+
"className": "RNMBXViewportComponentView"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"componentsProvider": {
|
|
239
|
+
"RNMBXAtmosphere": "RNMBXAtmosphereComponentView",
|
|
240
|
+
"RNMBXBackgroundLayer": "RNMBXBackgroundLayerComponentView",
|
|
241
|
+
"RNMBXCallout": "RNMBXCalloutComponentView",
|
|
242
|
+
"RNMBXCamera": "RNMBXCameraComponentView",
|
|
243
|
+
"RNMBXCircleLayer": "RNMBXCircleLayerComponentView",
|
|
244
|
+
"RNMBXCustomLocationProvider": "RNMBXCustomLocationProviderComponentView",
|
|
245
|
+
"RNMBXFillExtrusionLayer": "RNMBXFillExtrusionLayerComponentView",
|
|
246
|
+
"RNMBXFillLayer": "RNMBXFillLayerComponentView",
|
|
247
|
+
"RNMBXHeatmapLayer": "RNMBXHeatmapLayerComponentView",
|
|
248
|
+
"RNMBXImage": "RNMBXImageComponentView",
|
|
249
|
+
"RNMBXImageSource": "RNMBXImageSourceComponentView",
|
|
250
|
+
"RNMBXImages": "RNMBXImagesComponentView",
|
|
251
|
+
"RNMBXLight": "RNMBXLightComponentView",
|
|
252
|
+
"RNMBXLineLayer": "RNMBXLineLayerComponentView",
|
|
253
|
+
"RNMBXMapView": "RNMBXMapViewComponentView",
|
|
254
|
+
"RNMBXMarkerViewContent": "RNMBXMarkerViewContentComponentView",
|
|
255
|
+
"RNMBXMarkerView": "RNMBXMarkerViewComponentView",
|
|
256
|
+
"RNMBXModelLayer": "RNMBXModelLayerComponentView",
|
|
257
|
+
"RNMBXModels": "RNMBXModelsComponentView",
|
|
258
|
+
"RNMBXNativeUserLocation": "RNMBXNativeUserLocationComponentView",
|
|
259
|
+
"RNMBXPointAnnotation": "RNMBXPointAnnotationComponentView",
|
|
260
|
+
"RNMBXRasterDemSource": "RNMBXRasterDemSourceComponentView",
|
|
261
|
+
"RNMBXRasterLayer": "RNMBXRasterLayerComponentView",
|
|
262
|
+
"RNMBXRasterSource": "RNMBXRasterSourceComponentView",
|
|
263
|
+
"RNMBXShapeSource": "RNMBXShapeSourceComponentView",
|
|
264
|
+
"RNMBXSkyLayer": "RNMBXSkyLayerComponentView",
|
|
265
|
+
"RNMBXStyleImport": "RNMBXStyleImportComponentView",
|
|
266
|
+
"RNMBXSymbolLayer": "RNMBXSymbolLayerComponentView",
|
|
267
|
+
"RNMBXTerrain": "RNMBXTerrainComponentView",
|
|
268
|
+
"RNMBXVectorSource": "RNMBXVectorSourceComponentView",
|
|
269
|
+
"RNMBXViewport": "RNMBXViewportComponentView"
|
|
270
|
+
}
|
|
140
271
|
}
|
|
141
272
|
},
|
|
142
273
|
"lint-staged": {
|
package/rnmapbox-maps.podspec
CHANGED
|
@@ -259,7 +259,8 @@ Pod::Spec.new do |s|
|
|
|
259
259
|
case $RNMapboxMapsImpl
|
|
260
260
|
when 'mapbox'
|
|
261
261
|
sp.source_files = "ios/RNMBX/**/*.{h,m,mm,swift}"
|
|
262
|
-
sp.private_header_files = 'ios/RNMBX/RNMBXFabricHelpers.h', 'ios/RNMBX/RNMBXFabricPropConvert.h', 'ios/RNMBX/rnmapbox_maps-Swift.pre.h', 'ios/RNMBX/Utils/RNMBXFollyConvert.h'
|
|
262
|
+
sp.private_header_files = 'ios/RNMBX/RNMBXFabricHelpers.h', 'ios/RNMBX/RNMBXFabricPropConvert.h', 'ios/RNMBX/rnmapbox_maps-Swift.pre.h', 'ios/RNMBX/Utils/RNMBXFollyConvert.h', 'ios/RNMBX/Utils/RNMBXViewResolver.h'
|
|
263
|
+
|
|
263
264
|
if new_arch_enabled
|
|
264
265
|
sp.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
|
265
266
|
install_modules_dependencies(sp)
|
|
@@ -175,7 +175,7 @@ class Images extends React.PureComponent<Props> {
|
|
|
175
175
|
|
|
176
176
|
_onImageMissing(event: React.SyntheticEvent<Element, RNMBEvent>) {
|
|
177
177
|
if (this.props.onImageMissing) {
|
|
178
|
-
this.props.onImageMissing(event.nativeEvent.payload
|
|
178
|
+
this.props.onImageMissing(event.nativeEvent.payload?.imageKey);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
HostComponent,
|
|
10
10
|
LayoutChangeEvent,
|
|
11
11
|
} from 'react-native';
|
|
12
|
-
import
|
|
12
|
+
import debounce from 'debounce';
|
|
13
13
|
|
|
14
14
|
import NativeMapView, {
|
|
15
15
|
type NativeMapViewActual,
|
|
@@ -554,7 +554,7 @@ class MapView extends NativeBridgeComponent(
|
|
|
554
554
|
this._onDebouncedRegionWillChange = debounce(
|
|
555
555
|
this._onRegionWillChange.bind(this),
|
|
556
556
|
props.regionWillChangeDebounceTime,
|
|
557
|
-
true,
|
|
557
|
+
{ immediate: true },
|
|
558
558
|
);
|
|
559
559
|
|
|
560
560
|
this._onDebouncedRegionDidChange = debounce(
|