nextzen / d3-vector-tiles

Adapting d3.geo.tile to show Mapzen vector tiles
http://nextzen.github.io/d3-vector-tiles
MIT License
52 stars 21 forks source link

Turn off adaptive resampling to fix the discontinuities in the zoomed… #11

Closed pkerpedjiev closed 9 years ago

pkerpedjiev commented 9 years ago

… out vector tiles. The discontinuity arises because the lower border of the upper tile gets adaptively resampled and follows a great arc, whereas the upper border of the lower tile does not. Turning off adaptive resampling means that a straight line is drawn for the border of each and they fit together, in the mercator projection. This might lead to artifacts near the polar regions or in other projections, but seems to work fine for most of the world using the mercator projection.

tile_outlines tile_artifacts
hkrishna commented 9 years ago

:+1: