Hi
I have two related questions:
1)
I have build my own TOC control with some project specific information which also allows the user to control the visibility of the layes added to the StaticOverlay collection. When the user checks on or off a layer I update the text in a HiddenField that I can get hold of server side. In need of better ways I do a Map1.SetCenter(Map1.GetCenter()); to force a postback. In my MapExtentChanged event handler server side I can now enable or disable the layers, Question one is, is there a better way of forcing a refresh of the map?
2)
Doing above requires me to have an MapExtentChanged event defined. When this event is defined even though there is nothing in the event handler it causes the map to refresh in a much less nice way as if it's not there. If I dn't attach the event handler, zooming causes the zoom to happen immediately first with the magnified bitmap which is then updated with the rerendered tiles. This is a quite smooth transition. When the event handler is defined the image is first magnified, then the container is blanked out with white and first then the rerendered tiles appear. This gives a very bad clickering experience. Question two is, is there a way of having a map extent changed event and the same smooth experience as if there is no event handler defined?
Thanks in advance
Franz Thomsen