admin管理员组文章数量:1344584
I have millions of points I want to draw on google maps ing from an array.
I was looking at circles example
However, the problem is circles are... circles. Is there some way to draw circles such that it is like a canvas so it doesnt really matter how many points I draw on it?
I have millions of points I want to draw on google maps ing from an array.
I was looking at circles example
However, the problem is circles are... circles. Is there some way to draw circles such that it is like a canvas so it doesnt really matter how many points I draw on it?
Share Improve this question edited Jun 12, 2018 at 5:55 xomena 32.2k6 gold badges96 silver badges125 bronze badges asked Sep 2, 2016 at 20:00 RolandoRolando 62.8k104 gold badges281 silver badges422 bronze badges 4- 3 Have you seen the article Too Many Markers! in the Google Documentation? – geocodezip Commented Sep 3, 2016 at 11:52
- Grid-based Clustering looks great, but the docs dont show any examples of how to implement this. I was originally thinking some sort of canvas so that its just coloring pixels. I don't care about being able to interact with mouse. – Rolando Commented Sep 4, 2016 at 0:44
- By interact, I mean with interact with the point drawn. – Rolando Commented Sep 5, 2016 at 21:52
- 1 You need to make the question more specific to get a good answer. If you are looking for a heatmap the Google Maps API JS has one: developers.google./maps/documentation/javascript/examples/… , if you like the marker clusterer, but simply do not want the icons the solution is simple, just use github./googlemaps/v3-utility-library/tree/master/… and update the calculate function:stackoverflow./questions/12783250/… – kaskader Commented Sep 9, 2016 at 9:17
2 Answers
Reset to default 6There are ready solutions for marker clustering like Markerclusterer or Markerclustererplus.
You can find these libraries on github:
https://github./googlemaps/v3-utility-library/tree/master/markerclusterer
https://github./googlemaps/v3-utility-library/tree/master/markerclustererplus
Sample pages and documentation are inside these repositories. Could it work for you?
I believe the answer is don't. That's too many markers. Per the table below (grabbed from geek.) you would have a screen with nothing but markers and no map, even if each marker were only 1 pixel each, which they aren't.
本文标签: javascriptHow to draw millions of points on google mapsStack Overflow
版权声明:本文标题:javascript - How to draw millions of points on google maps? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743752860a2532970.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论