简体   繁体   中英

Google maps API crash after too many markers

I'm creating a website where I display a dynamic map with a lot of markers. The map works fine when I am using 1100 markers, but it stops working as soon as I add more than that.

The markers are shown and posted in clusters.

It does not return any errors, the map just doesn't display.

I have already tried finding a solution on here but without result.

Any help would be appreciated.

The API has a rate limit, try slowing down the call with Javascript by setting a timeout like in the example below:

wait = true;
setTimeout("wait = true", 5000);

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM