Pass tolerance to ReplayGroup

The tolerance instead of the squared tolerance must be passed to the ReplayGroup constructor.
This commit is contained in:
Éric Lemoine
2014-07-10 09:52:13 +02:00
parent f1bdaed15a
commit 49b91998f9

View File

@@ -103,7 +103,7 @@ ol.source.ImageVector.prototype.canvasFunctionInternal_ =
function(extent, resolution, pixelRatio, size, projection) {
var replayGroup = new ol.render.canvas.ReplayGroup(
ol.renderer.vector.getSquaredTolerance(resolution, pixelRatio), extent,
ol.renderer.vector.getTolerance(resolution, pixelRatio), extent,
resolution);
var loading = false;