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.
我一直在寻找如何确定 OpenLayers 中包含多边形(特征)的点的坐标。
假设我创建了一个类似于本例中的多边形。我需要知道组成多边形的点,所以我可以将它们保存在某个地方。
我敢打赌,这很容易。我只是找不到任何东西,可能我不知道我应该搜索什么。
提前致谢。
终于找到了!
vectors.features[0].geometry.getVertices()