Navigation überspringen

[Gelöst] Center Latitude and Longitude Does Not Save

This support ticket is created vor 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 2 years, 1 month.

Assistiert von: Minesh.

Author
Artikel
#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.

versteckter Link

#2691493

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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:
- versteckter Link

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:
- versteckter Link

When I check on the frontend I see the London as map center:
- versteckter Link

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.
versteckter Link

#2692060

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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.
- versteckter Link

The issue is - when the page is reloaded in admin:
- versteckter Link

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:
- versteckter Link
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:
- versteckter Link

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/