Select to view content in your preferred language

Clustering with Dynamic Layers

2344
2
11-01-2013 10:39 AM
YaminNoor
Deactivated User
Hi
I wanted to see if I can use clustering for my dynamic layers. I am using this statement to load 10 sublayers under Data Layers category. All I want is to use clustering for some specific layers using layer ids.

<layer label="Data Layers" type="dynamic" visible="true" alpha="1" url="http://url_here/MapServer"/> 

I am guessing I have to use sublayer & clustering tag in combination. But how? If anyone knows, it will be a great help.

Thanks
Yamin
Tags (2)
0 Kudos
2 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Yamin,

I am not really sure where the Dynmaic Layers support for clustering. But you can start read the sample code:
https://developers.arcgis.com/en/flex/sample-code/clustering.htm

By changing the tag <esri:FeatureLayer> to <esri: DynamicLayer>. I would suggest start from one layer then move to 2 and more sublayers under Data Layers catgory.

For Sublayers information you can reference this thread:
http://forums.arcgis.com/threads/66987-How-do-you-dynamically-define-sublayers

Hope these tips can help. Good Luck!
0 Kudos
AnthonyGiles
Honored Contributor
Yamin,

Clustering can be applied only to feature and GeoRSS layers not dynamic layers. The layer tag you posted up looks like you are referring to the flex viewer not the API. Help on clustering in the viewer can be found here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Clustering/01m30000004z000000/

Regards

Anthony
0 Kudos