码迷,mamicode.com
首页 > 移动开发 > 详细

ArcGis for Android中如何获取自定义图层中的图片并旋转

时间:2014-10-19 23:13:45      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:android   ar   for   sp   on   问题   bs   new   res   

============问题描述============


RT,在GraphicsLayer自定义图层中,有一个图片,现在可以获取到手机的旋转角度,然后根据角度去旋转那个图片。现在只能remove掉GraphicsLayer后旋转图片重新添加到map中,这样的话会非常不连贯,达不到百度地图的旋转效果,请教大神们如何解决?

============解决方案1============


BitmapDrawable bd = new BitmapDrawable(context.getResources().openRawResource(R.drawable.main_icon_nav));
PictureMarkerSymbol arrow_symbol = new PictureMarkerSymbol(bd);
arrow_symbol.setAngle(bearing);   //角度
Graphic gArrow = new Graphic(p, arrow_symbol);
mGraphicsLayer.updateGraphic(sUid, graphic); 

ArcGis for Android中如何获取自定义图层中的图片并旋转

标签:android   ar   for   sp   on   问题   bs   new   res   

原文地址:http://www.cnblogs.com/meizhenfen42/p/4035761.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!