Integration of AGS javascript API Based on extjs Library 1

Source: Internet
Author: User

As you know, the AGS javascript API is developed based on dojo, and one of the reasons for choosing dojo is that AGS JS
API developers think this library has the best compatibility. I have never studied dojo, but after seeing extjs, I am not very interested in Dojo. Many people think
Extjs is not good. Of course, this is simply a matter of benevolence and wisdom.

 

I like to write the UI in extjs, but the map must use AGS Js.
API to write, how to make the two mashup? In the past, ESRI Cao Xin introduced me to a devsummit09 example. The things in it were quite inspired. Later in ESRI
He also saw what he wrote with extjs at the National Exhibition on the 09, and thought it was very good. However, he had received technical resistance on it and turned to openlayers to implement the map function. Recent
I picked up things again. Combined with some examples on the internet, I think it should be quite simple.

 

My integration is divided into two steps: one is to implement the effect of the ags js api in the extjs framework; the other is to integrateCodeConvert to an ext extension component. Compared with prototype first, and then refactoring. After several days of pondering, the general problem is basically fixed, and the effect is very good.

The following figure shows the results:

 

Interface

 

Drawing

 

 

You can set the color and transparency of the drawing.

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.