Select to view content in your preferred language

Add Hosted Feature Layer View to map in ArcGIS JavaScript API

219
3
Jump to solution
a month 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 Solution

Accepted Solutions
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.

View solution in original post

0 Kudos
3 Replies
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
Jeff-Reinhart
New Contributor III

Thanks for your response, @ReneRubalcav. I should have been more specific. My real issue is trying to access sublayers. I will start a separate question and accept your answer as the solution here.

0 Kudos