ArcGIS API for JavaScript publish slices, map does not show __java

Source: Internet
Author: User

According to the ArcGIS API for JavaScript4.6 The official website provides the method to attempt, the map which ArcServer10.1 publishes also can visit locally, but in the HTML, uses Tilelayer method, just cannot obtain the map. But try to use the rest URL in the official provided example to try to find the success, so guess the problem appeared in the Arcserver release problem, search and try, finally found the problem: in the release process, the default settings were selected, no caching processing, so reference processing, See http://makaidong.com/dwf07223/6667_923346.html for details. As follows:


Then rerun the HTML, found that the published map successfully displayed, the code is as follows (note: I use the local API, according to their own needs to choose the online API):

<! DOCTYPE html>  

The effect is as follows:



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.