Skip to content

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

@jacksonjacobs1

Description

@jacksonjacobs1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions