我正在使用 react native mapbox gl 并添加了 pbf 磁贴,例如:
<MapboxGL.VectorSource
id="idTestSoruce"
tms={true}
tileUrlTemplates={["url@EPSG:900913_1024@pbf/{z}/{x}/{y}.pbf"]}>
<MapboxGL.FillLayer
id="idTestLayer"
sourceID="idTestSoruce"
sourceLayerID="plotm"
style={{ visibility: "visible", fillColor: "red"}}
minZoomLevel={12}
maxZoomLevel={22}
/>
</MapboxGL.VectorSource>
版本信息:
react-native: 0.59.10
@react-native-mapbox-gl/maps: 7.0.8
它在 ios 中运行良好,但在 android 中出现以下错误:
Error while updating property 'tms' of a view managed by: RCTMGVectorSource