objectivehtml / Google-Maps-for-Craft

The complete geolocation toolkit for Craft CMS.
Other
94 stars 19 forks source link

The marker in the entry form map updates on load instead of using previously saved data #39

Open echantigny opened 9 years ago

echantigny commented 9 years ago

Hi!

I feel like this is a bug, but it might be expected behavior.

I use the Address Fields settings in the Field Type, not in the plugin settings.

When I enter an address, the map puts the marker in the correct spot as expected. I then move the marker directly on the map, to fine-tune the location, and save. The data is saved correctly and the lat/lng info in the front-end template data reflects my fine tunning. If I then go back in the entry edit form, as soon as I open it, the marker moves back to the address associated spot, not the saved one.

I feel like it should use the map saved data first. If I then go and change the address, it can update the marker, but not before then.

Hope this makes sense. Thanks, Eric