xpedition009

MapServer object in ArcGIS 10.1

Discussion created by xpedition009 on Jan 30, 2013
Latest reply on Jan 31, 2013 by rlwatson
How to get MapServer object in ArcGIS 10.1?

In ArcGIS 10 I used the following code.
..........................
MapServer mapServer = (MapServer) context.getServerObject();
IMap map = mapServer.getMap(mapServer.getDefaultMapName());
IEnumLayer maplayers = map.getLayers(null, true);
............................

Outcomes