maps
maps copied to clipboard
Map not refetching tiles and layers while moving around the map
Describe the bug
Mapbox is not refetching tiles when moving around the map
To Reproduce
here's the render method where I'm using this and it's not able to re-fetch
return (
<MapboxGL.MapView zoomEnabled>
<MapboxGL.Camera
zoomLevel={zoom}
animationMode={'flyTo'}
animationDuration={2000}
centerCoordinate={coordinate}
/>
<MapboxGL.UserLocation />
<MapboxGL.VectorSource
id="mapbox-terrain"
tileUrlTemplates={[
'https://xxxxxxx:[email protected]/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=xxxxxxx&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&FORMAT=application/vnd.mapbox-vector-tile&TILECOL={x}&TILEROW={y}&caheVersion=1645650157'
]}
minZoomLevel={0}
maxZoomLevel={13}>
<MapboxGL.LineLayer
id="terrain-data"
sourceID="mapbox-terrain"
sourceLayerID="county_boundary"
style={{ lineColor: '#00F', lineWidth: 2 }}
/>
</MapboxGL.VectorSource>
</MapboxGL.MapView>
)
It seems to be working perfectly with this one
https://tiles.mapillary.com/maps/vtp/mly1_public/2/{z}/{x}/{y}?access_token=*****',
Expected behavior
Mapbox is not re-fetching layers / tiles while moving around the map. It should keep re-fetching
Screenshots
Please, find attached a working example of the bug.
https://user-images.githubusercontent.com/829772/155589239-c17bfcbd-348c-4dd5-9f07-b057fd38eaf4.mp4
Versions (please complete the following information):
All versions
Probably is a problem of something that I'm missing from my side.
Thank you so much!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.