Adding layers to a web application

To select the layers to display in your application, you connect to one or more GIS servers and choose the map services you want to add as layers to your map. You can overlay map services from ArcGIS Server, ArcIMS, and Open Geospatial Consortium, Inc. (OGC) Web Map Service (WMS) servers in one web application. The map services appear as layers in the Web Mapping Application and allow users of the application to work with the individual sublayers within the map services as well.

Steps:
  1. In Web Applications Manager, click the Layers tab and click Add Layer.
  2. Examine the list of available GIS servers. If the server containing your layer does not appear on the list, click Add GIS Server and choose the type of server you want to add:

    Option

    Description

    ArcGIS Server

    This option connects to ArcGIS Server through HTTP and can be used over the intranet or Internet.

    To make an ArcGIS Server Internet connection, you will be prompted to enter the URL of the server. This will take the form http://<server>/<instance>/services. In most cases, the instance will have the default name, which is ArcGIS.

    If you're connecting to an ArcGIS Server Internet service that requires a login, click Access Secure Services. You can enter the user name and password at this point.

    In previous versions of ArcGIS Server, an ArcGIS Server Local connection type was included in Web Applications Manager for layers that would be edited over the web or services that would be used to access fined-grained ArcObjects. Local connections are not available in ArcGIS 10.1 for Server. To achieve web editing functionality, you can use a feature service in an application you build with the Esri web APIs or the ArcGIS Viewer for Flex. To access ArcObjects, you can write a server object extension or build an equivalent geoprocessing service.

    ArcIMS

    Use the ArcIMS option for adding ArcIMS Image and ArcMap Image Services. Feature and Metadata Services are not supported in a Web Mapping Application.

    To add an ArcIMS service, you will be prompted to choose either a TCP or HTTP connection. For a TCP connection, you must specify a host and port. The host is the server where the ArcIMS application server resides. The machine must be on the same network as the web server. The port is the port used for the Application Server, and the default is 5300. For an HTTP connection, you must specify the URL of the server you want to access. For example, if the server is mymachine, the URL is http://mymachine.

    OGC WMS

    You can add services to your map that support the OGC WMS specification. ArcGIS Web Applications supports WMS versions 1.3.0, 1.1.1, 1.1.0, and 1.0.0. You must provide the URL of the service you want to add. The dialog box gives example URLs for WMS services published with ArcIMS or ArcGIS Server. WMS services published in other ways may have different URL structures.

    If you're adding a secured WMS service, click Access Secure Services to enter a user name and password.

    By default, all layers of the WMS service are retrieved. Once you finish creating the application in Web Applications Manager, you can control which layers are requested by manually editing the ResourceDefinition string in the web application's Default.aspx file. For further instructions, see the MapResourceManager usage topic in the ArcGIS Help.

    Only the first 10 requested layers of the WMS service are turned on by default.

  3. Once your server appears in the list, double-click it to reveal a list of available services. Select the service you want to add and click Add.
  4. You can repeat this process to add other layers to the map.
10/19/2012