@rnmapbox/maps 10.1.0-beta.24 → 10.1.0-beta.25
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/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt +4 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt +27 -3
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +1184 -109
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayer.kt +33 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt +85 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModels.kt +33 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModelsManager.kt +59 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +395 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +8 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerDelegate.java +65 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerInterface.java +28 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerDelegate.java +32 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerInterface.java +17 -0
- package/ios/RNMBX/RNMBXModelLayer.swift +59 -0
- package/ios/RNMBX/RNMBXModelLayerComponentView.h +15 -0
- package/ios/RNMBX/RNMBXModelLayerComponentView.mm +70 -0
- package/ios/RNMBX/RNMBXModelLayerViewManager.m +12 -0
- package/ios/RNMBX/RNMBXModelLayerViewManager.swift +13 -0
- package/ios/RNMBX/RNMBXModels.swift +63 -0
- package/ios/RNMBX/RNMBXModelsComponentView.h +17 -0
- package/ios/RNMBX/RNMBXModelsComponentView.mm +67 -0
- package/ios/RNMBX/RNMBXModelsManager.mm +9 -0
- package/ios/RNMBX/RNMBXModelsManager.swift +13 -0
- package/ios/RNMBX/RNMBXStyle.swift +786 -1
- package/ios/RNMBX/RNMBXStyleValue.swift +34 -3
- package/lib/commonjs/Mapbox.js +16 -0
- package/lib/commonjs/Mapbox.js.map +1 -1
- package/lib/commonjs/components/AbstractLayer.js +1 -1
- package/lib/commonjs/components/AbstractLayer.js.map +1 -1
- package/lib/commonjs/components/ModelLayer.js +37 -0
- package/lib/commonjs/components/ModelLayer.js.map +1 -0
- package/lib/commonjs/components/Models.js +43 -0
- package/lib/commonjs/components/Models.js.map +1 -0
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js +13 -0
- package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNMBXModelsNativeComponent.js +10 -0
- package/lib/commonjs/specs/RNMBXModelsNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +11 -10
- package/lib/commonjs/utils/MapboxStyles.d.js +5 -0
- package/lib/commonjs/utils/MapboxStyles.d.js.map +1 -1
- package/lib/commonjs/utils/styleMap.js +67 -2
- package/lib/commonjs/utils/styleMap.js.map +1 -1
- package/lib/module/Mapbox.js +2 -0
- package/lib/module/Mapbox.js.map +1 -1
- package/lib/module/components/AbstractLayer.js +1 -1
- package/lib/module/components/AbstractLayer.js.map +1 -1
- package/lib/module/components/ModelLayer.js +30 -0
- package/lib/module/components/ModelLayer.js.map +1 -0
- package/lib/module/components/Models.js +36 -0
- package/lib/module/components/Models.js.map +1 -0
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXModelLayerNativeComponent.js +9 -0
- package/lib/module/specs/RNMBXModelLayerNativeComponent.js.map +1 -0
- package/lib/module/specs/RNMBXModelsNativeComponent.js +3 -0
- package/lib/module/specs/RNMBXModelsNativeComponent.js.map +1 -0
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXViewportNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXViewportNativeComponent.js.map +1 -1
- package/lib/module/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +11 -10
- package/lib/module/utils/MapboxStyles.d.js +5 -0
- package/lib/module/utils/MapboxStyles.d.js.map +1 -1
- package/lib/module/utils/styleMap.js +67 -2
- package/lib/module/utils/styleMap.js.map +1 -1
- package/lib/typescript/src/Mapbox.d.ts +3 -1
- package/lib/typescript/src/Mapbox.d.ts.map +1 -1
- package/lib/typescript/src/components/AbstractLayer.d.ts +9 -4
- package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +1 -5
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/ModelLayer.d.ts +77 -0
- package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -0
- package/lib/typescript/src/components/Models.d.ts +15 -0
- package/lib/typescript/src/components/Models.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +28 -0
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts +15 -0
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Mapbox.ts +3 -0
- package/src/components/AbstractLayer.tsx +11 -5
- package/src/components/ModelLayer.tsx +107 -0
- package/src/components/Models.tsx +44 -0
- package/src/specs/RNMBXCircleLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXFillLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXLineLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXModelLayerNativeComponent.ts +38 -0
- package/src/specs/RNMBXModelsNativeComponent.ts +18 -0
- package/src/specs/RNMBXRasterLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXSymbolLayerNativeComponent.ts +15 -12
- package/src/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +11 -10
- package/src/utils/MapboxStyles.d.ts +526 -63
- package/src/utils/styleMap.ts +69 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// DO NOT MODIFY
|
|
2
2
|
// THIS FILE IS AUTOGENERATED
|
|
3
3
|
|
|
4
|
-
import MapboxMaps
|
|
4
|
+
@_spi(Experimental) import MapboxMaps
|
|
5
5
|
|
|
6
6
|
class RNMBXStyle {
|
|
7
7
|
var style : Style
|
|
@@ -61,6 +61,10 @@ func fillLayer(layer: inout FillLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
61
61
|
setImageOnLayerLater: { (_) in applyUpdater { (layer: inout FillLayer) in self.setFillPattern(&layer, styleValue: styleValue) } },
|
|
62
62
|
name: "Fill.\(prop)"
|
|
63
63
|
)
|
|
64
|
+
} else if (prop == "fillEmissiveStrength") {
|
|
65
|
+
self.setFillEmissiveStrength(&layer, styleValue:styleValue);
|
|
66
|
+
} else if (prop == "fillEmissiveStrengthTransition") {
|
|
67
|
+
self.setFillEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
64
68
|
} else {
|
|
65
69
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: fill")
|
|
66
70
|
}
|
|
@@ -140,6 +144,10 @@ func lineLayer(layer: inout LineLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
140
144
|
self.setLineGradient(&layer, styleValue:styleValue);
|
|
141
145
|
} else if (prop == "lineTrimOffset") {
|
|
142
146
|
self.setLineTrimOffset(&layer, styleValue:styleValue);
|
|
147
|
+
} else if (prop == "lineEmissiveStrength") {
|
|
148
|
+
self.setLineEmissiveStrength(&layer, styleValue:styleValue);
|
|
149
|
+
} else if (prop == "lineEmissiveStrengthTransition") {
|
|
150
|
+
self.setLineEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
143
151
|
} else {
|
|
144
152
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: line")
|
|
145
153
|
}
|
|
@@ -305,6 +313,28 @@ func symbolLayer(layer: inout SymbolLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
305
313
|
self.setTextTranslateTransition(&layer, styleValue:styleValue);
|
|
306
314
|
} else if (prop == "textTranslateAnchor") {
|
|
307
315
|
self.setTextTranslateAnchor(&layer, styleValue:styleValue);
|
|
316
|
+
} else if (prop == "symbolZElevate") {
|
|
317
|
+
self.setSymbolZElevate(&layer, styleValue:styleValue);
|
|
318
|
+
} else if (prop == "iconEmissiveStrength") {
|
|
319
|
+
self.setIconEmissiveStrength(&layer, styleValue:styleValue);
|
|
320
|
+
} else if (prop == "iconEmissiveStrengthTransition") {
|
|
321
|
+
self.setIconEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
322
|
+
} else if (prop == "textEmissiveStrength") {
|
|
323
|
+
self.setTextEmissiveStrength(&layer, styleValue:styleValue);
|
|
324
|
+
} else if (prop == "textEmissiveStrengthTransition") {
|
|
325
|
+
self.setTextEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
326
|
+
} else if (prop == "iconImageCrossFade") {
|
|
327
|
+
styleValue.setImage(
|
|
328
|
+
bridge: bridge!,
|
|
329
|
+
style: style,
|
|
330
|
+
oldValue: oldReactStyle?[prop],
|
|
331
|
+
setImageOnLayer: { (_) in self.setIconImageCrossFade(&layer, styleValue:styleValue) },
|
|
332
|
+
isLayerStillValid: isValid,
|
|
333
|
+
setImageOnLayerLater: { (_) in applyUpdater { (layer: inout SymbolLayer) in self.setIconImageCrossFade(&layer, styleValue: styleValue) } },
|
|
334
|
+
name: "Symbol.\(prop)"
|
|
335
|
+
)
|
|
336
|
+
} else if (prop == "iconImageCrossFadeTransition") {
|
|
337
|
+
self.setIconImageCrossFadeTransition(&layer, styleValue:styleValue);
|
|
308
338
|
} else {
|
|
309
339
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: symbol")
|
|
310
340
|
}
|
|
@@ -368,6 +398,10 @@ func circleLayer(layer: inout CircleLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
368
398
|
self.setCircleStrokeOpacity(&layer, styleValue:styleValue);
|
|
369
399
|
} else if (prop == "circleStrokeOpacityTransition") {
|
|
370
400
|
self.setCircleStrokeOpacityTransition(&layer, styleValue:styleValue);
|
|
401
|
+
} else if (prop == "circleEmissiveStrength") {
|
|
402
|
+
self.setCircleEmissiveStrength(&layer, styleValue:styleValue);
|
|
403
|
+
} else if (prop == "circleEmissiveStrengthTransition") {
|
|
404
|
+
self.setCircleEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
371
405
|
} else {
|
|
372
406
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: circle")
|
|
373
407
|
}
|
|
@@ -464,6 +498,46 @@ func fillExtrusionLayer(layer: inout FillExtrusionLayer, reactStyle:Dictionary<S
|
|
|
464
498
|
self.setFillExtrusionBaseTransition(&layer, styleValue:styleValue);
|
|
465
499
|
} else if (prop == "fillExtrusionVerticalGradient") {
|
|
466
500
|
self.setFillExtrusionVerticalGradient(&layer, styleValue:styleValue);
|
|
501
|
+
} else if (prop == "fillExtrusionRoundedRoof") {
|
|
502
|
+
self.setFillExtrusionRoundedRoof(&layer, styleValue:styleValue);
|
|
503
|
+
} else if (prop == "fillExtrusionAmbientOcclusionWallRadius") {
|
|
504
|
+
self.setFillExtrusionAmbientOcclusionWallRadius(&layer, styleValue:styleValue);
|
|
505
|
+
} else if (prop == "fillExtrusionAmbientOcclusionWallRadiusTransition") {
|
|
506
|
+
self.setFillExtrusionAmbientOcclusionWallRadiusTransition(&layer, styleValue:styleValue);
|
|
507
|
+
} else if (prop == "fillExtrusionAmbientOcclusionGroundRadius") {
|
|
508
|
+
self.setFillExtrusionAmbientOcclusionGroundRadius(&layer, styleValue:styleValue);
|
|
509
|
+
} else if (prop == "fillExtrusionAmbientOcclusionGroundRadiusTransition") {
|
|
510
|
+
self.setFillExtrusionAmbientOcclusionGroundRadiusTransition(&layer, styleValue:styleValue);
|
|
511
|
+
} else if (prop == "fillExtrusionAmbientOcclusionGroundAttenuation") {
|
|
512
|
+
self.setFillExtrusionAmbientOcclusionGroundAttenuation(&layer, styleValue:styleValue);
|
|
513
|
+
} else if (prop == "fillExtrusionAmbientOcclusionGroundAttenuationTransition") {
|
|
514
|
+
self.setFillExtrusionAmbientOcclusionGroundAttenuationTransition(&layer, styleValue:styleValue);
|
|
515
|
+
} else if (prop == "fillExtrusionFloodLightColor") {
|
|
516
|
+
self.setFillExtrusionFloodLightColor(&layer, styleValue:styleValue);
|
|
517
|
+
} else if (prop == "fillExtrusionFloodLightColorTransition") {
|
|
518
|
+
self.setFillExtrusionFloodLightColorTransition(&layer, styleValue:styleValue);
|
|
519
|
+
} else if (prop == "fillExtrusionFloodLightIntensity") {
|
|
520
|
+
self.setFillExtrusionFloodLightIntensity(&layer, styleValue:styleValue);
|
|
521
|
+
} else if (prop == "fillExtrusionFloodLightIntensityTransition") {
|
|
522
|
+
self.setFillExtrusionFloodLightIntensityTransition(&layer, styleValue:styleValue);
|
|
523
|
+
} else if (prop == "fillExtrusionFloodLightWallRadius") {
|
|
524
|
+
self.setFillExtrusionFloodLightWallRadius(&layer, styleValue:styleValue);
|
|
525
|
+
} else if (prop == "fillExtrusionFloodLightWallRadiusTransition") {
|
|
526
|
+
self.setFillExtrusionFloodLightWallRadiusTransition(&layer, styleValue:styleValue);
|
|
527
|
+
} else if (prop == "fillExtrusionFloodLightGroundRadius") {
|
|
528
|
+
self.setFillExtrusionFloodLightGroundRadius(&layer, styleValue:styleValue);
|
|
529
|
+
} else if (prop == "fillExtrusionFloodLightGroundRadiusTransition") {
|
|
530
|
+
self.setFillExtrusionFloodLightGroundRadiusTransition(&layer, styleValue:styleValue);
|
|
531
|
+
} else if (prop == "fillExtrusionFloodLightGroundAttenuation") {
|
|
532
|
+
self.setFillExtrusionFloodLightGroundAttenuation(&layer, styleValue:styleValue);
|
|
533
|
+
} else if (prop == "fillExtrusionFloodLightGroundAttenuationTransition") {
|
|
534
|
+
self.setFillExtrusionFloodLightGroundAttenuationTransition(&layer, styleValue:styleValue);
|
|
535
|
+
} else if (prop == "fillExtrusionVerticalScale") {
|
|
536
|
+
self.setFillExtrusionVerticalScale(&layer, styleValue:styleValue);
|
|
537
|
+
} else if (prop == "fillExtrusionVerticalScaleTransition") {
|
|
538
|
+
self.setFillExtrusionVerticalScaleTransition(&layer, styleValue:styleValue);
|
|
539
|
+
} else if (prop == "fillExtrusionCutoffFadeRange") {
|
|
540
|
+
self.setFillExtrusionCutoffFadeRange(&layer, styleValue:styleValue);
|
|
467
541
|
} else {
|
|
468
542
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: fill-extrusion")
|
|
469
543
|
}
|
|
@@ -515,6 +589,16 @@ func rasterLayer(layer: inout RasterLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
515
589
|
self.setRasterResampling(&layer, styleValue:styleValue);
|
|
516
590
|
} else if (prop == "rasterFadeDuration") {
|
|
517
591
|
self.setRasterFadeDuration(&layer, styleValue:styleValue);
|
|
592
|
+
} else if (prop == "rasterColor") {
|
|
593
|
+
self.setRasterColor(&layer, styleValue:styleValue);
|
|
594
|
+
} else if (prop == "rasterColorMix") {
|
|
595
|
+
self.setRasterColorMix(&layer, styleValue:styleValue);
|
|
596
|
+
} else if (prop == "rasterColorMixTransition") {
|
|
597
|
+
self.setRasterColorMixTransition(&layer, styleValue:styleValue);
|
|
598
|
+
} else if (prop == "rasterColorRange") {
|
|
599
|
+
self.setRasterColorRange(&layer, styleValue:styleValue);
|
|
600
|
+
} else if (prop == "rasterColorRangeTransition") {
|
|
601
|
+
self.setRasterColorRangeTransition(&layer, styleValue:styleValue);
|
|
518
602
|
} else {
|
|
519
603
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: raster")
|
|
520
604
|
}
|
|
@@ -564,6 +648,79 @@ func hillshadeLayer(layer: inout HillshadeLayer, reactStyle:Dictionary<String, A
|
|
|
564
648
|
}
|
|
565
649
|
}
|
|
566
650
|
|
|
651
|
+
func modelLayer(layer: inout ModelLayer, reactStyle:Dictionary<String, Any>, oldReactStyle:Dictionary<String, Any>?, applyUpdater: @escaping ((inout ModelLayer)->Void)->Void, isValid: @escaping () -> Bool)
|
|
652
|
+
{
|
|
653
|
+
guard self._hasReactStyle(reactStyle) else {
|
|
654
|
+
Logger.log(level:.error, message: "Invalid style: \(reactStyle)")
|
|
655
|
+
return
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
let styleProps = reactStyle.keys
|
|
659
|
+
for prop in styleProps {
|
|
660
|
+
if (prop == "__MAPBOX_STYLESHEET__") {
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
let styleValue = RNMBXStyleValue.make(reactStyle[prop])
|
|
665
|
+
|
|
666
|
+
if (prop == "visibility") {
|
|
667
|
+
self.setModelStyleLayerVisibility(&layer, styleValue:styleValue);
|
|
668
|
+
} else if (prop == "modelId") {
|
|
669
|
+
self.setModelId(&layer, styleValue:styleValue);
|
|
670
|
+
} else if (prop == "modelOpacity") {
|
|
671
|
+
self.setModelOpacity(&layer, styleValue:styleValue);
|
|
672
|
+
} else if (prop == "modelOpacityTransition") {
|
|
673
|
+
self.setModelOpacityTransition(&layer, styleValue:styleValue);
|
|
674
|
+
} else if (prop == "modelRotation") {
|
|
675
|
+
self.setModelRotation(&layer, styleValue:styleValue);
|
|
676
|
+
} else if (prop == "modelRotationTransition") {
|
|
677
|
+
self.setModelRotationTransition(&layer, styleValue:styleValue);
|
|
678
|
+
} else if (prop == "modelScale") {
|
|
679
|
+
self.setModelScale(&layer, styleValue:styleValue);
|
|
680
|
+
} else if (prop == "modelScaleTransition") {
|
|
681
|
+
self.setModelScaleTransition(&layer, styleValue:styleValue);
|
|
682
|
+
} else if (prop == "modelTranslation") {
|
|
683
|
+
self.setModelTranslation(&layer, styleValue:styleValue);
|
|
684
|
+
} else if (prop == "modelTranslationTransition") {
|
|
685
|
+
self.setModelTranslationTransition(&layer, styleValue:styleValue);
|
|
686
|
+
} else if (prop == "modelColor") {
|
|
687
|
+
self.setModelColor(&layer, styleValue:styleValue);
|
|
688
|
+
} else if (prop == "modelColorTransition") {
|
|
689
|
+
self.setModelColorTransition(&layer, styleValue:styleValue);
|
|
690
|
+
} else if (prop == "modelColorMixIntensity") {
|
|
691
|
+
self.setModelColorMixIntensity(&layer, styleValue:styleValue);
|
|
692
|
+
} else if (prop == "modelColorMixIntensityTransition") {
|
|
693
|
+
self.setModelColorMixIntensityTransition(&layer, styleValue:styleValue);
|
|
694
|
+
} else if (prop == "modelType") {
|
|
695
|
+
self.setModelType(&layer, styleValue:styleValue);
|
|
696
|
+
} else if (prop == "modelCastShadows") {
|
|
697
|
+
self.setModelCastShadows(&layer, styleValue:styleValue);
|
|
698
|
+
} else if (prop == "modelReceiveShadows") {
|
|
699
|
+
self.setModelReceiveShadows(&layer, styleValue:styleValue);
|
|
700
|
+
} else if (prop == "modelAmbientOcclusionIntensity") {
|
|
701
|
+
self.setModelAmbientOcclusionIntensity(&layer, styleValue:styleValue);
|
|
702
|
+
} else if (prop == "modelAmbientOcclusionIntensityTransition") {
|
|
703
|
+
self.setModelAmbientOcclusionIntensityTransition(&layer, styleValue:styleValue);
|
|
704
|
+
} else if (prop == "modelEmissiveStrength") {
|
|
705
|
+
self.setModelEmissiveStrength(&layer, styleValue:styleValue);
|
|
706
|
+
} else if (prop == "modelEmissiveStrengthTransition") {
|
|
707
|
+
self.setModelEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
708
|
+
} else if (prop == "modelRoughness") {
|
|
709
|
+
self.setModelRoughness(&layer, styleValue:styleValue);
|
|
710
|
+
} else if (prop == "modelRoughnessTransition") {
|
|
711
|
+
self.setModelRoughnessTransition(&layer, styleValue:styleValue);
|
|
712
|
+
} else if (prop == "modelHeightBasedEmissiveStrengthMultiplier") {
|
|
713
|
+
self.setModelHeightBasedEmissiveStrengthMultiplier(&layer, styleValue:styleValue);
|
|
714
|
+
} else if (prop == "modelHeightBasedEmissiveStrengthMultiplierTransition") {
|
|
715
|
+
self.setModelHeightBasedEmissiveStrengthMultiplierTransition(&layer, styleValue:styleValue);
|
|
716
|
+
} else if (prop == "modelCutoffFadeRange") {
|
|
717
|
+
self.setModelCutoffFadeRange(&layer, styleValue:styleValue);
|
|
718
|
+
} else {
|
|
719
|
+
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: model")
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
567
724
|
func backgroundLayer(layer: inout BackgroundLayer, reactStyle:Dictionary<String, Any>, oldReactStyle:Dictionary<String, Any>?, applyUpdater: @escaping ((inout BackgroundLayer)->Void)->Void, isValid: @escaping () -> Bool)
|
|
568
725
|
{
|
|
569
726
|
guard self._hasReactStyle(reactStyle) else {
|
|
@@ -599,6 +756,10 @@ func backgroundLayer(layer: inout BackgroundLayer, reactStyle:Dictionary<String,
|
|
|
599
756
|
self.setBackgroundOpacity(&layer, styleValue:styleValue);
|
|
600
757
|
} else if (prop == "backgroundOpacityTransition") {
|
|
601
758
|
self.setBackgroundOpacityTransition(&layer, styleValue:styleValue);
|
|
759
|
+
} else if (prop == "backgroundEmissiveStrength") {
|
|
760
|
+
self.setBackgroundEmissiveStrength(&layer, styleValue:styleValue);
|
|
761
|
+
} else if (prop == "backgroundEmissiveStrengthTransition") {
|
|
762
|
+
self.setBackgroundEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
602
763
|
} else {
|
|
603
764
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: background")
|
|
604
765
|
}
|
|
@@ -722,6 +883,10 @@ func atmosphereLayer(layer: inout Atmosphere, reactStyle:Dictionary<String, Any>
|
|
|
722
883
|
self.setStarIntensity(&layer, styleValue:styleValue);
|
|
723
884
|
} else if (prop == "starIntensityTransition") {
|
|
724
885
|
self.setStarIntensityTransition(&layer, styleValue:styleValue);
|
|
886
|
+
} else if (prop == "verticalRange") {
|
|
887
|
+
self.setVerticalRange(&layer, styleValue:styleValue);
|
|
888
|
+
} else if (prop == "verticalRangeTransition") {
|
|
889
|
+
self.setVerticalRangeTransition(&layer, styleValue:styleValue);
|
|
725
890
|
} else {
|
|
726
891
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: atmosphere")
|
|
727
892
|
}
|
|
@@ -851,6 +1016,24 @@ func setFillPattern(_ layer: inout FillLayer, styleValue: RNMBXStyleValue)
|
|
|
851
1016
|
|
|
852
1017
|
}
|
|
853
1018
|
|
|
1019
|
+
func setFillEmissiveStrength(_ layer: inout FillLayer, styleValue: RNMBXStyleValue)
|
|
1020
|
+
{
|
|
1021
|
+
#if RNMBX_11
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
layer.fillEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
#endif
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
func setFillEmissiveStrengthTransition(_ layer: inout FillLayer, styleValue: RNMBXStyleValue)
|
|
1031
|
+
{
|
|
1032
|
+
#if RNMBX_11
|
|
1033
|
+
layer.fillEmissiveStrengthTransition = styleValue.getTransition();
|
|
1034
|
+
#endif
|
|
1035
|
+
}
|
|
1036
|
+
|
|
854
1037
|
|
|
855
1038
|
|
|
856
1039
|
func setLineCap(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
@@ -1046,6 +1229,24 @@ func setLineTrimOffset(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
|
1046
1229
|
|
|
1047
1230
|
}
|
|
1048
1231
|
|
|
1232
|
+
func setLineEmissiveStrength(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1233
|
+
{
|
|
1234
|
+
#if RNMBX_11
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
layer.lineEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
#endif
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
func setLineEmissiveStrengthTransition(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1244
|
+
{
|
|
1245
|
+
#if RNMBX_11
|
|
1246
|
+
layer.lineEmissiveStrengthTransition = styleValue.getTransition();
|
|
1247
|
+
#endif
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1049
1250
|
|
|
1050
1251
|
|
|
1051
1252
|
func setSymbolPlacement(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
@@ -1608,6 +1809,71 @@ func setTextTranslateAnchor(_ layer: inout SymbolLayer, styleValue: RNMBXStyleVa
|
|
|
1608
1809
|
|
|
1609
1810
|
}
|
|
1610
1811
|
|
|
1812
|
+
func setSymbolZElevate(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1813
|
+
{
|
|
1814
|
+
#if RNMBX_11
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
layer.symbolZElevate = styleValue.mglStyleValueBoolean();
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
#endif
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
func setIconEmissiveStrength(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1824
|
+
{
|
|
1825
|
+
#if RNMBX_11
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
layer.iconEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
#endif
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
func setIconEmissiveStrengthTransition(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1835
|
+
{
|
|
1836
|
+
#if RNMBX_11
|
|
1837
|
+
layer.iconEmissiveStrengthTransition = styleValue.getTransition();
|
|
1838
|
+
#endif
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
func setTextEmissiveStrength(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1842
|
+
{
|
|
1843
|
+
#if RNMBX_11
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
layer.textEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
#endif
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
func setTextEmissiveStrengthTransition(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1853
|
+
{
|
|
1854
|
+
#if RNMBX_11
|
|
1855
|
+
layer.textEmissiveStrengthTransition = styleValue.getTransition();
|
|
1856
|
+
#endif
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
func setIconImageCrossFade(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1860
|
+
{
|
|
1861
|
+
#if RNMBX_11
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
layer.iconImageCrossFade = styleValue.mglStyleValueNumber();
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
#endif
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
func setIconImageCrossFadeTransition(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1871
|
+
{
|
|
1872
|
+
#if RNMBX_11
|
|
1873
|
+
layer.iconImageCrossFadeTransition = styleValue.getTransition();
|
|
1874
|
+
#endif
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1611
1877
|
|
|
1612
1878
|
|
|
1613
1879
|
func setCircleSortKey(_ layer: inout CircleLayer, styleValue: RNMBXStyleValue)
|
|
@@ -1763,6 +2029,24 @@ func setCircleStrokeOpacityTransition(_ layer: inout CircleLayer, styleValue: RN
|
|
|
1763
2029
|
layer.circleStrokeOpacityTransition = styleValue.getTransition();
|
|
1764
2030
|
}
|
|
1765
2031
|
|
|
2032
|
+
func setCircleEmissiveStrength(_ layer: inout CircleLayer, styleValue: RNMBXStyleValue)
|
|
2033
|
+
{
|
|
2034
|
+
#if RNMBX_11
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
layer.circleEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
#endif
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
func setCircleEmissiveStrengthTransition(_ layer: inout CircleLayer, styleValue: RNMBXStyleValue)
|
|
2044
|
+
{
|
|
2045
|
+
#if RNMBX_11
|
|
2046
|
+
layer.circleEmissiveStrengthTransition = styleValue.getTransition();
|
|
2047
|
+
#endif
|
|
2048
|
+
}
|
|
2049
|
+
|
|
1766
2050
|
|
|
1767
2051
|
|
|
1768
2052
|
func setHeatmapStyleLayerVisibility(_ layer: inout HeatmapLayer, styleValue: RNMBXStyleValue)
|
|
@@ -1934,6 +2218,190 @@ func setFillExtrusionVerticalGradient(_ layer: inout FillExtrusionLayer, styleVa
|
|
|
1934
2218
|
|
|
1935
2219
|
}
|
|
1936
2220
|
|
|
2221
|
+
func setFillExtrusionRoundedRoof(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2222
|
+
{
|
|
2223
|
+
#if RNMBX_11
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
layer.fillExtrusionRoundedRoof = styleValue.mglStyleValueBoolean();
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
#endif
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
func setFillExtrusionAmbientOcclusionWallRadius(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2233
|
+
{
|
|
2234
|
+
#if RNMBX_11
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
layer.fillExtrusionAmbientOcclusionWallRadius = styleValue.mglStyleValueNumber();
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
#endif
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
func setFillExtrusionAmbientOcclusionWallRadiusTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2244
|
+
{
|
|
2245
|
+
#if RNMBX_11
|
|
2246
|
+
layer.fillExtrusionAmbientOcclusionWallRadiusTransition = styleValue.getTransition();
|
|
2247
|
+
#endif
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
func setFillExtrusionAmbientOcclusionGroundRadius(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2251
|
+
{
|
|
2252
|
+
#if RNMBX_11
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
layer.fillExtrusionAmbientOcclusionGroundRadius = styleValue.mglStyleValueNumber();
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
#endif
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
func setFillExtrusionAmbientOcclusionGroundRadiusTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2262
|
+
{
|
|
2263
|
+
#if RNMBX_11
|
|
2264
|
+
layer.fillExtrusionAmbientOcclusionGroundRadiusTransition = styleValue.getTransition();
|
|
2265
|
+
#endif
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
func setFillExtrusionAmbientOcclusionGroundAttenuation(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2269
|
+
{
|
|
2270
|
+
#if RNMBX_11
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
layer.fillExtrusionAmbientOcclusionGroundAttenuation = styleValue.mglStyleValueNumber();
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
#endif
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
func setFillExtrusionAmbientOcclusionGroundAttenuationTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2280
|
+
{
|
|
2281
|
+
#if RNMBX_11
|
|
2282
|
+
layer.fillExtrusionAmbientOcclusionGroundAttenuationTransition = styleValue.getTransition();
|
|
2283
|
+
#endif
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
func setFillExtrusionFloodLightColor(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2287
|
+
{
|
|
2288
|
+
#if RNMBX_11
|
|
2289
|
+
|
|
2290
|
+
|
|
2291
|
+
layer.fillExtrusionFloodLightColor = styleValue.mglStyleValueColor();
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
#endif
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
func setFillExtrusionFloodLightColorTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2298
|
+
{
|
|
2299
|
+
#if RNMBX_11
|
|
2300
|
+
layer.fillExtrusionFloodLightColorTransition = styleValue.getTransition();
|
|
2301
|
+
#endif
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
func setFillExtrusionFloodLightIntensity(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2305
|
+
{
|
|
2306
|
+
#if RNMBX_11
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
layer.fillExtrusionFloodLightIntensity = styleValue.mglStyleValueNumber();
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
#endif
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
func setFillExtrusionFloodLightIntensityTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2316
|
+
{
|
|
2317
|
+
#if RNMBX_11
|
|
2318
|
+
layer.fillExtrusionFloodLightIntensityTransition = styleValue.getTransition();
|
|
2319
|
+
#endif
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
func setFillExtrusionFloodLightWallRadius(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2323
|
+
{
|
|
2324
|
+
#if RNMBX_11
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
layer.fillExtrusionFloodLightWallRadius = styleValue.mglStyleValueNumber();
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
#endif
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
func setFillExtrusionFloodLightWallRadiusTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2334
|
+
{
|
|
2335
|
+
#if RNMBX_11
|
|
2336
|
+
layer.fillExtrusionFloodLightWallRadiusTransition = styleValue.getTransition();
|
|
2337
|
+
#endif
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
func setFillExtrusionFloodLightGroundRadius(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2341
|
+
{
|
|
2342
|
+
#if RNMBX_11
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
layer.fillExtrusionFloodLightGroundRadius = styleValue.mglStyleValueNumber();
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
#endif
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
func setFillExtrusionFloodLightGroundRadiusTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2352
|
+
{
|
|
2353
|
+
#if RNMBX_11
|
|
2354
|
+
layer.fillExtrusionFloodLightGroundRadiusTransition = styleValue.getTransition();
|
|
2355
|
+
#endif
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
func setFillExtrusionFloodLightGroundAttenuation(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2359
|
+
{
|
|
2360
|
+
#if RNMBX_11
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
layer.fillExtrusionFloodLightGroundAttenuation = styleValue.mglStyleValueNumber();
|
|
2364
|
+
|
|
2365
|
+
|
|
2366
|
+
#endif
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
func setFillExtrusionFloodLightGroundAttenuationTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2370
|
+
{
|
|
2371
|
+
#if RNMBX_11
|
|
2372
|
+
layer.fillExtrusionFloodLightGroundAttenuationTransition = styleValue.getTransition();
|
|
2373
|
+
#endif
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
func setFillExtrusionVerticalScale(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2377
|
+
{
|
|
2378
|
+
#if RNMBX_11
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
layer.fillExtrusionVerticalScale = styleValue.mglStyleValueNumber();
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
#endif
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
func setFillExtrusionVerticalScaleTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2388
|
+
{
|
|
2389
|
+
#if RNMBX_11
|
|
2390
|
+
layer.fillExtrusionVerticalScaleTransition = styleValue.getTransition();
|
|
2391
|
+
#endif
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
func setFillExtrusionCutoffFadeRange(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2395
|
+
{
|
|
2396
|
+
#if RNMBX_11
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
layer.fillExtrusionCutoffFadeRange = styleValue.mglStyleValueNumber();
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
#endif
|
|
2403
|
+
}
|
|
2404
|
+
|
|
1937
2405
|
|
|
1938
2406
|
|
|
1939
2407
|
func setRasterStyleLayerVisibility(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
@@ -2043,6 +2511,53 @@ func setRasterFadeDuration(_ layer: inout RasterLayer, styleValue: RNMBXStyleVal
|
|
|
2043
2511
|
|
|
2044
2512
|
}
|
|
2045
2513
|
|
|
2514
|
+
func setRasterColor(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2515
|
+
{
|
|
2516
|
+
#if RNMBX_11
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
layer.rasterColor = styleValue.mglStyleValueColor();
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
#endif
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
func setRasterColorMix(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2526
|
+
{
|
|
2527
|
+
#if RNMBX_11
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
layer.rasterColorMix = styleValue.mglStyleValueArrayNumber();
|
|
2531
|
+
|
|
2532
|
+
|
|
2533
|
+
#endif
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
func setRasterColorMixTransition(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2537
|
+
{
|
|
2538
|
+
#if RNMBX_11
|
|
2539
|
+
layer.rasterColorMixTransition = styleValue.getTransition();
|
|
2540
|
+
#endif
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
func setRasterColorRange(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2544
|
+
{
|
|
2545
|
+
#if RNMBX_11
|
|
2546
|
+
|
|
2547
|
+
|
|
2548
|
+
layer.rasterColorRange = styleValue.mglStyleValueArrayNumber();
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
#endif
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
func setRasterColorRangeTransition(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2555
|
+
{
|
|
2556
|
+
#if RNMBX_11
|
|
2557
|
+
layer.rasterColorRangeTransition = styleValue.getTransition();
|
|
2558
|
+
#endif
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2046
2561
|
|
|
2047
2562
|
|
|
2048
2563
|
func setHillshadeStyleLayerVisibility(_ layer: inout HillshadeLayer, styleValue: RNMBXStyleValue)
|
|
@@ -2126,6 +2641,240 @@ func setHillshadeAccentColorTransition(_ layer: inout HillshadeLayer, styleValue
|
|
|
2126
2641
|
|
|
2127
2642
|
|
|
2128
2643
|
|
|
2644
|
+
func setModelStyleLayerVisibility(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2645
|
+
{
|
|
2646
|
+
#if RNMBX_11
|
|
2647
|
+
layer.visibility = styleValue.isVisible();
|
|
2648
|
+
#endif
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
func setModelId(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2652
|
+
{
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
layer.modelId = styleValue.mglStyleValueString();
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
func setModelOpacity(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2661
|
+
{
|
|
2662
|
+
#if RNMBX_11
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
layer.modelOpacity = styleValue.mglStyleValueNumber();
|
|
2666
|
+
|
|
2667
|
+
|
|
2668
|
+
#endif
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
func setModelOpacityTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2672
|
+
{
|
|
2673
|
+
#if RNMBX_11
|
|
2674
|
+
layer.modelOpacityTransition = styleValue.getTransition();
|
|
2675
|
+
#endif
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
func setModelRotation(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2679
|
+
{
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
layer.modelRotation = styleValue.mglStyleValueArrayNumber();
|
|
2683
|
+
|
|
2684
|
+
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
func setModelRotationTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2688
|
+
{
|
|
2689
|
+
layer.modelRotationTransition = styleValue.getTransition();
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
func setModelScale(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2693
|
+
{
|
|
2694
|
+
|
|
2695
|
+
|
|
2696
|
+
layer.modelScale = styleValue.mglStyleValueArrayNumber();
|
|
2697
|
+
|
|
2698
|
+
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
func setModelScaleTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2702
|
+
{
|
|
2703
|
+
layer.modelScaleTransition = styleValue.getTransition();
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
func setModelTranslation(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2707
|
+
{
|
|
2708
|
+
#if RNMBX_11
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
layer.modelTranslation = styleValue.mglStyleValueArrayNumber();
|
|
2712
|
+
|
|
2713
|
+
|
|
2714
|
+
#endif
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
func setModelTranslationTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2718
|
+
{
|
|
2719
|
+
#if RNMBX_11
|
|
2720
|
+
layer.modelTranslationTransition = styleValue.getTransition();
|
|
2721
|
+
#endif
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
func setModelColor(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2725
|
+
{
|
|
2726
|
+
#if RNMBX_11
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
layer.modelColor = styleValue.mglStyleValueColor();
|
|
2730
|
+
|
|
2731
|
+
|
|
2732
|
+
#endif
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
func setModelColorTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2736
|
+
{
|
|
2737
|
+
#if RNMBX_11
|
|
2738
|
+
layer.modelColorTransition = styleValue.getTransition();
|
|
2739
|
+
#endif
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
func setModelColorMixIntensity(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2743
|
+
{
|
|
2744
|
+
#if RNMBX_11
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
layer.modelColorMixIntensity = styleValue.mglStyleValueNumber();
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
#endif
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
func setModelColorMixIntensityTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2754
|
+
{
|
|
2755
|
+
#if RNMBX_11
|
|
2756
|
+
layer.modelColorMixIntensityTransition = styleValue.getTransition();
|
|
2757
|
+
#endif
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
func setModelType(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2761
|
+
{
|
|
2762
|
+
#if RNMBX_11
|
|
2763
|
+
|
|
2764
|
+
|
|
2765
|
+
layer.modelType = styleValue.mglStyleValueEnum();
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
#endif
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
func setModelCastShadows(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2772
|
+
{
|
|
2773
|
+
#if RNMBX_11
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
layer.modelCastShadows = styleValue.mglStyleValueBoolean();
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
#endif
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
func setModelReceiveShadows(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2783
|
+
{
|
|
2784
|
+
#if RNMBX_11
|
|
2785
|
+
|
|
2786
|
+
|
|
2787
|
+
layer.modelReceiveShadows = styleValue.mglStyleValueBoolean();
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
#endif
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
func setModelAmbientOcclusionIntensity(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2794
|
+
{
|
|
2795
|
+
#if RNMBX_11
|
|
2796
|
+
|
|
2797
|
+
|
|
2798
|
+
layer.modelAmbientOcclusionIntensity = styleValue.mglStyleValueNumber();
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
#endif
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
func setModelAmbientOcclusionIntensityTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2805
|
+
{
|
|
2806
|
+
#if RNMBX_11
|
|
2807
|
+
layer.modelAmbientOcclusionIntensityTransition = styleValue.getTransition();
|
|
2808
|
+
#endif
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
func setModelEmissiveStrength(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2812
|
+
{
|
|
2813
|
+
#if RNMBX_11
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
layer.modelEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
#endif
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
func setModelEmissiveStrengthTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2823
|
+
{
|
|
2824
|
+
#if RNMBX_11
|
|
2825
|
+
layer.modelEmissiveStrengthTransition = styleValue.getTransition();
|
|
2826
|
+
#endif
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
func setModelRoughness(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2830
|
+
{
|
|
2831
|
+
#if RNMBX_11
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
layer.modelRoughness = styleValue.mglStyleValueNumber();
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
#endif
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
func setModelRoughnessTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2841
|
+
{
|
|
2842
|
+
#if RNMBX_11
|
|
2843
|
+
layer.modelRoughnessTransition = styleValue.getTransition();
|
|
2844
|
+
#endif
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
func setModelHeightBasedEmissiveStrengthMultiplier(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2848
|
+
{
|
|
2849
|
+
#if RNMBX_11
|
|
2850
|
+
|
|
2851
|
+
|
|
2852
|
+
layer.modelHeightBasedEmissiveStrengthMultiplier = styleValue.mglStyleValueArrayNumber();
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
#endif
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
func setModelHeightBasedEmissiveStrengthMultiplierTransition(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2859
|
+
{
|
|
2860
|
+
#if RNMBX_11
|
|
2861
|
+
layer.modelHeightBasedEmissiveStrengthMultiplierTransition = styleValue.getTransition();
|
|
2862
|
+
#endif
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
func setModelCutoffFadeRange(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
2866
|
+
{
|
|
2867
|
+
#if RNMBX_11
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
layer.modelCutoffFadeRange = styleValue.mglStyleValueNumber();
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
#endif
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
|
|
2877
|
+
|
|
2129
2878
|
func setBackgroundStyleLayerVisibility(_ layer: inout BackgroundLayer, styleValue: RNMBXStyleValue)
|
|
2130
2879
|
{
|
|
2131
2880
|
layer.visibility = styleValue.isVisible();
|
|
@@ -2168,6 +2917,24 @@ func setBackgroundOpacityTransition(_ layer: inout BackgroundLayer, styleValue:
|
|
|
2168
2917
|
layer.backgroundOpacityTransition = styleValue.getTransition();
|
|
2169
2918
|
}
|
|
2170
2919
|
|
|
2920
|
+
func setBackgroundEmissiveStrength(_ layer: inout BackgroundLayer, styleValue: RNMBXStyleValue)
|
|
2921
|
+
{
|
|
2922
|
+
#if RNMBX_11
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
layer.backgroundEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
#endif
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
func setBackgroundEmissiveStrengthTransition(_ layer: inout BackgroundLayer, styleValue: RNMBXStyleValue)
|
|
2932
|
+
{
|
|
2933
|
+
#if RNMBX_11
|
|
2934
|
+
layer.backgroundEmissiveStrengthTransition = styleValue.getTransition();
|
|
2935
|
+
#endif
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2171
2938
|
|
|
2172
2939
|
|
|
2173
2940
|
func setSkyStyleLayerVisibility(_ layer: inout SkyLayer, styleValue: RNMBXStyleValue)
|
|
@@ -2396,6 +3163,24 @@ func setStarIntensityTransition(_ layer: inout Atmosphere, styleValue: RNMBXStyl
|
|
|
2396
3163
|
layer.starIntensityTransition = styleValue.getTransition();
|
|
2397
3164
|
}
|
|
2398
3165
|
|
|
3166
|
+
func setVerticalRange(_ layer: inout Atmosphere, styleValue: RNMBXStyleValue)
|
|
3167
|
+
{
|
|
3168
|
+
#if RNMBX_11
|
|
3169
|
+
|
|
3170
|
+
|
|
3171
|
+
layer.verticalRange = styleValue.mglStyleValueArrayNumber();
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
#endif
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
func setVerticalRangeTransition(_ layer: inout Atmosphere, styleValue: RNMBXStyleValue)
|
|
3178
|
+
{
|
|
3179
|
+
#if RNMBX_11
|
|
3180
|
+
layer.verticalRangeTransition = styleValue.getTransition();
|
|
3181
|
+
#endif
|
|
3182
|
+
}
|
|
3183
|
+
|
|
2399
3184
|
|
|
2400
3185
|
|
|
2401
3186
|
func setExaggeration(_ layer: inout Terrain, styleValue: RNMBXStyleValue)
|