How Search Widget can work with Client Side Layer?

430
2
01-21-2020 02:42 PM
RoelGarcia
New Contributor III

Hi Friends,

I have a client side layer (NOT coming from ArcGIS Server / AGOL) and I added it to the Search widget but the searching process for that layer info does not work... 

Process:

Creating Feature Layer on the client side (NOT coming from ArcGIS Server or AGOL)

* Adding the Layer to the map

* Adding the Layer to Search Widget Source

* Populating the Layer from external API data

I am using ArcGIS JS API 3.x

Is anyone know how can I integrate a Client Side Layer to the Search Widget?

Thanks,

Roel 

Tags (1)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Roel,

   To my knowledge that is not possible out of the box.  The search dijit states, when using a featurelayer.

a 10.3 or later feature layer that supports pagination, i.e. supportsPagination = true.

That is not something a clientside featurelayer has the capability of.

Noah-Sager
Esri Regular Contributor

Robert is correct, the Search dijit requires either a geocode service or a hosted feature layer.

https://developers.arcgis.com/javascript/3/jsapi/search-amd.html#sources

https://developers.arcgis.com/javascript/3/jssamples/search_multiplesources.html

 

So I do not believe that it can work with a client-side feature layer.

0 Kudos