I m using react native mapbox gl and added pbf tile like :
<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>
Version info:
react-native: 0.59.10
@react-native-mapbox-gl/maps: 7.0.8
It is working perfectly in ios but in android getting following error:
Error while updating property 'tms' of a view managed by: RCTMGVectorSource
I change following in source :
From :
@ReactProp(name="tms")
public void setTMS(RCTMGLRasterSource source, boolean tms) {
source.setTMS(tms);
}
To:
@ReactProp(name="tms")
public void setTMS(T source, boolean tms) {
source.setTMS(tms);
}
Ref. : issue link