Feature Layers - clustering
I'm a bit confused about the documentation around ArcGIS Server Feature Layers. For Feature Layer from Map Service it says:
* Feature layers from map services can support all the client-side functionality except editing.
But then under clustering it has this:
* Clustering works for feature layers from feature services only. It does not work for feature layers from map services or for other types of service or layer.
I'm not sure if I'm missing something as I've got clustering to work for feature layers from map services but I'm not sure if I'm setting this up using the best method.
Thanks,
Peter.
0
-
I've used clustering on feature layers from map services too. What I haven't tested is whether or not the clustering is respected when printing - honestly don't remember if that works even with feature services. 0 -
Hi Folks,
When the documentation was written, we assumed that we needed to use the objectIdFieldName response attribute that is included with a FeatureServer query response. It's not included when we query a MapServer feature layer. Thus, it was assumed that clustering would only work with FeatureServer layers.
However, in the final version we found other ways to represent the clusters that did not rely on the objectIdFieldName in the response; however, the documentation was not updated to suit.
I will file a bug in our system to update the documentation. If you like, you can also use the feedback link on the upper-right of any documentation page to provide feedback on anything that is confusing or conflicting with other docs.
Printing should work just fine; however, due to variances between the scale and extent of the browser map and the printed map, the clusters may get re-rendered when you print and thus would appear different on the printed map.
Regards,
-Malcolm0 -
Sorry please can someone clarify here? The tab for "Feature Clustering" isn't present under the MapServer layer. So you still need to add the FeatureServer layer to the Site and enable it under the FeatureServer layer in "Map Services"? So the documentation therefore is correct?
Unless there is something I am missing?0 -
Thanks Malcolm, I've added feedback to the documentation page.
Paul, for this I used the Add Map Service button and then selected an individual layer in a published Map Service. I then used the 'Add as Feature Layer' button and then when you select it from the list of map servies you'll see the tab for Feature Clustering. This meant I didn't have to publish the service as a Feature Service.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer