AnsweredAssumed Answered

addDataFromPath isn't respecting the layer weight rules

Question asked by tsellekaerts on May 17, 2019

I'm adding a raster layer to my map in ArcGIS Pro from the python command line (testing out syntax to use in a python toolbox). 

 

When I use:

arcpy.management.MakeRasterLayer('path to my image file')

the image is successfully added to the current map below all of my vector layers.  However, when i use:

map.addDataFromPath('path to my image file')

the image is added to the current map, but at the top. 

 

I'm using the same image, and the same map. 

 

According to the help documentation, 'the addDataFromPath method... places each layer based on layer weight rules and geometry type' but this does not seem to be happening.  Is this a bug?

Outcomes