Hi,
Thanks for this simple module! I have created a content type which uses the geofield and the geofield Gmap. This content type has also several other fields. When i am going to create a new node i am starting with the placement of the marker to a position, let say _myposition. Then i am going to fill in the other fields of the node (such as the title). When i did this the marker automatically changes its position. Specifically, the new position of the marker is the integer values of lat and lon. (for example if _myposition is 37.44545335433, 45.5454525235, after the editing of the title the marker goes to the position 37,45). I have transformed the lat and lon tables into DOUBLE but nothing happens. Can you help me?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fixing_global_onchange_map_jumping-1815626-2.patch | 1.04 KB | i_g_wright |
Comments
Comment #1
adam_b commentedI'm getting this also - any time I select/deselect another field in the node-edit form, the map resets. It doesn't necessarily change the geocode data, but it's very confusing for users. Any suggestions please?
Comment #2
i_g_wright commentedHi,
Please find attached a patch which should stop the map from jumping when editing any other fields on the node-edit screen. The reason the map is jumping when deselecting fields is due to the JS using onchange - onchange is a global event triggered when a input value has changed (checkboxes, radio buttons, text...) causing the map to lose it's coordinates.
Thank you,
Comment #3
sawtell commentedI have applied the patch and it has solved the issue of the map location changing after editing other, unrelated fields.
Comment #4
quazardous commenteddev is patched
thx folks
Comment #5
2phaclosing issue
Comment #6
2pha