I am batch automating PDF maps with many overlapping layers and many different symbology colors. When the map is zoomed far out- two of the layers, lets call it line1 (the only blue layer) and line2 (the only light green layer) do not change to the color of the symbology layer file.
I am using a function that uses the
ApplySymbologyFromLayer_management tool and then adds the newly updated layer to ArcMap. Here is the function.
def add_layer(flayer, symbology, position = "AUTO_ARRANGE"): df = arcpy.mapping.ListDataFrames(mxd) layer = arcpy.mapping.Layer(flayer) gp.ApplySymbologyFromLayer_management(layer, symbology, position) arcpy.mapping.AddLayer(df, layer)
I have checked their symbology paths and they are totally fine. i have checked their geometry and it is good as well. I have added at the end of the function
arcpy.refreshactiveview()but to no avail.
here is the correct coloring on a map where 1 inch = 7,843 feet the green and the blue lines are exactly as they should be(please disregard the red lines and the red point with 24)
this next map which has a scale range of 1 inch = 4 miles picture taken of the same area(disregard the red again and it is the same area, the orange is another feature native just to the second map)
as you can see the colors are not the what they are supposed to be
Is there a property setting that changes the symbology color at a different scale?
these two line layers are using the exact same layer files to change their symbology