标签:android java ar for c 代码 ad r new
ArcGis中GraphicsLayer图层图层用来添加标记画线等等,例如点击定位后,在地图上标出当前的位置同时以当前位置作为地图中心可以用如下代码:
Drawable drawable = getResources().getDrawable(R.drawable.arrow); PictureMarkerSymbol picSymbol = new PictureMarkerSymbol(drawable); Point loc= new Point(1.4191862462692365E7,5183685.4328131145); //获取的定位 Graphic g = new Graphic(loc, picSymbol); graphicsLayer.addGraphic(g); map.centerAt(loc, true);
Drawable drawable = getResources().getDrawable(R.drawable.arrow); PictureMarkerSymbol picSymbol = new PictureMarkerSymbol(drawable); Point loc= new Point(1.4191862462692365E7,5183685.4328131145); //获取的定位 Graphic g = new Graphic(loc, picSymbol); graphicsLayer.updateGraphic(1, g); map.centerAt(loc, true);
ArcGis for Android 添加及更新GraphicsLayer图层
标签:android java ar for c 代码 ad r new
原文地址:http://blog.csdn.net/u014765620/article/details/39578445