Improve type checking in ol.geom.Circle#setCenterAndRadius

This commit is contained in:
Tom Payne
2014-01-29 20:38:18 +01:00
parent 0a537d5e86
commit a52dbbb09e

View File

@@ -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);