I think this is a problem introduced by a recent update. (exists on all 3.x versions that I've tried)
When the user tries to save a "node location" after having dragged the marker into the correct position, the "save" fails with the error message "Longitude cannot be longer than 20 characters but is currently 21 characters long.". The user editable "longitude" textbox does indeed have a significantly longer set of digits than the latitude. (see attached)
Steps to re-create:
1. Edit node with location_node enabled
2. Click map to position marker
3. Notice longitude is too longer
4. Attempt to save. Get error message.
Any suggestions appreciated.
Comment | File | Size | Author |
---|---|---|---|
#6 | gmap-long-lat-1989942-6.patch | 737 bytes | Pete B |
#3 | gmap-fix-1989942-3.patch | 734 bytes | simg |
Selection_052.png | 60.29 KB | simg |
Comments
Comment #1
TimeBandit CreditAttribution: TimeBandit commentedSame issue here, 7.x-3.0-rc1
Comment #2
dave_robinson CreditAttribution: dave_robinson commentedWe hit this problem and traced through with Firebug. The longer longitude is actually coming from calls to googles LatLng constructor in gmap_location's locpick.js.
We've patched temporarily by adding .toFixed(6) where it updates the field element in the locpick_longitude and lockpick_latitude handlers.
Comment #3
simg CreditAttribution: simg commented#2 fixed the issue for me, thanks (seems like this is a problem with the gmap module)
Comment #4
Pete B CreditAttribution: Pete B commentedMoving this to the GMap issue queue. The patch works, but is for GMap.
Comment #6
Pete B CreditAttribution: Pete B commentedPatch path depth was wrong. Reroll.
Comment #7
Pete B CreditAttribution: Pete B commentedUpdating status...