如何基于图钉在 BingMap 上绘制多边形?

How to draw a polygon on BingMap based on pushpins?

我在 BingMap v8 上有很多图钉。我想在这些引脚周围画一个多边形。

我看到很多关于如何手动绘制多边形的示例,但对使用图钉作为指南一无所知。

我正在寻找类似下面的内容。 BingMaps v8 中是否存在此功能?

有两种方法可以做到这一点。最常见的是使用 Convex Hull which generates a polygon that is similar to stretching an elastic around the pushpins. The second option is a Concave Hull which tries to create a tighter fitting polygon around the data set. The Bing Maps V8 web control has built in calculations for both of these in the spatial math module. Here is a code sample that shows how to do both of these: http://bingmapsv8samples.azurewebsites.net/#Concave%20and%20Convex%20Hulls

这是空间数学模块的文档:https://msdn.microsoft.com/en-us/library/mt712834.aspx