Skip Navigation

[Resolved] Toolset View – Maps – Load Map through ajax

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 4 replies, has 3 voices.

Last updated by Minesh 4 weeks, 1 day ago.

Assisted by: Minesh.

Author
Posts
#2772530

Tell us what you are trying to do?
I have more than 4000 users (and this will increase). I use toolset maps to plot the addresses of these users in one map. Since the page is heavy because of more than 4k addresses, it crashes all the time . Can I load the map and the markers (with users' data) through ajax to avoid crashing? If not, can you suggest other solution? Thank you!

Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/

Is there a similar example that we can see?
I found the same issue: https://toolset.com/forums/topic/map-with-ajax-load-the-informations-in-the-pin/

What is the link to your site?

#2773919

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Loading 4k posts on one page is too much, even if you exclude Toolset and try to load 4k posts on single page even that simple page will also crash.

The only solution to this is you should add pagination to your view so rather displaying all 4k users at a time you can maybe set the pagination to display 100 users at a time.

Does that makes sense?

#2777341

Hi Minesh!

Thank you for the reply! We’re hoping to plot all the assessors' locations on one map so visitors can easily see which assessors are closest to them. If only 100 locations are shown per page, users might not see the closest assessors right away, as some of the nearest ones may be on subsequent pages. This would require them to click through multiple pages, which could be frustrating and inefficient. Additionally, we want to display the total number of assessors plotted on the map so visitors can understand the vastness of the available assessors.

By the way, did you get a chance to check this link I sent https://toolset.com/forums/topic/map-with-ajax-load-the-informations-in-the-pin/? What was your solution for this?

Thanks in advance for your help!

#2777377

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

This is a quick follow up to let you know Minesh is not available today but he'll be back shortly and reply to you as soon as possible.

Thank you for your understanding.
Mateus

#2777608

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

There is no actual solution to this as you can see the supporter is suggested to contact the certified contractors for such custom requirement:
- https://toolset.com/forums/topic/map-with-ajax-load-the-informations-in-the-pin/#post-612134