moagrius / TileView

TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing.
MIT License
1.46k stars 337 forks source link

setSize and SetTileSize issues #488

Closed shriharsha-bhagwat closed 6 years ago

shriharsha-bhagwat commented 6 years ago

Library Version 3..0.1 : Hi i have an image of 1825*1750 resolution. And i want to display just this single image with zoom enabled. So i have set the size of tileview as .setSize(1825, 1750). But now if i set the tile size as .setTileSize(1825), then there is a stretch in the image with respect to height. In previous version of the library it was all good.

moagrius commented 6 years ago

tiles size indicates width and height. it's not really meant to display a single image. you may have better luck with https://github.com/davemorrissey/subsampling-scale-image-view

that said, feel free to issue a PR if you're able to find a fix. Almost all the relevant code is in Tile.java or TileView.java

shriharsha-bhagwat commented 6 years ago

Yeah but previous version had it all right. Anyways thank you for great work. All i need is heatmap with oldversion which i have created an issue in another thread.

shriharsha-bhagwat commented 6 years ago

Redirecting to https://github.com/moagrius/TileView/issues/487