HOW TO
Adding tile layers to an ArcGIS Pro project is time-consuming if there are many tile layers, as the process requires multiple uses of the Add Data process in ArcGIS Pro. This article provides a workflow to add tile layers to an ArcGIS Pro project using ArcGIS API for Python.
import arcpy
aprx=arcpy.mp.ArcGISProject('CURRENT')
m=aprx.listMaps('LAYERNAME')[0]
m.addDataFromPath('URL_1')
The code block below presents the full script used to add a tile layer to the map in ArcGIS Pro.
import arcpy aprx = arcpy.mp.ArcGISProject('CURRENT') m = aprx.listMaps('Layer_Name')[0] m.addDataFromPath('https://a.tile.test123.org/cycle/{level}/{col}/{row}.png')
Note: Repeat Steps 3d and 4 with subsequent tile layer URLs to add the additional layers to the project.
Article ID: 000029157
Get help from ArcGIS experts
Download the Esri Support App