Google maps api 3 谷歌地图V3:多边形顶点

Google maps api 3 谷歌地图V3:多边形顶点,google-maps-api-3,polygon,Google Maps Api 3,Polygon,有人知道如何获得使用新图形库构建的多边形顶点数组吗? 我尝试过使用newShape.getPath().getArray()[0].lat(),但这似乎是空的newShape.getPath().getArray()[0].lat(),我没有遇到任何问题。如果newShapepolygon对象不为null,并且顶点未从路径中移除,则它应该可以工作 您也可以尝试newShape.getPath().getAt(0.lat(),它也应该可以工作 您的代码中一定还有其他问题。您能发布完整的代码吗?我

有人知道如何获得使用新图形库构建的多边形顶点数组吗?


我尝试过使用
newShape.getPath().getArray()[0].lat()
,但这似乎是空的
newShape.getPath().getArray()[0].lat()
,我没有遇到任何问题。如果
newShape
polygon对象不为null,并且顶点未从路径中移除,则它应该可以工作

您也可以尝试
newShape.getPath().getAt(0.lat()
,它也应该可以工作


您的代码中一定还有其他问题。

您能发布完整的代码吗?我在保存多边形时也遇到同样的问题。