(bing) maps: +5000 pinpoints

為{幸葍}努か 提交于 2019-12-10 23:16:26

问题


I am building a map application with the silverlight bing maps control.

In the map control I want to show all of the subscribed customers. The amount of customers is somewhere between 5000 and 7000, this means I can't show them all at once. This would result in a crash I guess.

How would you solve this issue? I've read about events on zoomlevels etc. about tile layers about spatial sql but I have no idea what the right solution is in this situation and where to begin.

This seems like a pretty basic problem when working with maps but there is little to no information on how to handle lots of data when working with bing maps.

Can anyone explain or point me to a good tutorial?


回答1:


You can use a space-filling-curve or a spatial-index to get those points nested with the zoom-level of your map application to achieve a cluster effect http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-indexing-with-Quadtrees-and-Hilbert-Curves. There are many implementation of sfc and hilbert-curves. I've uploaded my own at phpclasses.org (hilbert-curve, bsd licence) and with a quadkey function for a cluster function. I've succesful implemented it for some customers. The idea is to search for a quadkey from left to right to get only a portion of pois. www.maptiler.org uses a quadkey with a z-curve. Probably you are getting better answers at gis.stackexchange. A sfc has usually a constraint of power of 2.



来源:https://stackoverflow.com/questions/6945144/bing-maps-5000-pinpoints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!