Search layers in Web Scene Application

494
2
09-11-2020 12:27 AM
DamianMilne
New Contributor II

Hi,

I have created a Web Mapping Application based on a WebScene. My WebScene has about 100 layers. If my user wants to look at a particular layer its not all that easy to find. I've grouped my layers but that only partially addresses my issue. I'm wondering if there is anyway to enable my users to easily search for and display a particular layer(s). Here is my web application: ArcGIS Web Application 

Kind regards, Damian

Tags (2)
0 Kudos
2 Replies
ManishPatel
Esri Contributor

Hi Damian,

Seems like what you might need to do is have a custom widget to add the function of filtering the layer list when the user types in a name. I have tried to create this sample web application for your reference. Please see the link https://codepen.io/patelmanya/full/PoNeZWe.

The code you can refer to in the CodePen is available at:https://codepen.io/patelmanya/pen/PoNeZWe 

Hope this helps.

Thanks,

Manish

Cheers,
Manish
0 Kudos
DamianMilne
New Contributor II

Hi Manish,

Thank you for your response, and very much appreciate going to the effort of writing that code. I'm sure it will be handy for others but unfortunately I don't have the skill set to implement your solution. Hoping someone can suggest an alternative or workaround.

Regards, Damian