Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have successfully implemented this module with Leaflet and Leaflet Markercluster - works great! However, I can not figure out how to popup a balloon based on a hover event instead of click (or is this question better served in the Leaflet queue?). A little guidance in the right direction would be very appreciated. Thanks.
Comments
Comment #1
RdeBoerHi narkoff,
Glad the trinity of IPGV&M and Leaflet and Leaflet Markercluster works for you.
I am not sure about the existence of a "marker balloon popup on hover" feature. Does it even exist in the underlying Leaflet Javascript?
Yes you could ask in the Leaflet module issue queue as well.
Rik
Comment #2
narkoff CreditAttribution: narkoff commentedThanks for the quick response. I had a feeling this was a Leaflet question. I searched for an onClick event but could not find one. For cross-reference: Leaflet issue.
Thanks again.
Comment #3
RdeBoerI guess the underlying question is: is something available here http://leafletjs.com/reference.html that can be brought to the surface in the Drupal module?
Comment #4
narkoff CreditAttribution: narkoff commentedThanks for the reference. It looks like there is a mouse event for markers. I'll circle back with what I figure out.
Comment #5
RdeBoerSee https://www.drupal.org/node/2427455#comment-9793009 ?
Comment #6
narkoff CreditAttribution: narkoff commentedTriggering the pop-up based on hovering over associated content, and highlighting the content based on hovering over the associated marker is exactly what I was trying to accomplish. Unfortunately, with my limited development skills, I was never able to get it to work. The enhancement referenced above directly addresses this. Thank you!
Comment #7
RdeBoer@narkoff, #6
Much appreciated. You're welcome.
It is something I've been wanting to do myself for a long time.