Problem with clustering widget

4921
6
Jump to solution
11-13-2015 06:28 AM
LadislavRozkosny
New Contributor

Hi, I have a problem with new widget from Esri Japan. This is widget for Clustering (arcgis-webappbuilder-widgets-themes/widgets/Clustering at master · EsriJapan/arcgis-webappbuilder-wi... ). When I configure it in WAB (color, layer etc.), list box for select requied layer is empty. I don't know where is a problem. Thanks for advice.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Ladislav,

   When you create a WebMap on AGOL you can add layers from the web. You will get a dialog where you can specify a url to your map service. If you enter a url like:

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer

Then an ArcGISDynamicMapservice layer will be added as the map service has multiple sub layers

  - Census block points

  - Census block group

  - Detailed Counties

  - States

But if you add this url:

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0

Then a FeatureLayer will be added and this is what the clustering widget is needing.

View solution in original post

6 Replies
LadislavRozkosny
New Contributor

In edit widget is the same problem. Again no layers for check-in editable.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ladislav,

   Seems like the widget is developed to only support FeatureLayers in the webmap and not DynamicMapService layers.

LadislavRozkosny
New Contributor

Robert,

can you more describe you answer? I'm novice in this topic and i need create (or use created) widget with this functionality.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ladislav,

   When you create a WebMap on AGOL you can add layers from the web. You will get a dialog where you can specify a url to your map service. If you enter a url like:

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer

Then an ArcGISDynamicMapservice layer will be added as the map service has multiple sub layers

  - Census block points

  - Census block group

  - Detailed Counties

  - States

But if you add this url:

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0

Then a FeatureLayer will be added and this is what the clustering widget is needing.

LadislavRozkosny
New Contributor

Thanks!

Now, I can choose my layer in WAB, but when I open app clustering doesn't work. However, it's maybe for another discussion.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Glad that helped.  Don't forget to mark this thread as answered. To do this you have to open the thread (you can not see the correct answer link from inside your inbox) and then you will see the green star with correct answer link. Just click that link on the thread that answered your question.

0 Kudos