While attending the https://portland2013.drupal.org/session/should-have-made-left-turn-albuq... and hearing of Leaflet for the first time, I decided to use it on my next project. I did a demo of Drupal and Leaflet with the client yesterday and he loved it. The client then asked about providing a regional description for certain clusters. Either to replace, or in addition to the bounds being displayed, the client wants a popup to display with content describing the region when specific clusters are hovered over.
The Leaflet.MarkerCluster 0.1 page states "You can also use all of the FeatureGroup events (and additionally clusterclick) for both individual markers and clusters." On the referenced FeatureGroup events page, a mouseover event is listed. This makes me believe that what the client has asked for may be possible.
The thing that is unclear to me is how to go about implementing this. I don't want to hack or fork any modules or libraries. It's also not obvious to me how I might reference a given cluster to attach an action and its description data. Where to store this description data is another thing too. But with as few of these as there may be, storing it in a JSON file would likely be an option.
I did see the patch related to defining some points so that they aren't clustered and wondered if this might give me a way to solve my issue. Your statement of "It's up to other modules to pass the relevant flag to the marker features..." leaves me scratching my head. By other modules, are you speaking of Geofield or a custom module? Do you know of any examples I might use to help me?
Any guidance would be appreciated.
Thanks,
Cameron
Comments
Comment #1
rdeboer"The client then asked about providing a regional description for certain clusters."
See https://regionbound.com