-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Asynchronos tile URL calculation #1036
Conversation
This option should be available for all the |
FYI I've backported my ol2 pointillism hack to ol3: http://fredj.io/ol/pointillism/pointillism.html |
@fredj very nice. I'm interested to know why you need to call |
Very cool demo @fredj! |
Good question: the img is configured with crossOrigin = anonymous (in ol.source.OSM). At first, the src is set to a remote image (pointillism.js line 30) but inside the tileLoadFunction function the src is set again using |
Asynchronos tile URL calculation
singleTile overlays repeating when base layer has wrapDateLine false. r=@bartvde
This PR, developed with @elemoine and @vmx, allows the way that tiles are loaded to be overridden. This allows tile URLs to be generated asynchronously, as requested by @vmx in #792. This functionality is needed to eventually support tiles accessed with JavaScripts File API, or tiles stored in some databases, such as PouchDB.
As a demonstration of its use, here a one second
setTimeout
is used to simulate asynchronous tile URL lookup: