I am trying to create a script that would take a screenshot of the specific map area which would include the basemap and all the layers on the map.
The code below zooms in to the targeted area of the map and generates a screenshot. The problem is the screenshot only displays imagery layers, while vector layers are not showing up on the map. Any ideas why it's happening?
My code so far:
What happens if you take the same web_map_as_JSON parameter and pass it into the default ArcGIS Online print service operation?
Do all the layers appear as expected?