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.