Search code examples
androidindoor-positioning-system

I want to make an indoor map. how can i accomplish a real map /webview like scrolling in it?


I am trying to make an indoor map of a hospital , when i click on certain buildings it would open their respective indoor maps and when i select a certain area of their respective floor it would show me further details.How can I achieve this?

Any suggestions would be appreciated.

P.S I have tried using image view but i can't get the image to scroll freely like a real map or a webview (pinch zoom in/zoom out ,rotation etc).


Solution

  • As you wanted your "floor" to have the behavior of a map you should have look for custom map implementations.

    Then you may have found that you can use your own Tile Overlay using a Custom Map Tile Provider as described in Using custom map tiles with Google Map API V2 for Android?

    Or if you don't want to use Google, you can look at Open Street Map Android SDK

    Ether way you are still responsible for the graphical assets of tile layers. As well as any UI/UX leading to the custom map view.

    Alternatively there are third-party libraries for 'deep zoom' of an image which may provide the expected touch behavior like: https://github.com/davemorrissey/subsampling-scale-image-view