Event-based synchronization between map control and custom layer in ArcGIS Server

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.