Improve type checking in ol.geom.simplify

This commit is contained in:
Tom Payne
2013-12-13 15:58:29 +01:00
parent 2a47bf0775
commit 58b4d73f3b

View File

@@ -86,6 +86,7 @@ ol.geom.simplify.douglasPeucker = function(flatCoordinates, offset, end,
var markers = new MarkerArray(n);
markers[0] = 1;
markers[n - 1] = 1;
/** @type {Array.<number>} */
var stack = [offset, end - stride];
var index = 0;
var i;