You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom'react';import{MapView,ShapeSource,LineLayer,Camera,RasterSource,RasterLayer}from'@rnmapbox/maps';constaLine={type: 'LineString',coordinates: [[-74.00597,40.71427],[-74.00697,40.71527],],};constTILESERVER='<CUSTOM_TILES>';constTileLayer=({
name
})=>{return(<RasterSourceid={name}tileSize={256}tileUrlTemplates={[`${TILESERVER}/${name}/{z}/{x}/{y}.png"`]}><RasterLayerid={name}sourceID={name}style={{visibility: 'visible'}}/></RasterSource>);};classBugReportExampleextendsReact.Component{render(){constlayers=[{name: 'consume_with_pedestrian_zones'}];return(<MapViewstyle={{flex: 1}}><CameracenterCoordinate={[-74.00597,40.71427]}zoomLevel={14}/>{layers.map(({ name })=>(<TileLayerkey={name}name={name}/>))}</MapView>);}}
Observed behavior and steps to reproduce
When zooming in with my custom RasterLayer being rendered, after a certain threshold, artifacts start to appear (s. screenshots). It only affects certain of my custom layer (big, red circles), others (green, smaller polygons) are not affected. It gets worse the bigger the circles get. For smaller circles it starts between zoom 15 and 16, for larger ones between 14 and 15. The larger the zoom the bigger the artifacts.
I also built this feature for a web application using leaflet.js, where this issue does not appear, so I figured it must be MapBox related.
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered:
Mapbox Implementation
Mapbox
Mapbox Version
10.19.1
React Native Version
0.74.5
Platform
iOS
@rnmapbox/maps
version10.1.33
Standalone component to reproduce
Observed behavior and steps to reproduce
When zooming in with my custom RasterLayer being rendered, after a certain threshold, artifacts start to appear (s. screenshots). It only affects certain of my custom layer (big, red circles), others (green, smaller polygons) are not affected. It gets worse the bigger the circles get. For smaller circles it starts between zoom 15 and 16, for larger ones between 14 and 15. The larger the zoom the bigger the artifacts.
I also built this feature for a web application using leaflet.js, where this issue does not appear, so I figured it must be MapBox related.
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: