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

go - Idiomatic way to handle template errors in golang -

python - Creating a new virtualenv gives a permissions error -

c# - What is a NullReferenceException, and how do I fix it? -