In my use case I have a multivalued geofield that has the coordinates of the images in a multivalued image field.
When using this patch: https://www.drupal.org/node/2400683, for example the thumbnail images can can be used as different markers. However, when clicking the markers, instead of text I would like to display larger images in a popup.

Comments

balagan’s picture

StatusFileSize
new5.11 KB

The enclosed patch implements the features described above.

balagan’s picture

Assigned: balagan » Unassigned
balagan’s picture

Status: Active » Needs review
balagan’s picture

StatusFileSize
new4.1 KB

I have accidentally deleted some code before creating the patch. This should be good now.

balagan’s picture

Assigned: Unassigned » balagan
Status: Needs review » Needs work
balagan’s picture

StatusFileSize
new6.1 KB

One day I will get it right...

balagan’s picture

StatusFileSize
new6.39 KB

Edited hook_field_formatter_info()

balagan’s picture

Assigned: balagan » Unassigned
Status: Needs work » Needs review
balagan’s picture

StatusFileSize
new6.42 KB

Added initialization of $last_popup variable.

balagan’s picture

After applying this patch and the one for issue https://www.drupal.org/node/2400683 (the two patches merged) it would be possible to do display something like this:
Image fields as popup.
Currently I am asking the users (still only a few) of my module to patch the leaflet module. Is it possible to fix these issues?