Just upgraded to 7.x.2.8 and I noticed that all my content type with Location fields have a default lat/long inserted. Tried editing the content type and removing the default values but it stays even after saving. Had to revert to 7.x.2.7 in the mean time.

Comments

andyanderso’s picture

I have the same issue - any progress?

andyanderso’s picture

This is a problem on lines 70-71 of the lockpic.js file.
This replacement worked for me:
Replace this:

 if (!obj.locpick_point) {
             obj.locpick_coord = new google.maps.LatLng(obj.vars.latitude, obj.vars.longitude);

with this:

 if (!obj.locpick_invalid) {

This just reverts that section of code to the gmap 2.7 version. Do we lose any meaningful functionality by doing this?

podarok’s picture

Issue summary: View changes
Status: Active » Patch (to be ported)
maenjuel’s picture

Had the same problem, andyanderso's solution worked for me, thanks!

klaasvw’s picture

Version: 7.x-2.8 » 7.x-2.x-dev
Status: Patch (to be ported) » Needs review
StatusFileSize
new550 bytes

This patch applies the fix from #2.

The patch undoes one line from https://drupal.org/node/2068095. It doesn't undo the fix though, users can still select a location, there just won't be a default location set when it wasn't intended.

leahmd’s picture

Thank you for this, it was driving me bonkers. #5 works for me.

podarok’s picture

Status: Needs review » Fixed

#5 commited
Thanks!

bradspry’s picture

Thank you for this!

Status: Fixed » Closed (fixed)

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