-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error: Image given has not completed loading #24
Comments
How many times does the layer have at zoom level 1? Do they cover the extent of the image you are trying to save? |
Hello, |
Hi @jieter , the same error occurs when running the examples.
Returns the following:
Now, I'm very sure, that I didn't have this problem previously. I'm not sure what changed. I'm using node v10.16.1 and installed all the ubuntu libraries specified in the README.md. Any ideas? |
@janbols Did you find a solution, i'm running into this problem aswell, on a system that has always been running fine. |
@janbols no idea, I have not used it touched this codebase in a while... |
@mrcbk, indeed using thunderforest also works for me. Hmmm, what could be different between both providers? |
There can be a multitude of differences between providers, for example CORS headers and response times. |
I'm just making a note here in case it helps anybody. It seems that the osm xyz server has some weird CORS set up that prevents this library from working with it. I spent nearly a day pulling my hair out trying to figure out what was going on but when I tried some different tiles everything worked. Here's a few I tested that worked perfectly fine: // mapbox works
let mapId = 'mapbox/streets-v11';
// let mapId = 'mapbox/outdoors-v11';
let token = "pk.yourmapboxtoken";
const tileLayer = L.tileLayer(
`https://api.mapbox.com/styles/v1/${mapId}/tiles/{z}/{x}/{y}?access_token=${token}`
).addTo(map);
const tileLayer = L.tileLayer(
`https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg`
).addTo(map);
const tileLayer = L.tileLayer(
`https://a.basemaps.cartocdn.com/rastertiles/voyager_labels_under/{z}/{x}/{y}.png`
).addTo(map);
const tileLayer = L.tileLayer(
`https://a.basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}.png`
).addTo(map); It was only the OSM xyz server that was giving me the issue but realistically, it could be any server that doesn't send back CORS headers as expected. |
Hello,
I've seen that this repo has been not actively developed since 2017 but I'm using it and eventually I could try to fix it if someone could help me to understand this issue, because apart of this issue this library works very well.
Basically, what happen is that if I zoom out too much, I get this exception:
To be more precise, this is the configuration I use:
To export the map I use this code:
Any hints will be very appreciated.
Daniele
The text was updated successfully, but these errors were encountered: