Merge pull request #1621 from twpayne/clean-ups
Miscellaneous clean-ups
This commit is contained in:
@@ -159,6 +159,7 @@ ol.geom.Circle.prototype.setCenterAndRadius =
|
||||
if (goog.isNull(this.flatCoordinates)) {
|
||||
this.flatCoordinates = [];
|
||||
}
|
||||
/** @type {Array.<number>} */
|
||||
var flatCoordinates = this.flatCoordinates;
|
||||
var offset = ol.geom.flat.deflateCoordinate(
|
||||
flatCoordinates, 0, center, this.stride);
|
||||
|
||||
@@ -82,8 +82,8 @@ ol.geom.simplify.douglasPeucker = function(flatCoordinates, offset, end,
|
||||
}
|
||||
return simplifiedOffset;
|
||||
}
|
||||
var MarkerArray = goog.global['Uint8Array'] ? Uint8Array : Array;
|
||||
var markers = new MarkerArray(n);
|
||||
/** @type {Array.<number>} */
|
||||
var markers = new Array(n);
|
||||
markers[0] = 1;
|
||||
markers[n - 1] = 1;
|
||||
/** @type {Array.<number>} */
|
||||
|
||||
Reference in New Issue
Block a user