APR
22
8864- Written by Pravin Dodia
- Published in Blog Post
- Be the first to comment!
Load custom marker on GoogleMap V2
To load custom icon as marker of GoogleMap V2, save the icon in drawable folder. Load it using the code
protected void addCustomMarker()
{
BitmapDescriptor bitmapDescriptor
= BitmapDescriptorFactory.fromResource(R.drawable.ic_launcher);
myMap.addMarker(new MarkerOptions()
.position(point)
.icon(bitmapDescriptor)
.title(point.toString()));
}