Select to view content in your preferred language

How to get for an individual building from a Scene Layer

424
2
04-27-2023 06:02 AM
MBambino_ATS
New Contributor III

I am trying to get and display metadata about a buildings that are clicked on by the player.

I am able to get the layer clicked and the id of the building clicked, but from what I can find, scene layers lack the querying ability that feature layers have.

Is there a way to get data from the building (such as name, coords, etc)?

(scene layer for reference)
https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/SanFrancisco_Bldgs/SceneServer

0 Kudos
2 Replies
ZackAllen
Esri Contributor

Hi MBambino. We currently don't directly support feature layers in our plugin. In order to get related data for a specific building, I recommend using the ArcGIS Rest APIs. We have sample code for querying feature layers in one of our public samples. You can use this as a start for writing code to query your scene layer using the id you have.

Zack Allen

0 Kudos
MBambino_ATS
New Contributor III

Thanks for the reply! Would I assume, then, if the scene layer I am using has no associated feature server there is no way to get information about the building being clicked?

0 Kudos