openlayers2 笔记

复杂线获取质心错误,实际返回一个端点

feature.geometry.getCentroid()  中当geometry类型是http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Geometry/MultiLineString-js.html#OpenLayers.Geometry.MultiLineString 时返回的质心错误

LineString未做测试

转载自:https://blog.csdn.net/u010429656/article/details/52619352

You may also like...