-
-
Notifications
You must be signed in to change notification settings - Fork 848
Deprecated SymbolLayerChildren
Miklós Fazekas edited this page Mar 21, 2023
·
4 revisions
Passing a children to symbol layer used to add an image with the snapshot of the children to the style with the same id as the layer, and also set iconImageName
to this id. It's now deprecated, use the Mapbox.Image component instead.
<Mapbox.SymbolLayer id="a-symbol-layer"
>
<View style={{width:20, height:20 ,backgroundColor:'green', borderRadius: 10}}/>
</Mapboxl.SymbolLayer>
<Mapbox.Images>
<Mapbox.Image
name="image-for-a-symbo-layer"
>
<View style={{width:20, height:20 ,backgroundColor:'green', borderRadius: 10}}/>
</Mapbox.Image>
</Mapbox.Images>
<Mapbox.SymbolLayer
id='a-symbo-layer'
style={{iconImage: 'image-for-a-symbo-layer'}}
/>