About the ArcGIS Map Service point Clustering (multipoint cluster display)

Source: Internet
Author: User

In the online search, find two, but there is a difference between the first hand can try.

There is an example of point clustering in the sample code of ArcGIS API for JavaScript. If the URL of 3.18 is https://developers.arcgis.com/javascript/3/jssamples/layers_point_clustering.html

First of all, the first thing to say about ArcGIS, the correct is to download the corresponding zip, the folder will have a corresponding Extras folder, put it in the API folder, such as C:\inetpub\wwwroot\arcgis_js_api\library\3.17\3.17 \extras

You can see the initialization in index.html:

And through Baidu, in GitHub can find the Esri-clusterfeaturelayer, url Https://github.com/odoe/esri-clusterfeaturelayer
The Clusterfeaturelayer is downloaded on GitHub.

You can see the initialization in polytopoint.html:

After viewing the two JS files, it is found that the biggest difference between the two is that Clusterlayer needs data,clusterfeaturelayer URL parameters, that is, the data source is different. The former is a JSON file, while the latter is a featurelayer. Although the effect may finally be consistent, but to correspond ah corresponding!

About the ArcGIS Map Service point Clustering (multipoint cluster display)

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.