Display clutter for ArcGIS JavaScript + world map API

Source: Internet
Author: User

Source: ArcGIS JavaScript + world map API display clutter

Exception Description:

(1) ArcGIS JavaScript calls the world map Wmts service, which has this chaotic effect, loading incomplete.

(2) Yesterday was a request for a tile, and the Google browser showed that the request failed. There was a problem with the wireless network, wired, or failed requests. Thought it was someone else's problem, in a few days should be good, so also didn't mind

(3) Today, a debug found all the requests can be normal response, but the map is still chaotic

Possible problem guessing:

(1) The Problem of heaven and Earth map Wmts service

(2) The problem with the coordinate system, possibly the confusion of the coordinate system, ArcGIS JavaScript requested the wrong tile row/column

(3) The code writes the Unknown brain code, the ArcGIS JavaScript class library, does not request tiles to the WMTS service

The Tangled Way:

(1) The first possibility, test the other days of the map site, including the official website, previously written by the site, others are good

(2) The second possibility, the spatialreference of the map object is viewed during debugging, and the wkid:4326 is displayed, consistent with the relevant definitions in the world map.

(3) The third possibility is to carefully check the code of the ArcGIS JavaScript loading class library, adding the code that works in the previous project multiple times, or the same confusion

(4) The third possibility is that the question may appear in the map initialization code, re-write this code, or this way

(4) The third possibility: carefully record the WMTS service's row and column numbers, and arrange, and find that the sent row and column requests are correct, and no less.

The requested picture is arranged and can be correctly spelled into a map. However, the map loaded in the browser is confusing with the normal map, and the map fragments loaded in the browser cannot be spelled together.

Time consuming: More than half a day, not happy

Cause of the problem:

Long tangled, found that the original class library reference is wrong .... In order to debug another brain-stump problem, the code references a class library that others can run correctly. After the problem was solved, this forgot to change back, and it turned out to be the problem.

<%--<script type= "Text/javascript" src= "Http://xx.xx.xx.xx::48071/arcgis_js_api/library/3.15/3.15/init.js" ></script>--%>
<script src= "Http://xx.xx.xx.xx:802/arcgis_js_api/3.8/3.8/init.js" ></script>

Why do you cite the wrong class library will appear this problem, the reason is not to delve into, or to seize the work

There have been occasional similar problems, and many times it has been found that if the version of the class library and ArcGIS CSS is inconsistent, this behavior occurs

Conclusion: Therefore, the brain can not be cured

Display clutter for ArcGIS JavaScript + world map API

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.