locationService = mMapView.getLocationService(); locationService.setSymbol(new SimpleMarkerSymbol(Color.BLUE, 15, STYLE.X)); //setSymbol(new PictureMarkerSymbol(getResources().getDrawable(R.drawable.ic_maps_indicator_current_position_anim3))); locationService.setAccuracyCircleOn(false); locationService.setAutoPan(false); locationService.start();
//locationService.setAccuracyCircleOn(false);
SimpleMarkerSymbol s = new SimpleMarkerSymbol(Color.BLUE,15,com.esri.core.symbol.SimpleMarkerSymbol.STYLE.CIRCLE);
Olli, what happens if you just use the default accuracy circle settings? Does the circle look okay then? To do that comment out the following line://locationService.setAccuracyCircleOn(false);In regards to the SimpleMarkerSymbol, does it work for you if you try a different style? I was able to duplicate that STYLE.X didn't work for me either.SimpleMarkerSymbol s = new SimpleMarkerSymbol(Color.BLUE,15,com.esri.core.symbol.SimpleMarkerSymbol.STYLE.CIRCLE);-Andy
locationService = mMapView.getLocationService(); SimpleMarkerSymbol s = new SimpleMarkerSymbol(Color.RED,15,com.esri.core.symbol.SimpleMarkerSymbol.STYLE.CIRCLE); locationService.setSymbol(s); //setSymbol(new PictureMarkerSymbol(getResources().getDrawable(R.drawable.ic_maps_indicator_current_position_anim3))); //locationService.setAccuracyCircleOn(false); locationService.setAutoPan(false);
Olli, have you tried your app on a different phone? It's possible the blurry accuracy circle has something to do with your phone's operating system and its support for Open GL ES 2.0. Also, do you have a local Esri distributor you can contact on this? I'm not sure how to duplicate this error, as I haven't seen it.-Andy
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.