Hye,我想使用react-native-mapbox-gl构建一个应用程序,并想做一些与在Web中使用mapbox一样的应用程序。
https://medium.com/@zhenanhong/creating-map-based-visualization-using-vector-tiles-dbf55d15a7f
我已经可以显示地图了,但是当我添加矢量源和填充图层时,什么也没发生。
return( <Mapbox.MapView styleURL={Mapbox.StyleURL.Street} zoomLevel={10} style={styles.container} showUserLocation={true} userTrackingMode={1} > <Mapbox.VectorSource> <Mapbox.FillLayer id='customSourceFill' sourceLayerID='vector-source' style={stylesMap.boxFill} /> </Mapbox.VectorSource> </Mapbox.MapView> )
希望任何人都可以为我提供指导以操作react-native-mapbox-gl,因为该示例不适用于我。