Hi Everyone,
I have an issue with Scene Layer queryFeatures() method. This method throws scenelayer:query-not-available error when I try to query Scene Layer features. I understand from documentation, it may happens if there is no companion Feature layer for Scene Layer. But Verified my arcgis portal and have all 3 files with same name (Scene Layer, Feaure Layer & Service definition).
So my question is how companion Feature layer is different from Feature Layer linked to Scene Layer? Any comments. Apreciate you views. If anyone sucessfully queried scene layer, plz reply with code snipet. Thanks in Advance.
Great Day
Sree
Sree,
Have you seen this sample?
Query a SceneLayer's linked FeatureLayer | ArcGIS API for JavaScript 4.1
Hi Robert,
Thanks for the sample, I have noticed a workaround in the sample. But curious to know what does it mean 'The Scene Service does not have a companion FeatureLayer' is there any way to configure companion FeatureLayer? Appreciate any views on this. Thanks
Great Day
Sree
Hi Sree,
If you publish a layer in Pro as a web scene layer then the layer automatically gets a companion Feature Layer. This seems to be your case. You can check if querying works with the getFieldUsageInfo(field) method.
The sample provides a workaround to this, in case you didn't publish the scene layer in Pro, but exported it to slpk. Then you would do the query on a feature layer that contains information about the scene layer data. The two layers should be linked by a common column, like ObjectID.
Hope this helps,
Raluca
The release layer is published successfully and also has Features, but scenelayer:query-not-available appears when using queryFeatures(), Because the ObjectID does not correspond to the ?