Saltar navegación

[Resuelto] Center Latitude and Longitude Does Not Save

This support ticket is created 2 years, 1 month ago. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Minesh 2 years, 1 month ago.

Asistido por: Minesh.

Autor
Mensajes
#2691452

I am trying to:
Center the map using your Center Latitude and Longitude.
When I click save and load the front end, it does center, but when I reload the page in admin, the fields are blank and if I save that page, the map is no longer centered. So the fields do not save properly.

enlace oculto

#2691493

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not sure how exactly you configured your map but I run a test at this end and I find it workind.

Here is a sandbox site and you can auto-login to it using the following link:
- enlace oculto

I've created the following test page where I've added the map and view block and set the map center to London lat and lon coordinates and saved the page:
- enlace oculto

When I check on the frontend I see the London as map center:
- enlace oculto

Are you able to reproduce the same issue with the above sandbox site?

#2691619

Minesh, you demo site does the exact same thing as I reported. The setting do not save as I told you.
enlace oculto

#2692060

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Ok the issue is:
- When you add map center lat and lon it will save on first instance when you click on update button.

As you can see now - I again set map center to London and the map does show it.
- enlace oculto

The issue is - when the page is reloaded in admin:
- enlace oculto

The added map center lat and lon reset to 0 and when you update the page again the map center value is lost.

The issue has been escalated in front of our Devs. If you face too many issues with map block I suggest you should go ahead with map shortcode and create classic view.

Here is the view created in backend:
- enlace oculto
Where:
Map shortcoded added as (which you will have to add outside the view's loop):

[wpv-map-render map_id="map-7" fitbounds="off" general_center_lat="51.509865" general_center_lon="-0.118092" spiderfy="on"][/wpv-map-render]

Marker shortcode added to view's loop:

[wpv-map-marker map_id='map-7' marker_id='marker-[wpv-post-id]' marker_title='[wpv-post-title]' marker_field='wpcf-address'][wpv-post-title] == [wpv-post-link][/wpv-map-marker]

The above view is added on the following page:
- enlace oculto

More info:
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
- https://toolset.com/documentation/legacy-features/views-plugin/