react-native-mapbox-gl
react-native-mapbox-gl copied to clipboard
Can I render non-geographical map tiles served by my own backend ?
I need to render my own map tiles which is not based on geographical coordinate but the tiles come from point clouds.
I used the RasterSource with my url template. It fetches the tiles and display them, but in background there is still world-map. how can I remove that background default map ?
<View style={styles.container}>
<Mapbox.MapView
zoomLevel={0}
styleUrl="http://192.168.2.101:3003/style.json"
centerCoordinate={[0, 0]}
style={styles.container}>
<Mapbox.RasterSource
id="myCustomTiles"
url={'http://192.168.2.101:3003/tiles/{z}/{x}/{y}.png'}
tileSize={512}
maxZoomLevel={2}
minZoomLevel={0}>
<Mapbox.RasterLayer
style={{rasterOpacity: 1}}
id="customTileLayer"
sourceID="myCustomTiles"
/>
</Mapbox.RasterSource>
</Mapbox.MapView>
</View>