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
Allow a custom method as tile getter in L.TileLayer #2828
Comments
Hmm. Have you looked at the bounds option? |
Thanks for that hint, i've overlooked this option. However, when |
Oh, I thought this was what you wanted? To speed up the display of blank error tiles? Have you also looked at the errorTileUrl option? |
Yes, the |
Ahh, I see. That makes sense.
|
You can inherit from TileLayer and do your custom override there. |
I work with custom map tiles for game maps like the Guild Wars 2 Maps API which have a limited tile coverage and i was looking for a way to prevent 404 spam and speed up the display of the blank error tiles.
Google Maps allows this in it's ImageMapTypeOptions object, so i made a silly little edit to mime this behaviour: https://github.com/codemasher/Leaflet/commit/b2577e5a05b45f3f83f0bf8bdbe36389bff61628 - demo over here
However, i don't have that much insight in Leaflet to know if this would break something and how to implement it the best way, so i have to leave it up to you guys.
The text was updated successfully, but these errors were encountered: