Skip Navigation

[Resolved] Center Latitude and Longitude Does Not Save

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 8 months, 3 weeks ago.

Assisted by: Minesh.

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

hidden link

#2691493

Minesh
Supporter

Languages: English (English )

Timezone: 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:
- hidden 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:
- hidden link

When I check on the frontend I see the London as map center:
- hidden 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.
hidden link

#2692060

Minesh
Supporter

Languages: English (English )

Timezone: 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.
- hidden link

The issue is - when the page is reloaded in admin:
- hidden 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:
- hidden 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:
- hidden 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/