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

Raster tile zoom limit #145

Open bmarchionni opened 9 years ago

bmarchionni commented 9 years ago

Hi everyone,

Is it possible to display a BitmapTileLayer with a limited number at more levels? I have a raster image that I've converted into tiles with a max zoom of 13. I need the layer to continue to be displayed a closer zoom levels. I know it will be pixelated and look bad but it would be better for my users to see pixelated imagery then nothing. Presently once you zoom past approximately zoom 15 it just disappears.

Thanks,

Brian

hjanetzek commented 9 years ago

Could you give an example how you defined your layer? - Did you specify .zoomMax(13) for the BitmapTileSource.Builder?

bmarchionni commented 9 years ago

I'm using the MBTileSource, heres my code:

bitmapDepthTileSource = new MBTileSource(); bitmapDepthTileSource.setFile(new File(Environment.getExternalStorageDirectory(), "Lakes/Gulf25Depth.mbtiles").getPath()); bitmapDepthTileSource.open();

hjanetzek commented 9 years ago

Oh mbtiles? I guess you have to add setZoomMin/Max or pass the values through to the constructor of TileSource