Remove ol.replay.canvas.LineStringBatch#drawCoordinates_

This commit is contained in:
Tom Payne
2013-11-09 18:38:50 +01:00
parent 07173c493e
commit 0f8d123319

View File

@@ -227,27 +227,6 @@ ol.replay.canvas.LineStringBatch = function() {
goog.inherits(ol.replay.canvas.LineStringBatch, ol.replay.canvas.Batch); goog.inherits(ol.replay.canvas.LineStringBatch, ol.replay.canvas.Batch);
/**
* @param {Array.<ol.Coordinate>} coordinates Coordinates.
* @private
*/
ol.replay.canvas.LineStringBatch.prototype.drawCoordinates_ =
function(coordinates) {
var state = this.state_;
if (!ol.style.stroke.equals(state.currentStrokeStyle, state.strokeStyle)) {
if (state.lastDraw != this.coordinates.length) {
this.instructions.push([ol.replay.canvas.Instruction.STROKE]);
}
this.instructions.push(
[ol.replay.canvas.Instruction.SET_STROKE_STYLE, state.strokeStyle],
[ol.replay.canvas.Instruction.BEGIN_PATH]);
state.currentStrokeStyle = state.strokeStyle;
}
var end = this.appendCoordinates(coordinates, false);
this.instructions.push([ol.replay.canvas.Instruction.MOVE_TO_LINE_TO, end]);
};
/** /**
* @param {Array.<number>} flatCoordinates Flat coordinates. * @param {Array.<number>} flatCoordinates Flat coordinates.
* @param {number} offset Offset. * @param {number} offset Offset.