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
wrong min and max zoom levels in BitmapTileSource #120
Closed
stleusc closed 9 years ago
Quick summary:
UrlTileSource:
It uses zoomMin and zoomMax from abstract builder defined in UrlTileSource.
BitmapTileSource has implementation of abstract builder with following Constructor:
This sets the default zoomMin = 0 and zoomMax = 17.
Constructor of BitmapTileSource is like this:
however .zoomMin() and .zoomMax() are defined in the base class here:
saving the max and min zoom in variables maxZoom and minZoom!
So even though it seems like they get set correctly, in fact they are not! They are stored in the wrong variables...
minZoom, maxZoom, fadeSteps are effectifly hidden and not used anywhere.
This also means that setting max/min zoom or fadeSteps in DefaultSources like
does not have any impact!