Skip to content
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

How to trigger a handler on OSM layer tile load #1333

Open
jacksonjacobs1 opened this issue Sep 25, 2024 · 0 comments
Open

How to trigger a handler on OSM layer tile load #1333

jacksonjacobs1 opened this issue Sep 25, 2024 · 0 comments

Comments

@jacksonjacobs1
Copy link

Thanks for supporting this excellent package!

I would like to attach an event listener to an OSM layer so that a custom handler function is triggered every time an image tile is requested/loaded from the tile server. The code would look something like this:

tileLayer.geoOn(geo.event.tileLoad, handlerFunction)

However, the GeoJS API doesn't seem to expose any such event. Does this functionality exist, and if so, is my API usage above on the right track?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant