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 Reply
    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 Reply
    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)
Reply To: add onClick event to map
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre class=""> <em> <strong> <del datetime="" cite=""> <ins datetime="" cite=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">