Hello all,
I have a Web Scene depicting two 3D multipatch layers composed of the following: 2 scene layers and 2 feature layers. When attempting to query one of the scene layers with the JavaScript SDK, it returns an error that says that the SceneLayer has no associated feature layer. However, when I tried to overwrite that same scene layer (with the Replace web layer tool in ArcGIS Pro), it does not allow me to do so, returning Error 003246: Web scene layers with associated feature layers are not supported. Thus, ArcGIS Pro is telling me one thing, while the SDK (and apparently AGOL) are telling me another. These layers are all saved on ArcGIS Online, not Enterprise.
Is there a way to know if the scene layers actually have an associated feature layer? If they do not, is there a way I can manually associate these scene layers with their respective feature layer?
Solved! Go to Solution.
A quick way to tell if it has an associate feature layer is by looking at the item details page:
Second is checking if the url for the scene layer
services.arcgis.com - means the scene layer was published from a feature layer
tiles.arcgis.com - means it was published from a scene layer package.
Have you checked out the scene layer guide here: https://developers.arcgis.com/javascript/latest/working-with-scene-layers/
For the setting associate feature layer I would recommend posting that one in the JS SDK forum.
A quick way to tell if it has an associate feature layer is by looking at the item details page:
Second is checking if the url for the scene layer
services.arcgis.com - means the scene layer was published from a feature layer
tiles.arcgis.com - means it was published from a scene layer package.
Have you checked out the scene layer guide here: https://developers.arcgis.com/javascript/latest/working-with-scene-layers/
For the setting associate feature layer I would recommend posting that one in the JS SDK forum.
Hello Russ,
Thank you for your response. I have checked my scenelayer and it appears exactly as the image you posted. Evidently the scene layer has an associated feature layer but the JS SDK thinks otherwise, so I believe this might be a bug or something else is afoot.
Are you using it by url to the service or by itemid? I think if you are using the itemid API should be able to do the Service2Service check on the item id and see the relevant FL but would recommend checking in that forum just incase.
I am currently using the item ID. I will retry with the URL just to see if that changes anything. I will certainly follow up on this in the JS SDK forum.