Issue
public class MapOverlay extends ItemizedOverlay<OverlayItem> {
....
public MapOverlay(Drawable defaultMarker, Context context) {
//super(defaultMarker);
super(boundCenterBottom(defaultMarker));
}
....
}
MapOverlay class gets drawable as a constructor argument. Is is possible to change that image when drawing point on the map? What I want do is to write markers with different icon images.
Solution
Drawable marker = context.getResources().getDrawable(R.drawable.youricon);
Answered By - Samir Mangroliya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.