I am building an android application whose functionality is to display a map of an indoor location with people around the application user. I have the following issues:
How to embed a map in android? I have found many references to embedding Google Maps but none to embedding a static map. I need to deal with my map as collection of pixels so I can add overlay items on top of it.
When the user zooms in and out, how do I obtain the zoom parameters? For example, assume my map consists of four consecutive rooms. The user is initially focused on room1 and sees all people in that room. He then zooms out so that his view becomes room1 and room2. How does my application detect that his view has changed to span room1 and 2? If this was a mathematical problem, my zoom parameters would be the coordinates of the upper-left-corner and the lower-right-corner of the current view. Given these parameters and the coordinates of all people, I can decide which people to display on the screen.
Could you please share some sample code that tackles issues 1 and 2.