Tag Info

New answers tagged

1

I've tested your script with a bit of modification: mxd = arcpy.mapping.MapDocument("CURRENT") layers=arcpy.mapping.ListLayers(mxd) color_layer=layers[-1] lyr=layers[-2] df = arcpy.mapping.ListDataFrames(mxd)[0] arcpy.mapping.UpdateLayer(df,lyr,color_layer,True) lyr.symbology.valueField="color" lyr.symbology.addAllValues() arcpy.RefreshActiveView() ...


0

You don't need a map to construct the JSON. You can make it yourself, then POST or GET to the REST service here (or at your ArcServer): http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute See my example below for drawing a basemap: "World_Topo_Map", adding a layer with Definition ...



Top 50 recent answers are included