mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-08 20:10:15 +00:00
Curves look a lot better keeping 1/4-pixel detail at any zoom
This commit is contained in:
parent
4de57b960d
commit
1bcbd0661c
2
tile.cc
2
tile.cc
@ -340,7 +340,7 @@ void douglas_peucker(struct draw *geom, int n, double e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int simplify_lines(struct draw *geom, int n, int z, int detail) {
|
int simplify_lines(struct draw *geom, int n, int z, int detail) {
|
||||||
int res = 1 << (32 - detail - z + 2);
|
int res = 1 << (32 - 10 - z); // 1/4 pixel
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user