Select to view content in your preferred language

Clustering and Grouped Layers

613
1
08-12-2010 03:43 PM
StephenLead
Honored Contributor
I've got a layer called Accommodation which shows Hotels, Campsites, Caravan Parks and Hostels. I've set a clusterer on this layer, and it works fine.

Is it possible to create a Grouped Layer, whereby users have the option to switch the various accommodation types on/off, but still have the clustering?

It should look something like this, where the * represents a checkbox:

* Accommodation
__  * Hotels
__  * Campsites
__  * Caravan Parks
__  * Hostels

The clustering should apply at the Accommodation level. Is this possible?

At the moment the REST endpoint is Accommodation but I can create separate ArcMap layers for the various types if necessary.

Thanks,
Steve
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
The clustering is tied to one feature layer. So in your case, one REST end point for Accomodation looks good.


__ * Hotels
__ * Campsites
__ * Caravan Parks
__ * Hostels

Then if you want to manage the visibility by subtype, you will have to do it by code by removing or changing the symbology of the features.
0 Kudos