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

Comments

setvik’s picture

I've only briefly tested so far, but the attached patch fixed the issue for me.

quazardous’s picture

thx setvik !
I m looking for co mainteners ... interested ?

marcopbazz’s picture

There's still a problem: when I add another element in field collection the map disappear :(

  • seanB committed 9b52d7e on 7.x-2.x authored by setvik
    Issue #2013272 by setvik: Support geofield with map widget inside field...
seanb’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Fixed

Thnx, the patch is committed to the 2.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.