Passer la navigation

[Résolu] Map location slightly off

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Can Latitude/ Longitude be used dynamically for maps
Solution:
Is this data coming from a specific CPT, you can try these steps:

1. Use a known address at first, and save it for your post. For example, "Paris France".
2. Edit the post, and scroll down to the address field. Click Show Coordinates, and update these fields with your desired coordinates. You may have to delete the content before pasting your own in, it's a bit tricky but it should work. Click the map to refresh it and confirm your coordinates, then save.
3. Now your address field will display as the Lat and Lng coordinates, and the map marker will use these new coordinates.
4. If you need to use the written address in a View, you'll need to include that as a separate custom field, or as the title of the post, etc. If it's a separate custom field, then you can use conditional logic easily to determine when to show the address field, and when to show the lat/long override field.

If you still have issues after this procedure, please open a ticket so we can analyze it.

This support ticket is created Il y a 2 years, 2 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Fuseau horaire du supporter : America/Sao_Paulo (GMT-03:00)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Mateus Getulio Il y a 2 years, 2 months.

Assisté par: Mateus Getulio.

Auteur
Publications
#2689302

The map uses dynamic address field and address is quite generic as it is name of road without building number etc. That's why marker location on map is slightly off from the actual location. What is the solution? The address is a dynamic field. Can Latitude/ Longitude be used dynamically for maps?

#2689406

Mateus Getulio
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for contacting our support.

Is this data coming from a specific CPT, if so, can you please try those steps to see if it gets the issue fixed?

1. Use a known address at first, and save it for your post. For example, "Paris France".
2. Edit the post, and scroll down to the address field. Click Show Coordinates, and update these fields with your desired coordinates. You may have to delete the content before pasting your own in, it's a bit tricky but it should work. Click the map to refresh it and confirm your coordinates, then save.
3. Now your address field will display as the Lat and Lng coordinates, and the map marker will use these new coordinates.
4. If you need to use the written address in a View, you'll need to include that as a separate custom field, or as the title of the post, etc. If it's a separate custom field, then you can use conditional logic easily to determine when to show the address field, and when to show the lat/long override field.

Please let me know if I can be of further assistance with this.

#2689934

Thank you. As guided I tried to edit address field and realized that coordinates option is in fact available.