Epsilon for line simplification was using incorrect value - now much nicer

Fixed a bug related to the distance used for line reduction. The previous value of zoom was being used, instead
of the new value. This kind of explains why I could see line reduction changes more than I though I should have
been able to. Now it's looking very nice. I don't think there will be many more changes. If any.
This commit is contained in:
Andrew Davie 2016-04-01 04:22:31 +11:00
parent 160f280ee1
commit 3fc4702c9e

View file

@ -117,7 +117,7 @@ public class Renderable {
if (culler != null) {
culler.cancel(true);
}
double cullDistance = Math.pow(2.0, base - zoom);
double cullDistance = Math.pow(2.0, base - newZoom);
culler = new AsynchronousResampler.RamerDouglasPeucer(this, cullDistance);
if (zoom < newZoom) { // if line would look worse (we're zooming in) then...