I'm try to add simple markers to my map I have followed the documentation, it worked. But I change the location map doesn't appear properly, it like zoomed. What I am missing here.
private MapView mapView;
private GraphicsOverlay graphicsOverlay;
private SimpleMarkerSymbol node;
private Point graphicPoint;
Graphic graphic;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mapView = (MapView) findViewById(R.id.mapView);
ArcGISMap arcGISMap = new ArcGISMap(Basemap.Type.IMAGERY,6.91621555958787, 79.97325625691973, 12);
mapView.setMap(arcGISMap);
mapView.setViewpoint(new Viewpoint(new Point(6.91621555958787, 79.97325625691973, SpatialReferences.getWebMercator()), 7500));
graphicsOverlay = new GraphicsOverlay();
mapView.getGraphicsOverlays().add(graphicsOverlay);
node = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, Color.RED, 10);
graphicPoint = new Point(6.91621555958787, 79.97325625691973, SpatialReferences.getWebMercator());
graphic = new Graphic(graphicPoint, node);
graphicsOverlay.getGraphics().add(graphic);
}