Improve type checking in ol.geom.Circle#setCenterAndRadius
This commit is contained in:
@@ -159,6 +159,7 @@ ol.geom.Circle.prototype.setCenterAndRadius =
|
|||||||
if (goog.isNull(this.flatCoordinates)) {
|
if (goog.isNull(this.flatCoordinates)) {
|
||||||
this.flatCoordinates = [];
|
this.flatCoordinates = [];
|
||||||
}
|
}
|
||||||
|
/** @type {Array.<number>} */
|
||||||
var flatCoordinates = this.flatCoordinates;
|
var flatCoordinates = this.flatCoordinates;
|
||||||
var offset = ol.geom.flat.deflateCoordinate(
|
var offset = ol.geom.flat.deflateCoordinate(
|
||||||
flatCoordinates, 0, center, this.stride);
|
flatCoordinates, 0, center, this.stride);
|
||||||
|
|||||||
Reference in New Issue
Block a user