Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Reuse of draggable leaflet popup

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 4.5k Views 1 Watching
    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.
    • ? Offline
      A Former User
      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

      ivoI 1 Reply Last reply Reply Quote 0
      • ivoI Offline
        ivo Windy Staff @Guest
        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
        • ? Offline
          A Former User
          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
          Windy Community  |  Powered by excellent NodeBB
          Terms of Use     Privacy Policy     Windy.com