If you want to allow clients to change layer appearance and behavior in your map service, you can enable dynamic layers after you've already published a map service. Dynamic layers increase the range of actions that users can take with your maps.
To enable dynamic layers on your map service in ArcGIS Server Manager, follow these steps:
- Open Manager and log in. If you need help with this step, see Log in to Manager.
- Click Services > Manage Services.
- In the Manage Services module, locate your map service and click the Edit button . If you don't see your service in the list, it may be located within a subfolder under the Site (root) folder.
- Click Capabilities > Mapping.
- Select Allow per request modification of layer order and symbology.
If you want to dynamically add layers to your map service in a client application, you'll need to select workspaces that contain the layers you want to add.
- If a dynamic workspace you want to use is not listed, add a new dynamic workspace by clicking Add.
- Choose the type of workspace you want to add from the Workspace Type drop-down list. You can choose between enterprise databases, file geodatabases, folders containing shapefiles, and folders containing raster datasets.
- Specify a workspace ID. When a client requests to add a layer in an application, the ID is included in the request. This is used to identify the workspace from the pool of available workspaces. The ID can be any string of characters and contain spaces.
- Based on the type of workspace you selected, the way that you specify the path to the workspace will vary:
- If you selected Enterprise Database, you can specify the database connection you want to use by clicking Import > Browse. You can optionally lock the database version that users can access. To do so, choose Lock Version.
- If you selected File Geodatabase, specify the path to the file geodatabase you want to use. Keep in mind that you'll need to add feature classes or tables to that file geodatabase at a later time.
- If you selected Raster Folder, specify the path to the folder that contains the rasters you want to use.
- If you selected Shapefile Folder, specify the path to the folder that contains the shapefiles or dBASE files you want to use.
- If you selected Layers Folder, specify the path to the folder that contains the layers you want to use.
- Review your workspace parameters and click Add.
- Click Save and Restart.
Your map service is now configured with dynamic layers enabled. Supported clients will be able to change layer appearance and behavior dynamically.