I’m trying to write a python script that will add a tif to the table of contents of my map.
(Eventually I want to convert to tool that
- allows the user to type in the filename and then has the tool create the full path name, and
- zooms to the extent of the newly-added tif, but baby-steps for now.)
My first stumbling block is a very basic one, seemingly.
I’m trying to add tifs, not layers, to my TOC. Do I need to use MakeFeatureLayer(), before I can use AddLayer() ?