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

"Empty" water tiles overlap ground tiles while zooming #132

Closed AAverin closed 9 years ago

AAverin commented 9 years ago

zoom-issue I'll just put it here in case someone knows what's the problem and will post a solution if I find it. This is me zooming out over the same location. pic1 - coastline is ok pic2 - I zoomed out a little, and empty water tiles now overlap some of the costline pic3 - I zoomed out more - now it's a bunch of them pic4 - but if I zoom out even more - everything is back to normal.

We are using mapsforge '.map' files as a source.

AAverin commented 9 years ago

So the issue was that seems that our utility that generates the map marked some of the tiles as 'completely covered by water', probably by mistake. And as soon as OSM uses a separate style for 'water' tiles it applied the styling replacing the initial tile data. To overcome this while we search for the main reason, I implemented a custom OsmTileLayer with custom loader, overriden 'filterTags' method and filtered water styling away.