I've created a exporting tool which takes a Web_Map_as_JSON input.
It's not detailed enough for me to correctly create a map document using the arcpy.mapping.ConvertWebMapToMapDocument function.
In particular I am trying to access a mapServer (with supports dynamic layers set to TRUE), lets call it "FOO", and then export a selection of layers, lets say 0,1,4.
The resulting MXD file which is created using arcpy.ConsolidateMap_management creates a DataFrame with a layer named "FOO" and the selection of layers as a sublayer of FOO.
DataFrame | --Foo | -- 0 | -- 1 | -- 4
The solution I want to accomplish is to get the 0,1,4 layers to be a child of the DataFrame.
DataFrame | -- 0 | -- 1 | -- 4
I've also had a look at the specification for a Feature Layer, but that doesn't allow for turning on/off labelling for features.