Android 使用ArcGis在OneMap上显示位置
我第一次在android应用程序(java)中使用ArcGis 我通过“一张地图”得到了一个位置的X和Y坐标 现在我不想把这一点显示为地图上的红点 X-26005.0765 Y-30007.0973 有人知道要遵循什么教程吗。我看了“你好地图教程” 有人能告诉我教程或文档中的例子吗Android 使用ArcGis在OneMap上显示位置,android,maps,arcgis,Android,Maps,Arcgis,我第一次在android应用程序(java)中使用ArcGis 我通过“一张地图”得到了一个位置的X和Y坐标 现在我不想把这一点显示为地图上的红点 X-26005.0765 Y-30007.0973 有人知道要遵循什么教程吗。我看了“你好地图教程” 有人能告诉我教程或文档中的例子吗 Asmita必须使用图形层添加点的图形表示。 下面的代码是一个例子,你打印了一个点的坐标,你获得 public class Test extends Activity { // View elements MapV
Asmita必须使用图形层添加点的图形表示。 下面的代码是一个例子,你打印了一个点的坐标,你获得
public class Test extends Activity {
// View elements
MapView map;
GraphicsLayer measures = new GraphicsLayer();
Point point;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Get elements of the view
map = (MapView) findViewById(R.id.map);
map.addLayer(measures);
Point point = new Point(26005.0765, 30007.0973);
measures.addGraphic(new Graphic(point,new SimpleMarkerSymbol(Color.RED,10,STYLE.CIRCLE)));
map.zoomTo(point, 0);
}
}