Bing 地图 - 悬停时突出显示带有多边形的国家/地区
我正在使用 silverlight Bing 地图控件,我想在用鼠标光标悬停它后突出显示国家/大陆。
除了提供多边形坐标之外,还有更好的方法吗?如果我想强调世界上所有国家,那就太麻烦了。
我认为应该有某种现成的解决方案,但我找不到。
I'm using silverlight Bing map control and I want to highlight country / continent after hovering it with mouse cursor.
Is there a better way of doing this than just providing coordinates for a polygon ? It's a looot of work if I would like to highlight all countries in the world.
I think there should be some sort of ready solution, but I wasn't able to find one.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,除了提供您自己的数据之外,没有其他方法可以突出显示国家/地区 - 要么以坐标的形式创建 Microsoft.Maps.Polygon,要么将您自己的栅格图块集覆盖在地图顶部,并突出显示相关国家/地区。
事实上,甚至没有一个全球商定的世界上有多少个国家的清单,更不用说边界在哪里了。请参阅 http://en.wikipedia.org/wiki/List_of_territorial_disputes 获取示例,
我认为如果 Bing地图API(或谷歌地图等)要提供一组代表每个国家边界的坐标,它们将不可避免地使自己面临不必要的政治偏见。
No, there is no way to highlight a country other than providing your own data - either in the form of coordinates to create a Microsoft.Maps.Polygon, or else overlay your own raster tileset on top of the map with the relevant country highlighted.
In fact, there is not even such such a thing as a globally-agreed list of how many countries there are in the world, let alone where there borders are. See http://en.wikipedia.org/wiki/List_of_territorial_disputes for examples
I think if the Bing Maps API (or Google Maps etc.) were to provide a set of coordinates representing the boundaries of each country, they would inevitably be exposing themselves to unnecessary political bias.
我昨天正在寻找一些解决方案,我认为这是迄今为止最好的解决方案:
http://www.bing.com/community/site_blogs/b/maps/archive/2010/07/13/data-connector-sql-server-2008-spatial-amp-bing-maps。 aspx
使用 SQL Server 空间数据:
http://www.microsoft.com/sqlserver/2008/en /us/spatial-data.aspx
I was searching for some solutions yesterday and I think this is the best solution so far:
http://www.bing.com/community/site_blogs/b/maps/archive/2010/07/13/data-connector-sql-server-2008-spatial-amp-bing-maps.aspx
Using SQL Server spatial data :
http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx