Pass offset and end to ol.extent.extendFlatCoordinates

This commit is contained in:
Tom Payne
2014-01-23 14:14:21 +01:00
parent 60f104c895
commit 3c16e03ae2
2 changed files with 14 additions and 7 deletions

View File

@@ -90,7 +90,8 @@ ol.geom.SimpleGeometry.prototype.containsXY = goog.functions.FALSE;
ol.geom.SimpleGeometry.prototype.getExtent = function(opt_extent) {
if (this.extentRevision != this.getRevision()) {
this.extent = ol.extent.createOrUpdateFromFlatCoordinates(
this.flatCoordinates, this.stride, this.extent);
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
this.extent);
this.extentRevision = this.getRevision();
}
goog.asserts.assert(goog.isDef(this.extent));