We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19993ca commit 2f10c4eCopy full SHA for 2f10c4e
DrawHelper.js
@@ -935,10 +935,7 @@ var DrawHelper = (function() {
935
if(typeof options.callback == 'function') {
936
// remove overlapping ones
937
var index = positions.length - 1;
938
- // TODO - calculate some epsilon based on the zoom level
939
- var epsilon = Cesium.Math.EPSILON3;
940
- for(; index > 0 && positions[index].equalsEpsilon(positions[index - 1], epsilon); index--) {}
941
- options.callback(positions.splice(0, index + 1));
+ options.callback(positions);
942
}
943
944
0 commit comments