-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help needed for displaying single image from Remote #1
Comments
First, you need to make a deep-zoom map from your 1200*900 image. Then, the configuration should be:
I've done it myself, I get 4 levels: If you need more help don't hesitate. |
Then, you will have to define a Assuming you will want those tiles to be served by your http server which hosts your website, then this implementation could look like this:
|
Thanks for such a quick response. I really appreciate it. Yes after creating deep zoom map it works perfectly. But Can i display the map/image without creating deep-zoom map i.e just with single image as in the above link? I was doing it in Tileview old java version with following code :
Is there something similar i can do in this? |
You have to "tile" your image somehow, as MapView (and also TileView in its latest version) only supports squared tiles, and your image is rectangular.
Of course, your |
Yes you are right. I understood now. Also one last thing. If you know any sample for indoor map and navigation using tileview please provide a link. Thanks for helping out. Great work :) |
An example of app using MapView is TrekMe (my own app). But if your question was really about TileView, again TrekMe, but the |
Okay i observing something in demo project as well as in mine. In RemoteHttpFragment, it will load initially well (First Image). Then if i go to background and come back (i.e onResume) it is not loading properly. (Second Image) What do you think is the cause? |
Good catch! I updated the demos to show proper usage, and it's fixed now. The issue were that the configuration was done inside So I updated the demo and added a safeguard in the library. If we configure the |
Thanks for such quick replies and such quick updates. You can close the issue as it is fixed :) |
Thanks for the wonderful library. I have used old java tileview library and now happy to use improved Kotlin version of it. I need one help with respect to displaying of a single image from remote. I just have a single image of size 1200 * 900. I would like to display it with zooming enabled. How would i configure it without using deep-zoom map.
My image : http://androidbash.com/data/floor1.jpg
I tried following config and i am unable to load the map.
var tileSize = 1200
val config = MapViewConfiguration(
1, 1200, 900, tileSize, tileStreamProvider
).setMaxScale(4f).setPadding(tileSize * 2).setWorkerCount(16)
The text was updated successfully, but these errors were encountered: