AnsweredAssumed Answered

Map callout does not display when Esri is started first time in android

Question asked by azia341 on Apr 12, 2019
Latest reply on Oct 1, 2019 by Ludo.G

I have to restart my Esri map or restart app to show map callout but the map callout is actually present in the desired location but never displays in the first launch of the app. Here is my code.

mMapView = findViewById(R.id.map);
//ArcGISMap map = new ArcGISMap(SpatialReference.create(2868));
ArcGISMap map = new ArcGISMap(Basemap.createStreetsVector());
mMapView.setMap(map);
//new Handler().postDelayed(()->mMapView.setMap(map), 3000);
mMapView.getGraphicsOverlays().add(graphicsOverlay);
PictureMarkerSymbol pictureMarkerSymbol = new PictureMarkerSymbol((BitmapDrawable)getResources().getDrawable(R.mipmap.pin_blue));
Map<String, Object> attr = new HashMap<>();
attr.put("position", i);
attr.put("name", record.getName());
Graphic graphic = new Graphic(point, attr,pictureMarkerSymbol);
graphicsOverlay.getGraphics().add(graphic);

Outcomes