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:
parent
160f280ee1
commit
3fc4702c9e
1 changed files with 1 additions and 1 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue