issue with SearchWidget

2922
2
06-01-2016 08:53 PM
baohuachu3
New Contributor III

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/Feat...

0 Kudos
2 Replies
KristianEkenes
Esri Regular Contributor

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:  广东省

0 Kudos
baohuachu3
New Contributor III

For the esri/dijit/Searches source for  FeatureLayer, it only supports the version of the service 10.3 or above.

0 Kudos