Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Reuse of draggable leaflet popup

    General Discussion
    2
    3
    3268
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      neothemachine last edited by

      Hi!
      When you click on a point on the map you get a nice transparent popup that you can move and you see data values for that location. As I also use Leaflet as mapping library I had a quick look and couldn't find such a draggable popup control as a leaflet plugin published somewhere open-source. I think that would be really useful to have for certain scientific maps. My question is: Have you thought about making this little leaflet control open-source? If not and you don't want to do that, would you mind if I reuse the styles from Windyty (CSS/HTML popup structure) and create such a thing myself?
      Thanks, Maik

      ivo 1 Reply Last reply Reply Quote 0
      • ivo
        ivo Administrator @neothemachine last edited by

        @neothemachine it is just leaflet html marker that is dragabble. Standard Leaflet feature. No big deal.

        1 Reply Last reply Reply Quote 0
        • N
          neothemachine last edited by

          Ah I see, it's just a marker, I thought it was a popup somehow. So you use a draggable marker with a DivIcon which contains the HTML? How did you attach the handler for the close button? Thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
          NodeBB & contributors, OSM & contributors, HERE maps
          Terms and Conditions     Privacy Policy