newism / craft3-fields

Address, telephone, email, embed and gender fields for CraftCMS 3.x
Other
54 stars 16 forks source link

address field : latitude & longitude not being saved #35

Closed nicolasbinet closed 5 years ago

nicolasbinet commented 6 years ago

After searching an address and saving it in an entry, longitude and latitude are not saved, even though they are present in the placeData, and mapUrl is correctly saved. Is there anything special ?

leevigraham commented 6 years ago

Can you let me know the address you were trying and the version of Craft?

nicolasbinet commented 6 years ago

The problem occurs for multiple addresses, which are all reported on this page : https://www.dolphin-charger.com/network

We're using Craft 3.0.28 & NSM Fields 0.0.11.

leevigraham commented 6 years ago

Okie dokie… that's a lot of addresses. I should be able to check it out tonight.

leevigraham commented 6 years ago

@nicolasbinet Do you have "Show Latitude / Longitude" enabled in the field settings?

2018-11-01 15 49 48

2018-11-01 15 48 57

nicolasbinet commented 6 years ago

Ticking the "Show Latitude / Longitude" option works. I didn't do it at first because I didn't want to confuse our client, and keep everything under "control". Then I forgot about it.

But "showing" is not "saving". In my case I would have loved the info being saved. Is there any reason why it's not ?

thanks for your help.

leevigraham commented 6 years ago

no field means it's not part of the submission… pretty easy change tho… I can change the field type to hidden.

nicolasbinet commented 6 years ago

for me, that would be a great idea. being able to evolve a field, without re-saving all addresses.

leevigraham commented 5 years ago

@nicolasbinet Can you check https://github.com/newism/craft3-fields/releases/tag/0.0.13 I'm now hiding lat / lng and mapUrl with CSS so they will always be populated with the google data.