Add layers from a URL

You can add the following types of layers to Map Viewer using a URL:

Add a CSV layer

A comma-separated value file (CSV) is a web-based text file that typically includes location information.

Note:
When adding a .csv file to the map from a URL, the location information in the file must be latitude and longitude coordinates.

Do the following to add a CSV layer:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Click Next.
  5. Complete the steps to reference a CSV file from a URL.

Reference a file from a URL

To reference the .csv file from its URL and add it directly to the map, do the following:

  1. Follow the first six steps for adding a CSV from a URL.
  2. Define the properties of the fields for the layer:
    1. Optionally, provide display names and field data types.
    2. Click Next.
    3. Optionally, specify which location fields to use.

      The location information must be latitude and longitude coordinates.

  3. Click Add to map.

    The data is added to the map and now appears in the Layers pane Layers.

Add a KML layer

KML is an XML-based file format used to represent geographic features.

Do the following to add a KML layer:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Click Add to map.

    The data is added to the map and now appears in the Layers pane Layers.

Add an ArcGIS Server web service

An ArcGIS Server web service is a map, image, or feature resource that is located on an ArcGIS Server site.

Do the following to add an ArcGIS Server web service to the map:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Type or paste the layer's URL into the URL text box.

    ArcGIS Server web service URLs are in the format https://<fully qualified web adaptor machine name>/<web adaptor name>/rest/services/<folder name>/<service name>/<service type>. If the service is in the root folder, you do not need to include the folder name in the URL. The URL format in that case is https://<fully qualified web adaptor machine name>/<web adaptor name>/rest/services/<service name>/<service type>.

    To find the REST URL of an ArcGIS Server service, open the ArcGIS Server Services Directory and browse to the service you want to share. You can then copy the URL from the browser's address bar. Do not append any parameters, such as a token, to the URL.

    For more information and examples of ArcGIS Server service URLs, see Components of ArcGIS URLs.

    For example, a map service URL is in the format https://webadaptorhost.domain.com/webadaptorname/rest/services/folder/service/MapServer.

  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Optionally, do the following to append custom parameters to requests made to the service:
    1. Under Custom parameters, click Add custom parameter.
    2. Type the name of the parameter you want to append in the Parameter text box.
    3. Type the parameter value in the Value text box.
    4. Repeat these steps for each parameter you want to append.

    The specified custom parameters are automatically applied to all requests made to the service.

  5. For secured services, optionally turn on the Store credentials with the layer toggle button to automatically authenticate access to the service.
  6. Optionally, if the layer can be used as a basemap, turn on the Use as basemap toggle button to use the data as a basemap layer. If the toggle button is not turned on, the data is added to the map as an operational layer.
  7. Click Add to map or Use as basemap.

    The data is added to the map and now appears in the Layers pane Layers or the Basemap Basemap pane.

Add a GeoRSS layer

GeoRSS is a live web feed that includes geographic features and locations.

Do the following to add a GeoRSS layer to a map:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Click Add to map.

    The data is added to the map and now appears in the Layers pane Layers.

Add a GeoJSON layer

GeoJSON is an open standard geospatial data interchange format that represents simple geographic features and their attributes.

Do the following to add a GeoJSON layer to a map:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Click Next.
  5. Click Add to map.

    The data is added to the map and now appears in the Layers pane Layers.

Add a Tile layer

A tile layer is a set of web-accessible tiles that reside on a server. When you add a tile layer from the web, the tiles are accessed by a direct URL request from the web browser.

Access to the appropriate tiles in the tile layer depends on the URL you provide for the tile layer. The URL contains parameterized values that Map Viewer uses to request the tiles that correspond with the extent and scale of the map as you pan and zoom.

Do the following to add a tile layer to a map:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Type or paste the layer's URL into the URL text box.

    Provide a URL that contains the level, column, and row placeholders in the following format: https:// ... /{level}/{col}/{row}.png or https:// ... / {z}/{x}/{y}.png. The URL can also contain a placeholder for the subdomains where the map tiles are stored. You can get this URL from the data provider.

    For example, the URL for the OpenCycleMap tile layer contains parameterized values in braces {}: https://www.opencyclemap.org/:https://{subdomain}.tile.opencyclemap.org/cycle/{level}/{col}/{row}.png.

    Note:

    Tile layers added from the web must use the Web Mercator (Auxiliary Sphere) coordinate system to ensure proper display in Map Viewer.

  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Optionally, if the layer can be used as a basemap, turn on the Use as basemap toggle button to use the data as a basemap layer. If the toggle button is not turned on, the data is added to the map as an operational layer.
  5. Click Next.
  6. In the Title text box, type a title for the layer.

    The specified title will be displayed in the Layers pane (or the Basemap pane if you add it as a basemap).

  7. In the Attribution text box, type any copyright information or required attribution information for the tile layer provider.

    The attribution information will be displayed at the bottom of the map.

  8. If the tile layer contains one or more subdomains, use a comma-separated list to specify the tile layer's subdomain labels in the Subdomains text box.

    Subdomains are used by the tile layer provider to distribute tile requests across multiple servers. Not all tile layers have subdomains. If the tile layer does not have subdomains, the Add tile layer window does not display the subdomain field. If you are unsure of the subdomain labels, contact the tile layer provider.

    If the tiles are distributed across multiple servers, you must provide subdomain information.

  9. Optionally, turn on the Set tile extent to the current extent of the map toggle button.

    When you turn on this option, Map Viewer sets the tile extent to include only those tiles visible in the map at the time that you enable the option. Map Viewer will only display tiles in that extent. However, because the tiles are not clipped to fit the extent, tiles may extend beyond the extent.

  10. Click Add to map or Use as basemap.

    The data is added to the map and now appears in the Layers pane Layers or the Basemap Basemap pane.

Add an OGC API - Features layer

OGC API - Features is a feature service that follows the OGC API - Features specification.

Do the following to add an OGC API - Features layer to a map:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. Note:
    The layer must contain a spatial field.
  4. If necessary, select the appropriate data type from the Type drop-down list.
  5. Optionally, do the following to append custom parameters to requests made to the service:
    1. Under Custom parameters, click Add custom parameter.
    2. Type the name of the parameter you want to append in the Parameter text box.
    3. Type the parameter value in the Value text box.
    4. Repeat these steps for each parameter you want to append.

    The specified custom parameters are automatically applied to all requests made to the service.

  6. Click Next.
  7. Select a layer to add.

    You can only add one layer.

  8. Click Add to map.

    The data is added to the map and now appears in the Layers pane Layers.

Add an OGC WFS web service layer

OGC WFS is a feature service that follows the OGC Web Feature Service specification.

Do the following to add an OGC WFS web service layer:

Note:

You can only add WFS 2.0 layers that support GeoJSON output.

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. Note:
    The layer must contain a spatial field.
  4. If necessary, select the appropriate data type from the Type drop-down list.
  5. Optionally, do the following to append custom parameters to requests made to the service:
    1. Under Custom parameters, click Add custom parameter.
    2. Type the name of the parameter you want to append in the Parameter text box.
    3. Type the parameter value in the Value text box.
    4. Repeat these steps for each parameter you want to append.

    The specified custom parameters are automatically applied to all requests made to the service.

  6. Click Next.
  7. Select a layer to add.

    You can only add one layer.

  8. Type a Max feature limit into the text box or use the arrow buttons to set the limit.
  9. Click Add to map.

    The data is added to the map and now appears in the Layers pane Layers.

Add an OGC WMS web service layer

OGC WMS is a map that follows the OGC Web Map Service specification.

Do the following to add an OGC WMS web service layer:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Optionally, do the following to append custom parameters to requests made to the service:
    1. Under Custom parameters, click Add custom parameter.
    2. Type the name of the parameter you want to append in the Parameter text box.
    3. Type the parameter value in the Value text box.
    4. Repeat these steps for each parameter you want to append.

    The specified custom parameters are automatically applied to all requests made to the service.

  5. Optionally, if the layer can be used as a basemap, turn on the Use as basemap toggle button to use the data as a basemap layer. If the toggle button is not turned on, the data is added to the map as an operational layer.
  6. Click Next.
  7. Choose specific layers in the OGC WMS service to add to the map, or click Select all to add the entire service.

    If you specified custom parameters, they are applied to all the layers you choose. To append different custom parameters to specific layers only, you must add those layers separately.

  8. Click Add to map or Use as basemap.

    The data is added to the map and now appears in the Layers pane Layers or the Basemap Basemap pane.

Add an OGC WMTS web service layer

OGC WMTS is a set of cached image tiles that follows the OGC Web Map Tile Service specification.

Do the following to add an OGC WMTS web service layer:

  1. Do one of the following:
    • On the Contents (dark) toolbar, click Add Add and choose Add layer from URL.
    • Open the Layers Layers pane and from the drop-down arrow, choose Add layer from URL.
  2. Copy the layer's URL into the URL text box.
  3. If necessary, select the appropriate data type from the Type drop-down list.
  4. Optionally, do the following to append custom parameters to requests made to the service:
    1. Under Custom parameters, click Add custom parameter.
    2. Type the name of the parameter you want to append in the Parameter text box.
    3. Type the parameter value in the Value text box.
    4. Optionally, check the Append only to requests that draw or query layers check box.

      If you leave the check box unchecked, the parameter is appended to all requests made to the service.

    5. Repeat these steps for each parameter you want to append.
  5. Optionally, if the layer can be used as a basemap, turn on the Use as basemap toggle button to use the data as a basemap layer. If the toggle button is not turned on, the data is added to the map as an operational layer.
  6. Click Next.
  7. Select a layer to add and select a Matrix tile from the drop-down menu.
  8. Click Add to map or Use as basemap.

    The data is added to the map and now appears in the Layers pane Layers or the Basemap Basemap pane.