How to add marker or graphics to MapView using ArcGIS android SDK?

牧云@^-^@ 提交于 2019-12-08 02:49:28

Just change your coordinates:

Point point = new Point(121.5, 24);

Your geodatabase features are all in Taiwan, but (5, 5) is not. When I use your code with (121.5, 24), I see a red cross graphic on the map.

Chaudhary Amar
GoogleMap map;
    map = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
    map.addMarker(new MarkerOptions()
            .position(new LatLng(0, 0))
            .title("Hello world"));
}

https://developers.google.com/maps/documentation/android-api/marker code to add markers to map using android google maps v2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!