@rnmapbox/maps 10.0.12-rc.1 → 10.0.12-rc.3
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.
|
@@ -159,6 +159,12 @@ class RCTMGLLayer : UIView, RCTMGLMapComponent, RCTMGLSourceConsumer {
|
|
|
159
159
|
|
|
160
160
|
func position() -> LayerPosition {
|
|
161
161
|
if let belowLayerID = belowLayerID {
|
|
162
|
+
if aboveLayerID != nil {
|
|
163
|
+
Logger.log(level: .warn, message: "Both below layer and above layer is specified => above layer id is ingored")
|
|
164
|
+
}
|
|
165
|
+
if layerIndex != nil {
|
|
166
|
+
Logger.log(level: .warn, message: "Both below layer and layer index is specified => layer index is ignored")
|
|
167
|
+
}
|
|
162
168
|
return .below(belowLayerID)
|
|
163
169
|
} else if let aboveLayerID = aboveLayerID {
|
|
164
170
|
return .above(aboveLayerID)
|
|
@@ -129,7 +129,7 @@ open class RCTMGLMapView : MapView {
|
|
|
129
129
|
if let entryIndex = entryIndex {
|
|
130
130
|
var entry = features[entryIndex]
|
|
131
131
|
if (entry.addedToMap) {
|
|
132
|
-
mapComponent.removeFromMap(self, reason: .
|
|
132
|
+
mapComponent.removeFromMap(self, reason: .OnDestroy)
|
|
133
133
|
entry.addedToMap = false
|
|
134
134
|
}
|
|
135
135
|
features.remove(at: entryIndex)
|
package/package.json
CHANGED
package/rnmapbox-maps.podspec
CHANGED
|
@@ -20,7 +20,7 @@ require 'json'
|
|
|
20
20
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
21
21
|
|
|
22
22
|
## Warning: these lines are scanned by autogenerate.js
|
|
23
|
-
rnMapboxMapsDefaultMapboxVersion = '~> 10.
|
|
23
|
+
rnMapboxMapsDefaultMapboxVersion = '~> 10.15.0'
|
|
24
24
|
rnMapboxMapsDefaultMapboxGLVersion = '~> 5.9.0'
|
|
25
25
|
rnMapboxMapsDefaultMapLibreVersion = 'exactVersion 5.12.1'
|
|
26
26
|
|