Passer la navigation

[Résolu] Center Latitude and Longitude Does Not Save

This support ticket is created Il y a 2 years, 1 month. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 2 years, 1 month.

Assisté par: Minesh.

Auteur
Publications
#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.

lien caché

#2691493

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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:
- lien caché

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:
- lien caché

When I check on the frontend I see the London as map center:
- lien caché

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.
lien caché

#2692060

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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.
- lien caché

The issue is - when the page is reloaded in admin:
- lien caché

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:
- lien caché
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:
- lien caché

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/