Select to view content in your preferred language

Custom Map Service doesnot show map

1918
2
03-15-2014 10:42 PM
FaisalBukhari
Deactivated User
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
0 Kudos
2 Replies
ErikBlair
Deactivated User

hi

if your problem is solved

could you please tell us how?

I'm facing a similar problem I guess

0 Kudos
EricBader
Honored Contributor

In what way is it not working?

When you say "Custom", are you talking about a custom Server Object Extension?

If so, is it REST-enabled?

0 Kudos