Home » » Load custom marker on GoogleMap V2

Load custom marker on GoogleMap V2

Written By MR HARI on Rabu, 16 Januari 2013 | 16.52

To load custom icon as marker of GoogleMap V2, save the icon in drawable folder. Load it using the code:

  
BitmapDescriptor bitmapDescriptor
= BitmapDescriptorFactory.fromResource(R.drawable.ic_launcher);

myMap.addMarker(new MarkerOptions()
.position(point)
.icon(bitmapDescriptor)
.title(point.toString()));


GoogleMap V2 with custom marker


The series:
A simple example using Google Maps Android API v2, step by step.

Share this article :

0 komentar:

Posting Komentar

 
Support : Your Link | Your Link | Your Link
Copyright © 2013. Android Center - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger