Select to view content in your preferred language

Add Hosted Feature Layer View to map in ArcGIS JavaScript API

71
1
10 hours ago
Jeff-Reinhart
New Contributor III

Is it possible to add a Hosted Feature Layer View to a map in the ArcGIS JavaScript API?

Use case: We are hosting our data in the Portal data store and sharing the data as Hosted Feature Layers. Portal users can then create Hosted Feature Layer Views for different ways of displaying and filtering the data. We want to add these views to our custom web app built with the ArcGIS JavaScript API. This gives the Portal users the ability to change how the data is displayed without needing to change the renderer in the client-side app or in the source REST endpoint.

I have done a fair amount of reading in the docs but am not finding anything. There seems to be a whole lot of documentation about creating Hosted Feature Layer Views, but not much about what other Esri products they can actually be used in.

0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor II

Hosted layer views look the same as regular layers to a user. They have an item id and url, so you can use them in the same way you would any other layer.

0 Kudos