POST
|
Hi,In querytask sample i have a problem.when i search a place it can found it but cant change color of feature. i use 'ArcGISDynamicMapServiceLaye' for load map.and when search data change feature in this map.this is my code: addText = false;
queryLayer = "http://192.168.10.1:6080/arcgis/rest/services/Babolsar/Babolsar/MapServer";
map = (MapView) findViewById(R.id.map);
ArcGISDynamicMapServiceLayer tms = new ArcGISDynamicMapServiceLayer("http://192.168.10.1:6080/arcgis/rest/services/Babolsar/Babolsar/MapServer");
map.addLayer(tms);
Options o = new Options();
o.mode = MODE.ONDEMAND;
o.outFields = new String[]{"OBJECTID"};
fLayer = new ArcGISFeatureLayer("http://192.168.10.1:6080/arcgis/rest/services/Babolsar/Babolsar/MapServer/10", o);
SimpleFillSymbol fiedldsSelectionSymbol = new SimpleFillSymbol(Color.MAGENTA);
fiedldsSelectionSymbol.setOutline(new SimpleLineSymbol(Color.YELLOW, 2));
fLayer.setSelectionSymbol(fiedldsSelectionSymbol);
map.addLayer(fLayer);
map.setOnStatusChangedListener(new OnStatusChangedListener() {
private static final long serialVersionUID = 1L;
@Override
public void onStatusChanged(Object source, STATUS status) {
if (source == map && status == STATUS.INITIALIZED) {
graphicsLayer = new GraphicsLayer();
SimpleRenderer sr = new SimpleRenderer(
new SimpleFillSymbol(Color.RED));
graphicsLayer.setRenderer(sr);
map.addLayer(graphicsLayer);
}
}
});
... View more
02-26-2017
12:10 AM
|
0
|
1
|
1092
|
POST
|
hi,i need version 10-2 and 100.0.0 of sdk arcgis android.when add both of them i have error.how i can fix it? Error:Execution failed for task ':app:transformNative_libsWithMergeJniLibsForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK lib/x86/libruntimecore_java.so File1: C:\Users\falah\AndroidStudioProjects\SelectMaP\app\build\intermediates\exploded-aar\com.esri.arcgis.android\arcgis-android\10.2.8-1\jni File2: C:\Users\falah\AndroidStudioProjects\SelectMaP\app\build\intermediates\exploded-aar\com.esri.arcgisruntime\arcgis-android\100.0.0\jni
... View more
02-22-2017
04:14 AM
|
0
|
4
|
1583
|
POST
|
i need such this. in this sample when drag in screen select more than one featurte.but want when click a feature .it select.thanks
... View more
02-21-2017
09:37 PM
|
0
|
0
|
929
|
POST
|
look me.. i need select a area such a polygon in android.that when i select it show a call out of this polygon info. how i can do it
... View more
02-20-2017
01:26 AM
|
0
|
1
|
929
|
POST
|
how i can select a polygon in my project? please help me!!!!!!
... View more
02-19-2017
09:06 PM
|
0
|
7
|
1823
|
POST
|
i need select a polygon in mapView. how i can do it? in android
... View more
02-17-2017
11:41 PM
|
0
|
2
|
1237
|
POST
|
Hi.i need select a polygon in my project.i search in guide in android section but find any thing.please help me.how i can select a polygon ?
... View more
02-17-2017
11:19 PM
|
0
|
0
|
686
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|