How to pick Layer feature from when i use ArcGisMapServerImageryProvider

1. A concise explanation of the problem you're experiencing.
I published an Arcgis Map Server and then i loaded it in my Cesium project, it worked.
but i splice the layer into 11 pieces, how could i pick them by mouse over?
i used 'sceneMode:Cesium.SceneMode.SCENE2D',

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
this is the address i published my arcgis server
thank you for help!!!

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
To pick imagery layer's feature my mouse click, get the id and geometry infomation

4. The Cesium version you're using, your operating system and browser.

I see “view in ArcGIS javascript” links in the link you have but not the Cesium viewer. Do you have a direct link to the Cesium one? It would also help to share a code snippet of how you’re adding it in CesiumJS.

If you’re using ArcGisMapServerImageryProvider you should be able to use the pickFeatures function on mouse click:

Let me know if that helps!

I’d love to hear what kind of project you’re working on with this? Hearing what people do with CesiumJS helps us improve our future direction.

1 Like

Thank you for your help, i soluted the problem by viewer.imageryLayers.pickImageryLayerFeatures(ray, viewer.scene);
and i get the feature that i need.

Our team using Cesium to build a project server for utility tunnel

1 Like