伙计们,
我有这个代码https://gist.github.com/2473387
但是,我如何获得绘制的多边形的坐标?
我建议在DrawingManager上添加 'polygoncomplete' 侦听器并从多边形MVCArray获取坐标。
google.maps.event.addListener(drawingManager, 'polygoncomplete', function (polygon) {
var coordinates = (polygon.getPath().getArray());
console.log(coordinates);
});