我是mapforge的新手,想要显示我的自定义标记(从sdcard读取)并在mapforge上显示离线map.problem我面临的是不知道如何将我的android.graphics.Bitmap obj转换为org.mapsforge.core.graphics .Bitmap obj
Bitmap userImg = TrafficBeatHelper.getUserImg(context, userId); // get android.graphics.Bitmap file from sdcard
LatLong userLatLong = TrafficBeatHelper.getLatLong(cache.getSharedPrefValue(SharedPrefContstant.USER_CURRENT_LATITUDE),cache.getSharedPrefValue(SharedPrefContstant.USER_CURRENT_LONGITUDE)); // get user location
// Marker userImgMarker = new Marker(userLatLong, userImg, 0, 0);
Run Code Online (Sandbox Code Playgroud)
任何人都有任何其他选择,请提前分享txs.