use of org.oscim.layers.marker.MarkerItem in project graphhopper by graphhopper.
the class MainActivity method createMarkerItem.
@SuppressWarnings("deprecation")
private MarkerItem createMarkerItem(GeoPoint p, int resource) {
Drawable drawable = getResources().getDrawable(resource);
Bitmap bitmap = AndroidGraphics.drawableToBitmap(drawable);
MarkerSymbol markerSymbol = new MarkerSymbol(bitmap, 0.5f, 1);
MarkerItem markerItem = new MarkerItem("", "", p);
markerItem.setMarker(markerSymbol);
return markerItem;
}
Aggregations