Currently, the JS that assigns the lat/lon breaks if the geofield is in a field collection because the field ID is prefixed with the field collection field name for field_collections.
Example:
The form element ID for a geofield named "field_location_latlong" inside a field_collection named "field_global_locations" becomes:
edit-field-global-locations-und-0-field-location-latlong-und-0-lat
edit-field-global-locations-und-0-field-location-latlong-und-0-lon
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | geofield-gmap-field-collections-2013272-1.patch | 638 bytes | setvik |
Comments
Comment #1
setvik commentedI've only briefly tested so far, but the attached patch fixed the issue for me.
Comment #2
quazardous commentedthx setvik !
I m looking for co mainteners ... interested ?
Comment #3
marcopbazz commentedThere's still a problem: when I add another element in field collection the map disappear :(
Comment #5
seanbThnx, the patch is committed to the 2.x branch.