Answer the question
In order to leave comments, you need to log in
How to show park map from image with interactive elements?
There is a task: to display a map of the park (png approximately 5000px by 6000px) in a fragment with all interactive features - selecting the categories "cafe", "picnic area", "scene", displaying the corresponding icons in the necessary places on the image, the ability to zoom and so on.
What I have already tried:
1) I cut it into tiles of 256 and 128 (I thought it would be faster) and displayed a plate with tiles in the webview, I tried interactivity using js (so far there are problems with this) - since there is no need for gps yet, but it crashes, constantly overloads pictures and falls into out of memory
2) I studied the source codes of google io 2013 - honestly, I didn’t quite figure it out, but as I understood there something similar 1, but with google maps
3) I tried to use OSMDroid ( www.haakseth.com/?p=30 )according to the lesson, but I just can’t figure out how to make it exactly by the tiles of the picture, and not by the map + I can’t imagine how to display the icons of the park (as I understand it, with bubbles), after dancing, I managed to implement just a piece of the map from OSM, but I don’t understand how to go on my tiles
Direct and tell me how to implement it, I have a wild mess, how can I still display the map from the picture with zoom levels and interactive marks?
Maybe, after all, someone faced a similar task, for example, floor plans indicating what and where or any entertainment venues (like, for example, here www.upinpoint.com/android )?
Share your experience, can anyone use any third-party libraries, like mapp.android-libraries.com , but free?
I just have no idea how to dig and what to do, except for OSM, and the OSM solution, to put it mildly, is incomprehensible to me and does not seem optimal ...
I hope for your help!
Answer the question
In order to leave comments, you need to log in
I tried to figure it out with OSM - I figured it out, cut the map most suitable for the park from MOBACa maps, set markers ... but still, of course, I didn’t like the result, because there was something else in the designer’s head.
After looking for libraries for displaying images, I found an excellent option
https://github.com/moagrius/TileView
With a detailed description and open source code, it is even possible to make a georeferencing. in the end, I used it ... if anyone needs it, I can describe it in more detail with a lesson on how, but I think no one will have problems disassembling the simplest example:
https://github.com/moagrius/TileView/wiki/Detailed...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question