I started programming with android studio and arcgis not long ago, and I'm facing some problems related to ArcGis.
I implemented the following tutorial in my application: https://developers.arcgis.com/android/java/sample-code/display-device-location/
Everything worked perfectly, however I am not able to change the icon of the device location when I click in RECENTER for example. Can someone help me? It's probably something simple that I'm missing.
Hi GuilhermeFernandes,
You can change the default symbol for location display by setting a Custom Symbol.
https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/view/LocationDisplay.html#setDefaultSymbol(com.esri.arcgisruntime.symbology.Symbol)
Example:
SimpleMarkerSymbol defaultSms = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.TRIANGLE, Color.BLUE, 30); locationDisplay.setDefaultSymbol(defaultSms);
ThanksRama
Thanks Rama. Worked perfectly. Worked perfectly. In that case, you added a triangle to the location. Is it possible to add an image?
Take a look at PictureMarkerSymbol
https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/symbology/PictureMarkerSymbol.html
This sample shows how they work.
https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/picture-marker-symbols
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.