ArcGIS API for JavaScript 4.2 learning note [31] (Supplemental learning) Task class

Source: Internet
Author: User

Task is a useful thing, a class used in AJS to solve a variety of messy tasks. It has many subcategories, which are used for spatial analysis, for spatial queries, and so on.

This is a supplementary study of the first, but also the first step in learning, I will change the wording.

I'm going to use mind maps to better present logical information.

The inheritance relationship of the task class

The task class inherits from the accessor class, and it has 17 subclasses. Don't worry, picking, rarely can use more than 5 subclasses of the AJS program, unless it is a very large AJS integrated system.

The above are my familiar querytask,routetask,findtask,geoprocessor,identifytask and Locator.

Among them, according to the name and experience, may also be used frequently are:serviceareatask,closestfacilitytask,geometryservice and Imageserviceidentifytask These several, the front two and Routetask are the same network analysis.

To the supplementary study this paragraph, no longer detailed introduction code, to introduce is also extract the key code for analysis.

Familiar 6 classes that have been used

First introduce the familiar task subclass, from the "What use", "How to Instantiate", "supporting class" Three aspects of the narrative, specific usage, please check the official API and related examples:

"Querytask" "Routetask" "Findtask" "Geoprocessor" "Identifytask" "Locator" (hyperlink to my blog)

Directly to the previous large form:

Class name \ Distinguished Item

What's the use? How to Instantiate Matching classes Main method and return value type
Querytask
Routetask
Findtask
Geoprocessor
Identifytask
Locator

And then look at the other 4 classes

(not to be continued)

ArcGIS API for JavaScript 4.2 learning note [31] (Supplemental learning) Task class

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.