opensciencemap / vtm

a vector-tile map library written in java - running on android, desktop and within the browser
GNU Lesser General Public License v3.0
238 stars 176 forks source link

Bitmap Tile rendering issue on xxxhdpi (Samsung Galaxy S6) #147

Closed stleusc closed 9 years ago

stleusc commented 9 years ago

I assume it has to do with the super high resolution of my Galaxy S6 (maybe rounding errors?!). When rendering bitmap tiles (like Bing/Google/etc maps) ultra fine lines appear and disappear between the tiles when panning the map. I slight pan in any direction will make some lines go away, some new ones show. Panning back will bring back the previous pattern. The lines seem to be gaps between tiles (at least that is where they show) since they also have the color of by 'background grid' that I paint behind the tiles.

It is very annoying since panning the map now creates a flickering effect.

Attached a few pictures where I panned the map a couple of pixels.

Any help would be highly appreciated since it affects one of my production apps that uses vtm.

Thanks! 14295559128530 14295559128581

stleusc commented 9 years ago

Update: the same lines show when rendering tiles from a Mapsforge Map source. Not sure if that helps in nailing it down....

stleusc commented 9 years ago

FYI: I changed the color of my TileGridLayer in the background and that changes the line color that I see.

stleusc commented 9 years ago

Closing this issue, fixed.