Remove ol.replay.canvas.LineStringBatch#drawCoordinates_
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user