Code hint-arcgis API forjavascript

Source: Internet
Author: User

Code hints (support 3. X and 4.X)-arcgis API forjavascript 

Writing code The biggest pain is forgetting the word, of course, the greatest happiness is currently on the market most of the IDE support code code smart hints, which greatly enhance our efficiency, saving development time. However, the IDE supports native syntax by default, and how to enable the IDE to support ArcGIS API for JavaScript smart hints.

Here I would like to recommend a universe the strongest JS development ide-Webstrom

Webstorm is a JavaScript development tool owned by JetBrains Corporation. At present, the vast number of Chinese JS developers known as "web front-end development artifact", "the most powerful HTML5 editor", "the most intelligent JavaScript IDE" and so on.

Webstrom's biggest feature is the Smart code completion , the code complements all the popular libraries, such as: JQuery, YUI, Dojo, Prototype, Mootools and Bindows. The main thing is that it can also implement code intelligence hints by configuring the library's .d.ts files.

ArcGIS API .d.ts Code Smart hints can be configured in Webstrom using the ArcGIS API for JavaScript type definition file.

arcgis-js-api.d.ts: https://github.com/Esri/jsapi-resources

To configure the ArcGIS API code smart hint step in Webstrom

1. Open webstrom--"File"-"setting"-"Languages&frameworks"-"JavaScript"-"Libraries"

Open webstrom--"File"-"Settings"-"language and framework"-"JavaScript"-"Libraries"

2, add a library. Click "Add" or "added". Pick a name in name, then click "+" next to add the corresponding version of the arcgis-js-api.d.ts, click OK.

3. Because ArcGIS API for JavaScript is built based on the dojo framework, we often use the syntax in dojo, and we can add dojo code hints to facilitate development. Click "Add" again, select Dojo in the "Framework type", click "+" on the right side of the documentation URLs, this will automatically fill in the Dojo's prompt file address, click OK directly.

Test
    • Enter ESRI. ARC will automatically display the Arcgisdynamicmapservice and the installation is successful.

Code hint-arcgis API forjavascript

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.