为 Bing 地图创建热图银光应用程序
尽可能多地寻找资源。我有一个漂亮、简单的基于 Silverlight 的 Bing 地图应用程序,可以将图钉放入地图中。现在我有很多图钉,我想即时创建热图。我正在尝试寻找解释如何进行此操作的资源,但找不到任何内容。
那么,有什么想法吗?
Looking for resources as much as anything. I have a nice, simple Silverlight-based Bing Maps application that puts pins into the map. Now I have a lot of pins, I'd like to instead create heat maps on-the-fly. I'm trying to look for resources that explain how to go about this, but can't find anything.
So, any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可能没有太多事可做。
生成热图的一种快速方法是将图钉重新设计为一个填充有透明度渐变背景的圆圈,边缘完全透明,另一边中等透明度。随着圆圈的堆积,颜色会更加浓郁。
编辑
http://www.microsoft .com/maps/isdk/silverlight/#MapControlInteractiveSdk.Tutorials.TutorialCustomPushpin
并将
替换为You probably won't have much to do.
A quick way to generate the heat map would be to reskin the pushpin as a circle filled with a background with a transparency gradient, fully transparent on the edge and medium transparency at the other. As the circles stacks up, the color will be more intense.
EDIT
http://www.microsoft.com/maps/isdk/silverlight/#MapControlInteractiveSdk.Tutorials.TutorialCustomPushpin
And replacing the
<m:Pushpin ... />
by这是一个好主意,对于单色热图非常有用。正如约翰所说,颜色强度随着圆圈重叠而增加。我从代码中添加我的。这是我使用的代码...
...我对如何将其扩展到从“冷”颜色到“热”颜色的多色热图非常感兴趣。目前我不知道该怎么做。本文(http://mapsys .info/44010/heat-mapping-crime-data-with-bing-maps-and-html5-canvas/)有一个在 HTML5 兼容浏览器中使用 javascript 的想法。我不知道如何将其转换为 Silverlight。
This is a good idea and it works great for a monochrome heat map. As Johan said the color intensity adds as the circles overlap. I'm adding mine from code. Here is the code I used...
...I'm very interested in how to extend this to a multi-color heat map that goes from 'cool' colors to 'hot' colors. At the moment I do not see how to do that. This article (http://mapsys.info/44010/heat-mapping-crime-data-with-bing-maps-and-html5-canvas/) has an idea for javascript in an HTML5 compliant browser. I don't know how to translate that to Silverlight.