Select to view content in your preferred language

hello , How Can I hide an object of type ArcGISDynamicMapServiceLayer ?? I

5555
22
11-14-2014 09:13 AM
LourdesOlvera
Deactivated User

hello , How Can I hide an object of type ArcGISDynamicMapServiceLayer ??

I used : dynamicLayer.setVisible(false);  but does not work.

this is my code:

public void solar(View button){

  String dynamicMapURL = "http://iner.energia.gob.mx:6080/arcgis/restp/services/INER/SOLAR_GLOBAL/MapServer";

  ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer(

  dynamicMapURL);

  dynamicLayer.setVisible(true);

  if(geocap.getVisibility()==View.GONE){

  geocap.removeAllViews();

      geocap.setVisibility(View.VISIBLE);

      solar();

  }else{

  geocap.setVisibility(View.GONE);

  dynamicLayer.setVisible(false);

  }

  }

0 Kudos
22 Replies
MengyiGuo
Deactivated User

com.esri.core.tasks.ags.query.QueryTask is replaced by com.esri.core.tasks.query.QueryTask. Class name remain the same but package name changed.

Query is replaced by QueryParameters.

0 Kudos
LourdesOlvera
Deactivated User

ok, since probe that and not funiona ... says you can not find the class

not that I have to do ...

0 Kudos
MengyiGuo
Deactivated User

Would you please send the sample project code to mguo@esri.com

0 Kudos