Merge pull request #4809 from fperucic/multpolygon-clone

Fix multipolygon clone.
This commit is contained in:
Tim Schaub authored and Andreas Hocevar committed 2016-03-04 09:24:23 +01:00
1 parent b4c4a81afb
commit e8cd5e322f
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ ol.geom.MultiPolygon.prototype.clone = function() {
var len = this.endss_.length;
var newEndss = new Array(len);
for (var i = 0; i < len; ++i) {
newEndss[i] = this.endss_.slice();
newEndss[i] = this.endss_[i].slice();
}
multiPolygon.setFlatCoordinates(