fasibukhari

Custom Map Service doesnot show map

Discussion created by fasibukhari on Mar 15, 2014
Latest reply on Aug 8, 2014 by ebader-esristaff
Hi all


I am using my custom webservice  arcgis server  on local intranet .

the code is as below is working fine   with online map service (esri) .


    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
     // Retrieve the map and initial extent from XML layout
  mMapView = (MapView) findViewById(R.id.map);

 
  /*
  ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer(
    dynamicMapURL);
  map.addLayer(dynamicLayer); */
  ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer("http://gisweb2/ArcGIS/rest/services/Web_Andriod_Srv/MapServer");
  mMapView.addLayer(dynamicLayer);
);
    }



Thanks in Adnance

Outcomes