Select to view content in your preferred language

Search layer

170
3
07-25-2025 06:09 PM
Labels (1)
lilliamgomez
New Contributor

I want to create a map which I can search through a specific layer I have, but when I want to add the layer it doesnt display and I can configure it. In 2022 I create a map which I could do that and I opened it in 2025 and it still works. Thanks for your answers.

0 Kudos
3 Replies
CodyPatterson
MVP Regular Contributor

Hey @lilliamgomez 

When you say search through the layer, do you mean using the Map Viewer search function, or through the table itself? If it's the table itself, it's easiest to use a feature layer, if you're wanting to search through Map Viewer, I would make sure that the settings on the map itself are setup to let you query the fields.

Cody

0 Kudos
lilliamgomez
New Contributor

I have a layer I add to the map through the Map Viewer, I am creating an application with this map, in this application I want to add the layer so I can set this to be the search for my published map like the origin, but when I set the origin the layer doesn’t appear, I just can add the ArcGIS World Geocoding Service. 

I am using a public account.

0 Kudos
DebapriyaPaul
Esri Contributor

Hi @lilliamgomez, to enable searching by layer in a Web map in Map Viewer or any application consuming the map, we would need to first configure Search by Layer under the Web map settings. We can find this configuration on the item details page of the Web Map (as shown in the image below). 

DebapriyaPaul_0-1753720539238.png

Once configured and saved, the Web map will list the Layer name in the Search drop-down menu. 

DebapriyaPaul_1-1753720747181.png

Configure feature and table search for maps: https://doc.arcgis.com/en/arcgis-online/create-maps/configure-feature-search.htm 

Do we already have this configured for the Web map you are opening in Map Viewer? 

Also, Search by layer in a Web map can be configured on Hosted feature layers and ArcGIS Server feature and map service layers with Query enabled. As you are working with a Public account, what type of layer are you adding to the Web map? 

0 Kudos