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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -