inessashammas

Renderer. Symbols not appear.

Discussion created by inessashammas on Apr 9, 2012
  
 fLayer = new ArcGISFeatureLayer("http://.../ArcGIS/rest/services/POIs/FeatureServer/0",o,c);  
 fLayer.setRenderer(new SimpleRenderer(new PictureMarkerSymbol(getResources().getDrawable(R.drawable.ic_one)))); 


Pictures appear sometime, but usually black points

---------
  
 fLayer = new ArcGISFeatureLayer("http://.../ArcGIS/rest/services/POIs/FeatureServer/0",o,c); 
   
 UniqueValueRenderer renderer = new UniqueValueRenderer();
 renderer.setDefaultSymbol(new PictureMarkerSymbol(getResources().getDrawable(R.drawable.ic_one)));
 renderer.setField1("TYPE");
 for (int i = 0; i < 17; i++) {
  UniqueValue uniqueValue = new UniqueValue();
  uniqueValue.setValue(new Object[] {i+1});
  uniqueValue.setSymbol(new PictureMarkerSymbol(getResources().getDrawable(R.drawable.ic_two))); 
  renderer.addUniqueValue(uniqueValue);  
 }
 fLayer.setRenderer(renderer);


If UniqueValue set not for every possible value -  pictures appear sometime, but usually black points.
Work fine only when UniqueValue set for each value.

Outcomes