In use ArcGIS server9.3 + vs.. net 2008 High real-time and dynamic development requirements B/S System, it is often necessary Map Controls use dynamic custom images, ArcGIS Server 9.3 Dynamic image display is not supported. To use a custom dynamic image, you must Map Control. This method enables the system to support Map The widget displays dynamic images, but the layer and Map Control refreshing is not synchronized. All online solutions are used on the page. Javascript Method Map Whether the positions of the control are consistent. Although this solution can solve the problem Map The control location refresh is not synchronized, but in Map When the operations in the control are frequent, the layers on the page have obvious jumps and latencies, and the display effect is unsatisfactory. If the cycle interval is set very short, it will increase the burden on the server.
By analyzing the problems existing in the cyclic detection solution, we can know that the cyclic detection solution is a passive method. If we can use an active method Map When a widget is operated, the layer for displaying dynamic images is hidden, after the operation is complete, call the update dynamic image layer method to solve the problem of location not synchronization and unsatisfactory display effect. When using the active method, the most important thing is the binding of events. If we bind hidden events Map Control, the effect is similar to the effect of loop, because the event is always triggered Map The control responds, so we need to bind the event to Map In the control on the previous layer, after searching for resources ArcGIS server9.3 ADF JavaScript For. net Of API Found Map Control _ Containerdiv Attribute, you can probably know that this attribute contains Map The access interface of the container. By binding events to include Map The container of the control solves the problem of non-synchronization of positions, abnormal display effect, and delay.