创建地图,并在其上方添加其他矢量(VectorSources)切片(react-native-mapbox-gl)

问题描述 投票:0回答:0

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,因为该示例不适用于我。

react-native mapbox mapbox-gl
© www.soinside.com 2019 - 2024. All rights reserved.