简体   繁体   中英

bing map freezes browser by adding 8000 pushpins

Bing map in my site freezes browser due to loading of 8000 properties(pushpins) even though I used clustering concept. Please give me a solution for this scenario.(I've used pure javascript in coding.)

This is to be expected. There simply is too much data. The map control on it's own can handle about 1000 pushpins before there are too many DOM elements on the page and the browser slows down. Client side clustering good to about 5,000 (sometimes more depending on browser and your computer).

You have two options, move to server side clustering which will calculate the clusters on the fly and constantly send down the cluster groups for the current map view, or When you rasterize your data (turn your data into an image).

I have a white paper on how to do this here .

You can find the code samples here

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