Skip Navigation

[Resolved] Slow map view

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a map View with lots (3000+) of markers to display. The performance of the map is slow and the page takes over 15 seconds to load.

Solution: Update to Maps 1.8.1 so your addresses can be migrated into the new database tables. This will speed up distance queries significantly. Also consider adding pagination to this View and turn on clustering.

Relevant Documentation:
https://toolset.com/2019/06/toolset-forms-2-4-and-maps-1-8-release/
https://toolset.com/documentation/user-guides/display-on-google-maps

This support ticket is created 5 years, 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 2 voices.

Last updated by lefterisT 5 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#1280275

hello i have a view with a map that loading more than 3000 posts - pins with paging and filters it loading very very slow it takes more than 15 seconds to load the page.
i have follow your instruction for map view with filtering.
i want to mention that if view has few posts load time is OK.
is there something that i can follow to make load time acceptable?
also i f i try to load the map without paging ( all 3000 posts ) page does not load at all

thanks in advance four your help

#1280365

Hi, we just released Maps 1.8.1, which includes significant updates to the way map points are filtered and displayed. Please make sure you have the latest version installed. The new system uses database tables specifically for these data points, which should help speed up distance queries significantly. If you have more than 100 markers to display on a map, it's a good idea to use clustering: https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#grouping-close-markers-into-clusters

If you're still having very slow response times, we can install Query Monitor and check the speed of the query.

#1280403

Thanks for your quick reply, I will try your suggestions and let you know for the results

#1280425

Okay thanks, I will stand by for your update.

#1280637

Hello again Christian i installed the new version of Maps also enabled clustering and i think it has some speed improvement but not major improvement :). also i want to ask you is there a way to show more than 50 posts per page to map view?

#1281079

Yes, you can use custom code to increase the maximum number of posts per page greater than 50. Example with pagination:
https://toolset.com/forums/topic/make-more-than-50-posts-show-on-paginated-view/

Example without pagination:
https://toolset.com/forums/topic/displaying-more-than-50-posts-in-a-view/

If pagination does not provide the performance improvement you want, I can log in and take a look at the View settings. Please provide login credentials here in the private reply fields.

#1281511

My issue is resolved now. Thank you!