When I use esri/dijit/Search on my Feature layer it returns nothing.
I use the same code as the link only replace the layer url and fields for search:
Search with customization | ArcGIS API for JavaScript
I tried another layer on arcgis online and its "name" field , the search returns nothing.
The layer url is :
http://services1.arcgis.com/EYwUC8SxXDiz08ND/arcgis/rest/services/China%20income%20per%20person/FeatureServer/0
For the esri/dijit/Searches source for FeatureLayer, it only supports the version of the service 10.3 or above.
It seemed to work ok for me. See this test app using the same url - JS Bin - Collaborative JavaScript Debugging
Paste the following into the Search box: 广东省
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.