add onClick event to map

Home Forums WP OSM Plugin add onClick event to map

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #409
    tom
    Guest

    HI,

    I would like to fire an jquery/js event to parse lon and lat to a certain div container. How can I add such a function?

    #424
    admin
    Keymaster

    Hi tom,

    there is no interface to do this – you could modify the WP OSM Plugin, this will lead to problems if there are updates and in addition you get a lot you do not need.

    If you familiar with coding its for sure easier to simply take just what you need from one of these libraries. It will take a bit longer to start but you will be able to make it perfect for your needs.

    https://openlayers.org/en/latest/doc/quickstart.html

    https://leafletjs.com/examples/quick-start/

    Br, Michael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WP OSM Plugin’ is closed to new topics and replies.