RulTech - Load custom marker on GoogleMap V2

APR

22

1633

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()));
}

Add Comment

COMPANY INTRO

RulTech is a provider of total IT support & services viz. Installation, Configuration, Maintenance, Troubleshooting, Mobile development (iPhone & Android applications), Web Development (Java, dot net, PHP, Word Press, Joomla open source), Content writing & Data Analysis.

BLOG POSTS