I am running 3.1.299, so this may be a wasted set of questions. But I want to describe what I'm seeing and find out if I'm doing something wrong, or the application is behaving correctly for the version it is, or will behave the same way in 4.0.
I'm using single threaded mode, but have written all of our code to use overlay locking.
My scenario is:
- Instantiate an overlay, and load it with a custom layer where I implement Draw Core.
- Add the overlay to the map.
- Zoom to the extent of the layer, and refresh the map.
All is well. I have a breakpoint in the layer's draw core, and it gets hi. Now:
- Instantiate a new overlay with no layer, and add it to the map.
- Refresh the map.
- Lock the overlay.
- Insert a shapefile feature layer into the overlay.
- Unlock the overlay.
- Refresh the map, passing in the newly added overlay as the parameter on the Refresh statement.
DrawCore on the orginal layer is still being called, even though I explicitly called the Refresh with the second overlay as a parameter. I was under the impression that if I called Refresh with a specific overlay, that only that overlay would be drawn, unless that map extent had changed, etc.
Thanks.