Lock zoom level #1028
-
Locus Maps has a useful feature for locking the zoom level. When locked then only raster tiles from a specific zoom level are used independent from the current map zoom level. One option for the same effect in VTM is to implement a custom "UrlTileDataSource.query" (or "BitmapTileLoader.loadTile") method which stitches together a tile from multiple tiles or cuts out a region from an existing tile. But this is quite slow/complex. Is there a better solution for a lock function? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Displaying bitmap tiles from higher zoom levels would result in a blurry map. All |
Beta Was this translation helpful? Give feedback.
-
The attached video shows what happens when setting the overzoom to 14. Starting with zoom level 14 the tiles get messed up. Untitled.video.mp4Code:
|
Beta Was this translation helpful? Give feedback.
-
Overzoom was created mainly for vector maps where rendering at large zoom can be done with content from upper levels. Bitmap maps display images. Setting public static Builder<?> OPENSTREETMAP = BitmapTileSource.builder()
.url("https://tile.openstreetmap.org")
.zoomMax(14); |
Beta Was this translation helpful? Give feedback.
Overzoom was created mainly for vector maps where rendering at large zoom can be done with content from upper levels.
Bitmap maps display images. Setting
zoomMax
in their builder, they show zoomed / blurry the tiles from upper zoom levels.