I have a curious question. I have noticed that the first layer added will be the bottom-most layer in a map which does make sense. My question relates to how other controls and objects interact with this order. For instance, a tree view's first object is displayed top most. If I want to maintain my layers in a tree view and dynamically add layers to the map, they will be in opposite order.
I would like to always have the top most layer in the map be the top most object in the tree view so that it is intuitive to the user. I'm pretty sure this is something that many people have run into so I am interested in what some user's solutions have been.
While this particular circumstance relates to my Desktop Application, with the Web Application I got around this by binding a Checkbox list to a SQL statement and reversed the order depending on whether I was adding the layers to the map control or binding to the Checkbox list. This was kind of hacky and I thought others might have a better approach.
Thanks.