Android Maps Intent - Extra Parameters -
right now, i'm launching google maps application following call:
string geoaddress = "maps.google.com/maps?q="; geoaddress += latlong[0] + "," + latlong[1]; intent = new intent(android.content.intent.action_view, uri.parse(geoaddress)); startactivity(i);
which open , place marker @ specified position on map. have 2 questions:
1) how can place multiple markers of have longitude/latitude?
2) how can start maps application other modes (terrain/satellite/etc.)?
thanks!
- you can add multiple links on map using overlays,and u can see googlemapview example in http://developer.android.com/resources/tutorials/views/hello-mapview.html. here can understand use of overlays.
read following links , download code link(for further reference)
https://github.com/jgilfelt/android-mapviewballoons
https://github.com/jgilfelt/android-mapviewballoons#readme
2.to change views use following functions, mapview.setsatellite(true); mapview.setstreetview(true); further reference http://mobiforge.com/developing/story/using-google-maps-android
Comments
Post a Comment