catchthecows/AndroidImageMap

Possible to add "Area" real time.

Opened this issue · 3 comments

I would like to open the app with and empty "map" and add points onto it whilst the application is running. At least I think I do, I want to end up with a Google map esq, dropping pins onto an image, with the gestured zooming, and scrolling.

Hi Stephen,
I also want to achieve the same thing. The image map on which I want to create hot spot will be on remote server and I will display it at runtime by fetching it from the url. Can this be possible? Please answer...

Krishna

Apologies for the slow reply, I haven't looked at this project for a few months. It was a very quick app that I was throwing together and didn't spend any time extending the class to accommodate this, I had a work around where I could get the 'pin' locations up front and add them to the XML definitions.

The XML parsing is done in the loadMap(String map) method. So you should look inside that and probably create a method of your own, say loadMapFromServer(), which does similar things but loads the map from the remote server instead of parsing XML. The addShape() method is now protected, not private, so you should be able to use it in the loadMapFromServer() method.