A brief introduction to the basic framework of Javascript APIs

Source: Internet
Author: User

Remember that in the ArcIMSBlueviewer sample framework, all operations in the Framework are implemented based on the client, and parameters are calculated in Javascript scripts to return the results to the server to get the images we need, programmers who have rewritten Blueviewer can better grasp the basic process of webgis development and write beautiful webgis + ajax applications on this basis. This method is somewhat similar to the Javascript API of ags93, however, the latter is based on the dojo library and encapsulates basic functions in an object-oriented manner.

Theoretically, we can extend the Javascript API without limit to implement all the server functions of Ags. Currently, it provides the following basic functions:

1. display interactive maps based on your own data

2. Execute a GIS model and display the result

3. display our data on ArcGIS online basic map

4. Search for attributes or ry and display the results

5. Search for the address and display the result

Javascript APIs contain the following resource components:

Maps -- displays cache and non-cache Maps on Ags, specifying the projection Reference System

Graphics-drawing, and display of property information or geographical operations through the mouse, keyboard, and other operations

Tasks -- similar to the ADF Tasks, it provides Querying, Finding addresses, Finding attributes, Identifying features, and Geoprocessing Functions

Extensions Based on Dojo and other libraries-for example, using the Dojo widgets, google maps api, and virtual earth api

Dojo is not as widely used as EXT, and there are some controversies. However, ESRI chooses dojo as the base library of Javascript APIs for the following reasons:

1. Dojo loose license

2. the Dojo function is comprehensive. The event design mode, vector graphics support, display effect, widgets, Ajax, JSON, and so on are all required for the development of the Ags client. In addition, the Dojo function is convenient for the Mashup application.

3. Support from companies such as IBM, Sun, and AOL

The efficiency of Dojo is a problem, but I have not encountered some sample code before. I will pay special attention to it in the future. I have not extended the widget myself, and I have not encountered any problems in this regard yet, in any case, client applications and Mashup will be a mainstream development direction for WebGIS in the future. ESRI development team should carefully consider the Dojo issue, regardless of whether it is GISer or not, ESRI Ags should be more confident in the Development of Dojo after using Dojo as the basic core of the Javascript API library.

  1. Cookie details in JavaScript
  2. Usage of confirm, alert, and prompt in JavaScript
  3. JavaScript-based REST client framework
  4. How to optimize the performance of JavaScript scripts
  5. How to connect to the Access database using Javascript

Related Article

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.