Adding layers to a Web application in Manager

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, Bing Maps, 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 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:

    ArcGIS Server Internet

    This option connects to ArcGIS Server through HTTP and can be used over the intranet or Internet. It is the recommended way to connect to ArcGIS Server unless you are building an application with the Editor task or an application that will otherwise be extended to use ArcObjects.

    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.

    An ArcGIS Server Internet connection cannot be used for layers that will be edited over the Web or any layers that will be worked with through fine-grained ArcObjects. Avoid using ArcGIS Server Internet connections to access nonpooled services.

    ArcGIS Server Local

    An ArcGIS Server Local connection is used for connecting to a GIS server on a local area network. ArcGIS Server Local connections should only be used when your application will contain an Editor task or will otherwise make use of fine-grained ArcObjects.

    To make an ArcGIS Server Local connection, you must enter the name of the GIS server you want to connect to (specifically, the machine running the server object manager, or SOM). You'll also see an additional panel of the wizard containing some information about the user account that your Web application will use for connecting to the local server.

    Learn more about choosing an account for local connections

    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. The Web ADF 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 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 Developer help.

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

    Bing™ Maps

    You can add detailed road and aerial maps from Bing Maps to your Web application. For complete instructions, see About using Bing Maps in Web applications.

  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.

11/18/2013