Replace Web Layer (Server Tools)
Summary
Replaces the content of a web layer in a portal with the content of another web layer.
Usage
The target layer is the web layer to be replaced. The update layer is the replacement web layer. The target and update layers can be the following types of web layers:
Vector tile layers published from vector tile packages
Tile layers
Scene layers published from one of the following sources:
Scene layer packages hosted on ArcGIS Online or an ArcGIS Enterprise portal
Referenced scene caches in folder or cloud data stores
Voxel scene layers cannot be replaced.
To replace a vector tile layer on an ArcGIS Enterprise portal, you must be using version 10.6 or later. To replace a tile layer, you must be using version 10.8 or later. To replace a scene layer, you must be using version 10.8.1 or later.
Your ArcGIS Pro active portal must be the portal that hosts the target and update layers. You must be signed in to ArcGIS Pro with the account that owns the target and update layers.
The target and update layers must be of the same type. For example, you cannot replace a vector tile layer with a tile layer.
The scene layer type of the target layer and update layer must match. For example, you cannot replace a building scene layer with a 3D object scene layer.
To replace a web scene layer, the target layer and update layer must be published from the same source. For example, you cannot replace a web scene layer published from a scene layer package with a web scene layer published from a referenced scene cache.
To replace web scene layers published from referenced scene caches, the scene services of the target layer and update layer must exist in the same server and server folder.
When the target layer is updated, the content of the layer is replaced. The item ID and service URL of the target layer do not change.
The web layer that is replaced is not overwritten. It is archived in your portal with a new name. By default, the archive layer name is <layer name>archive<timestamp>. You can assign a different name, but it must be a unique web layer name in the portal.
By default, the archive layer uses the item ID of the update layer. You can specify a new item ID for the archive layer.
You can replace the item information of the target layer with the item information of the update layer. If you replace the item information, the summary, description, tags, and thumbnail image are replaced. Other information, such as the credits (attribution) and terms of use are not replaced.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Target Layer |
The web layer that will be replaced. Provide a layer or catalog path, or provide the item ID or service URL of one of the following:
|
Vector Tile Layer; Internet Tiled Layer; Scene Layer |
|
Archive Layer Name |
A unique name for the archive layer. The web layer that is replaced remains in the portal as an archive layer. |
String |
|
Update Layer |
The replacement web layer. Provide a layer or catalog path, or provide the item ID or service URL of one of the following:
|
Vector Tile Layer; Internet Tiled Layer; Scene Layer |
|
Replace Item Information (Optional) |
Specifies whether the target layer's item information (thumbnail image, summary, description, and tags) will be replaced. With either option, the item's credits (attribution), terms of use, and created-from information will not be replaced.
|
Boolean |
|
Create New Item For Archive Layer (Optional) |
Specifies whether an item will be created for the archive layer. This parameter is supported on portals in ArcGIS Online and ArcGIS Enterprise 10.8 or later.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Target Layer |
The URL of the updated web layer. |
String |
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes