Understanding ArcGIS JavaScript viewer widget and Programming Model

Source: Internet
Author: User

An ArcGIS JavaScript viewer for JavaScript widget is a set of text files that can be shared, migrated, and deployed to a javascript view program. Generally, a programmer who wants to develop one or more widgets will close them into a dojo model, as shown in:

A widget can be a Javascript file. The above structure indicates that a complete widget has its own icons for gadgets, templates, configuration files and international support. Generally, a widget encapsulates a group of isolated independent bodies and business logic, allowing you to perform tasks.


The widget programming model contains four JavaScript classes. They are all in the com. ESRI. Solutions. jsviewer space.


_ Widget class (_ widget. JS)

This interface defines the communication method and uses the widgetmanager

Manage gadgets. Extended dijit. _ widget dijit. _ templated dijit. _ container dijit. _ contained class.


_ Basewidget dijit (_ basewidget. JS)

This is the class that all the widgets small tool classes should inherit. By extending the _ basewidget class, widgets can become deployable widgets of javascriptviewer widgetmanager.


_ Mapgraphicsmaintainer class (_ mapgraphicsmaintainer. JS)

This class is a small tool class for mixin3 to add images to a map. It defines common operations to add images and clear images on a map.


Widgetframe dijit (widgetframe. JS)

This UI class provides the UI class for all widgets of widgets in the container program in the container. This widgetframe is the dijit of a container and dynamically adjusts and minimizes its position. As a widget developer, it is not important to understand the detailed function of widgetframe. You only need to understand how the developed widget is embedded into the DOM of the webpage.

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.