Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道在使用 Azure Maps 时如何制作多边形吗?
我找不到任何有关如何设置它们的文档,但是,Microsoft 博客提到 Azure Maps 支持多边形
一旦我发布了我的问题,我就找到了答案
/* Create a rectangle */ var rectangle = new atlas.data.Feature( new atlas.data.Polygon([[ [-73.98235, 40.76799], [-73.95785, 40.80044], [-73.94928, 40.7968], [-73.97317, 40.76437] ]]), { color: "rgba(0,0,0,.5)", outlineColor: "black", } );
https://codepen.io/azuremaps/pen/yKbOvZ