有没有比手动绘制自定义多边形更简单的方法来在 Bing 地图中勾勒出各个状态的轮廓?

发布于 2024-12-13 14:55:33 字数 179 浏览 6 评论 0原文

我正在创建一个数据可视化,其中美国各州根据数据用不同的颜色着色。因此,使用 Bing 地图等工具的理想做法是让每个州都由自定义多边形表示,然后我可以将其着色为适当的颜色。 所以,我的问题是,除了尝试创建自定义多边形之外,是否有一种简单的方法可以选择一个状态并在该状态上创建自定义图层?
我觉得必须有一种更简单的方法来做到这一点。 谢谢!

I'm looking to create a data visualization where the states of the US are shaded different colors based on data. So, what would be ideal in using a tool like Bing Maps would be to have each state be represented by a custom polygon that I can then shade to the appropriate color.
So, my question is, is there an easy way to select a state and create a custom layer on that state besides trying to create a custom polygon?
I feel like there must be an easier way to do it.
Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何以心动 2024-12-20 14:55:33

遗憾的是,您无法在 Bing 地图 SDK 中找到此功能。因此,执行此操作的唯一方法有两种:

希望有帮助!

Unfortunately you won't find this natively in the Bing map SDK. So the only 2 ways to do this are:

Hope that helps!

梦归所梦 2024-12-20 14:55:33

现在有一种更简单的方法,即 Bing 地图 SDS(空间数据服务)。

Microsoft.Maps.SpatialDataService.GeoDataAPIManager.getBoundary()

https://learn.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/spatial-data-services-module-examples/geodata-api/load-single-boundary -地理数据示例

There is an easier way now, with Bing Maps SDS (Spatial Data Services).

Microsoft.Maps.SpatialDataService.GeoDataAPIManager.getBoundary()

https://learn.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/spatial-data-services-module-examples/geodata-api/load-single-boundary-geodata-example

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文