ArcGIS API for JavaScript and NPM example run

Source: Internet
Author: User

Download the official demo,4.7, ran in the terminal, the test was successful (not packaged)

In the test to reduce the unnecessary files, using the HTTP protocol run (the file protocol is not OK)

The simplest directory is as follows:

I put the above file in a folder called demo, run the NPM command:

Because I have a cache before, so the download will be very fast, otherwise it will take a long time.

After all, the Node_modules folder volume is still quite large:

If you are not satisfied with the volume of the build that is not built, we recommend packaging it with a packaging tool (I won't show

Then use the Temporary HTTP protocol (server environment) such as go live to open index.html, the result is as follows:

The project has been shared to the bottom of the network disk connection.

Official demo address: Dot Me

I am streamlining the example: Point me

ArcGIS API for JavaScript and NPM example run

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.