Update AndroidGraphics.java

add static makeMarker to create Marker from Drawable
This commit is contained in:
Stephan Leuschner 2014-01-26 20:39:54 -05:00 committed by Hannes Janetzek
parent 8eb6377a69
commit 9ec72aabe3

View File

@ -91,13 +91,13 @@ public final class AndroidGraphics extends CanvasAdapter {
}
public static MarkerSymbol makeMarker(Resources res, int id, HotspotPlace place) {
return makeMarker(res.getDrawable(id), place);
}
public static MarkerSymbol makeMarker(Drawable drawable, HotspotPlace place) {
if (place == null)
place = HotspotPlace.CENTER;
Drawable drawable = res.getDrawable(id);
return new MarkerSymbol(drawableToBitmap(drawable), place);
}
}