[英]Mapbox not found. @mapbox/react-native-mapbox-gl doesn't build iOS project on CircleCi
[英]How to use match filter in Mapbox react-native-mapbox-gl
找到了解決方案。
我們不能混合過濾器==
並match
react-native-mapbox-gl
匹配。
所以我也將我使用的==
過濾器轉換為match
過濾器:
<MapboxGL.SymbolLayer
id="LayerRestaurant"
filter={[
'all',
['match', ['get', 'maki'], 'restaurant', true, false],
['match', ['get', 'name'], 'Pita Pit', true, false],
]}
/>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.