Improve type checking in ol.geom.flat
This commit is contained in:
@@ -488,6 +488,7 @@ ol.geom.flat.linearRingsContainsXY =
|
|||||||
ol.geom.flat.linearRingsGetInteriorPoint =
|
ol.geom.flat.linearRingsGetInteriorPoint =
|
||||||
function(flatCoordinates, offset, ends, stride, y, opt_point) {
|
function(flatCoordinates, offset, ends, stride, y, opt_point) {
|
||||||
var i, ii, x, x1, x2, y1, y2;
|
var i, ii, x, x1, x2, y1, y2;
|
||||||
|
/** @type {Array.<number>} */
|
||||||
var intersections = [];
|
var intersections = [];
|
||||||
// Calculate intersections with the horizontal line
|
// Calculate intersections with the horizontal line
|
||||||
var end = ends[0];
|
var end = ends[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user