I have successfully managed to show the google map api v2. I want to add markers for my positions on it.
As per the documentation, I am only able to add one marker at a time or have to use a loop to add multiple.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.demo_v2);
googleMap = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
googleMap.setMyLocationEnabled(true);
Marker marker = googleMap.addMarker(new MarkerOptions().position(ROMA).title("Hello").snippet("Nice Place").icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_launcher)));
}
My question is, if I have a set of 10 LatLon values and the custom images, how can i show the multiple markers in API v2.
Thanks