Skip Navigation

[Resolved] Dynamic Table Based On The Map

This support ticket is created 4 years, 11 months 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 7 replies, has 2 voices.

Last updated by andrewD-10 4 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1433143

Tell us what you are trying to do?

I would like to display a map that I can zoom in and out and have the table below change to show the points that are being shown in the map window. Very similar to picking hotels on google maps. The hotels on the side of the screen will change based on the map window. Currently, the map seems to only display what is on the table and if you have pagination installed then it will only show 50 posts on the table and the map. But I would like to reverse that. I want the map to show every project and the table display the number of posts in the map window. This would also need to be able to filter as normal and "show on map" button enabled.

If this cannot be done, another suggestion would be, how can I show all my projects on a map and display a table below with pagination with 50 per page. But also be able to filter both map and table and also have the "show on map" button to work in the row of the table. Very similar to the current way, except the map will just show every point and the table will change based on pagination.

Please let me know either option.

Thank you,
Andrew

#1433145

Another comment with regards to the 2nd option. It is almost like the map would need to be out of the "loop" and the table be in the "loop" while keeping the option to "show on map" for each row on the map.

#1434291

Hi Andrew,

Thank you for contacting us and I'd be happy to assist.

In my tests, the map automatically updates markers based on the shown/available results, when they update through pagination or search filters.

Can you please share temporary admin login details along with the link to a page, where this view can be seen? I'll be in a better position to guide you accordingly.

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1436621

Hi Waqar,

Here is also a video to help understand what I am looking to do
Link: hidden link

Thank you,
Andrew

#1437805

Hi Andrew,

Thank you for sharing the admin access and the screencast.

1. The "search on map" feature that you're referring to, where results update, based on visitor's interaction with the map, is not something that is currently supported. You're welcome to submit this as a feature request:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Toolset does offer a distance filter, where a visitor can select the reference location for search and also adjust the area of radius:
https://toolset.com/documentation/user-guides/maps/display-on-google-maps/filtering-and-ordering-map-markers-by-distance/

2. It is possible to show all results on a map, while the results below are shown with pagination, but for this, you'll need another view.

a). You can create a duplicate of your actual view with the pagination, but in the newly created duplicate view, remove everything from the loop other than the map marker shortcode ("wpv-map-marker").

Also, in the pagination settings, select "No pagination".

b). In the actual view, replace the map's shortcode with the shortcode of this newly created view.

As a result, when the page will load, all results will be shown on the map, while the table will still show limited results with the pagination.

When the results will change on the page through search filters or if "show on map" link is clicked, the map will update accordingly too.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1447397

Hi Waqar,

For option 2, would I be able to also have the show on map button in the table and have it show me the point on the map in the separate map view when clicked?

Thank you
Andrew

#1448515

Hi Andrew,

Yes, that is correct and even though the map and all markers shown on it will be coming from a different view, the "show on map" link/button from the actual view will still work.
(because it will be using the same marker IDs)

Please let me know how it goes and if you need any further assistance around this.

regards,
Waqar

#1449127

Thank you toolset for all of your support! This was a great help