-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RasterLayer flicker #800
Comments
@M2dL1fe I get a lot of "Resource not found" errors when running the sample you provided:
|
The same Url, using JS can be perfectly displayed |
@M2dL1fe How do you use it in JS? I see nothing on the map with this code: mapboxgl.accessToken = 'YOUR_MAPBOX_ACCESS_TOKEN';
const map = new mapboxgl.Map({
container: 'map', // container ID
style: {
'version': 8,
'sources': {
'raster-tiles': {
'type': 'raster',
'tiles': ['https://wslgis.water.co.nz/arcgis/rest/services/Custom/CustomPublic/MapServer/export?dpi=96&transparent=true&format=png32&layers=show:-1,-1,-1,8&bbox={bbox-epsg-3857}&bboxSR=3857&imageSR=3857&size=256,256&f=image'],
'tileSize': 256
}
},
'layers': [
{
'id': 'simple-tiles',
'type': 'raster',
'source': 'raster-tiles',
'minzoom': 0,
'maxzoom': 22
}
]
},
center: [-74.5, 40], // starting position
zoom: 2 // starting zoom
}); |
longitude: 174.7633 latitude: -36.8485 zoom: 12 , country :New zeland @evil159 |
@M2dL1fe Thank you for clarifying the tile location! We've made an initial pass over this issue and it appears to be a bug on our side. |
Ticket for tracking this internally https://mapbox.atlassian.net/browse/MAPSNAT-2617 |
The Url provided by the government, we have no right to change |
RasterLayer flicker, then disappear.
No problem with Web access
Dec-10-2024.15-37-18.mp4
s
The text was updated successfully, but these errors were encountered: