Thanks Earl, very helpful... The issue I am running into now is when I try and `arcgis.gis.content.add` multiple XYZ `templateUrl` dictionaries. I have the output webmap I can share with you that has odd behavior the the multiple layers that hvae been added. I must click ALL the layers on or off to render or remove... and when I do that it only renders or removes and single XYZ tile from the webmap iteslf. For example:
{"operationalLayers":[
{"templateUrl":"https://tiles3.planet.com/v1/experimental/tiles/PSScene4Band/20190206_173912_101c,20190206_173913_101c,20190206_173914_101c,20190206_173915_101c,20190206_181216_1034,20190206_181217_1034,20190206_181218_1034,20190206_181255_1044,20190206_181257_1044/{level}/{col}/{row}.png?api_key=accessCode","copyright":"planet","fullExtent":{"xmin":-20037508.342787,"ymin":-20037508.34278,"xmax":20037508.34278,"ymax":20037508.342787,"spatialReference":{"wkid":102100}},"opacity":1,"visibility":true,"id":"WebTiled_7441","title":"first-tiles","type":"WebTiledLayer","layerType":"WebTiledLayer"},
{"templateUrl":"https://tiles3.planet.com/v1/experimental/tiles/PSScene4Band/20190206_173912_101c,20190206_173913_101c,20190206_173914_101c,20190206_173915_101c,20190206_181216_1034,20190206_181217_1034,20190206_181218_1034,20190206_181255_1044,20190206_181257_1044/{level}/{col}/{row}.png?api_key=accessCode","copyright":"Planet","fullExtent":{"xmin":-20037508.342787,"ymin":-20037508.34278,"xmax":20037508.34278,"ymax":20037508.342787,"spatialReference":{"wkid":102100}},"opacity":1,"visibility":true,"id":"WebTiled_6777","title":"another-tile-set","type":"WebTiledLayer","layerType":"WebTiledLayer"}
]
,"baseMap":{"baseMapLayers":[
{"id":"defaultBasemap","layerType":"ArcGISTiledMapServiceLayer","url":"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer","visibility":true,"opacity":1,"title":"Topographic"}],"title":"Topographic"},"spatialReference":{"wkid":102100,"latestWkid":3857},"authoringApp":"WebMapViewer","authoringAppVersion":"6.4","version":"2.13"}
Here is the cURL command from the browser, when I tried doing in AGOL only. It is using the `/update` endpoint in REST API but I cannot find the equivalent in ArcGIS Python API. cURL below:
curl'https://planetlabs.maps.arcgis.com/sharing/rest/content/users/Planeteer/items/60d8f5d883e344dcb5308e8855298ba6/update'-H'Referer:http://planetlabs.maps.arcgis.com/home/webmap/viewer.html?webmap=60d8f5d883e344dcb5308e8855298ba6'-H'Origin:http://planetlabs.maps.arcgis.com'-H'User-Agent:Mozilla/5.0(X11;Linuxx86_64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/72.0.3626.96Safari/537.36'-H'Content-Type:application/x-www-form-urlencoded'--data'title=20190214_x2---&tags=planet-tiles&extent=-119.2888,33.7976,-118.0391,34.753&text={"operationalLayers":[{"templateUrl":"https://tiles3.planet.com/v1/experimental/tiles/PSScene4Band/20190206_173912_101c,20190206_173913_101c,20190206_173914_101c,20190206_173915_101c,20190206_181216_1034,20190206_181217_1034,20190206_181218_1034,20190206_181255_1044,20190206_181257_1044/{level}/{col}/{row}.png?api_key=accessCode","copyright":"planet","fullExtent":{"xmin":-20037508.342787,"ymin":-20037508.34278,"xmax":20037508.34278,"ymax":20037508.342787,"spatialReference":{"wkid":102100}},"opacity":1,"visibility":true,"id":"WebTiled_7441","title":"first-tiles","type":"WebTiledLayer","layerType":"WebTiledLayer"},{"templateUrl":"https://tiles3.planet.com/v1/experimental/tiles/PSScene4Band/20190206_173912_101c,20190206_173913_101c,20190206_173914_101c,20190206_173915_101c,20190206_181216_1034,20190206_181217_1034,20190206_181218_1034,20190206_181255_1044,20190206_181257_1044/{level}/{col}/{row}.png?api_key=accessCode","copyright":"Planet","fullExtent":{"xmin":-20037508.342787,"ymin":-20037508.34278,"xmax":20037508.34278,"ymax":20037508.342787,"spatialReference":{"wkid":102100}},"opacity":1,"visibility":true,"id":"WebTiled_6777","title":"another-tile-set","type":"WebTiledLayer","layerType":"WebTiledLayer"}],"baseMap":{"baseMapLayers":[{"id":"defaultBasemap","layerType":"ArcGISTiledMapServiceLayer","url":"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer","visibility":true,"opacity":1,"title":"Topographic"}],"title":"Topographic"},"spatialReference":{"wkid":102100,"latestWkid":3857},"authoringApp":"WebMapViewer","authoringAppVersion":"6.4","version":"2.13"}&type=WebMap&typeKeywords=ArcGISOnline,ExplorerWebMap,Map,OnlineMap,WebMap&overwrite=true&f=json&token=potmyJp0-hie_IM8d1s-AYHsMWsBvfk2ExQ6q0huS5nkI6N4ynFiMBCVD-oxnG06_HWKyvAZ9D3AnnThJC27YPjggnZ9FHpsqRae7ZFvA8RymOAwedcmx2F5QlKjmlEa9NEjDB4HMl9PPtgvOu3srVIPR61kJhueqFkXN1_GKEDWj2ZIfQovJrUntQN90ScKcEe4GKf6rEXwNqkdsjAv1Q..'--compressed