java - How to get Icon of Google Maps marker? -
with marker.gettitle() title of marker, how can ask icon? want ask if icon of marker set drawable , if something.
well can create marker new markeroptions() this:
map.addmarker(new markeroptions() .icon(bitmapdescriptorfactory.fromresource(r.drawable.house_flag)) .anchor(0.0f, 1.0f) // anchors marker on bottom left .position(new latlng(41.889, -87.622)));
so can store data in linked list or hash map
Comments
Post a Comment