Render line strings using flat coordinates
This commit is contained in:
@@ -279,7 +279,11 @@ ol.replay.canvas.LineStringBatch.prototype.drawFlatCoordinates_ =
|
|||||||
ol.replay.canvas.LineStringBatch.prototype.drawLineStringGeometry =
|
ol.replay.canvas.LineStringBatch.prototype.drawLineStringGeometry =
|
||||||
function(lineStringGeometry) {
|
function(lineStringGeometry) {
|
||||||
goog.asserts.assert(!goog.isNull(this.state_));
|
goog.asserts.assert(!goog.isNull(this.state_));
|
||||||
this.drawCoordinates_(lineStringGeometry.getCoordinates());
|
ol.extent.extend(this.extent_, lineStringGeometry.getExtent());
|
||||||
|
var flatCoordinates = lineStringGeometry.getFlatCoordinates();
|
||||||
|
var stride = lineStringGeometry.getStride();
|
||||||
|
this.drawFlatCoordinates_(
|
||||||
|
flatCoordinates, 0, flatCoordinates.length, stride);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user