AnsweredAssumed Answered

Search Widget with Polygon FeatureLayer - WAB 2.1

Question asked by PrillLake on Aug 2, 2016
Latest reply on Aug 5, 2016 by PrillLake

I'm creating a custom application using WAB 2.1.  I'm using the standard Search widget (version 2.1), and have added some search sources using a polygon Feature Layer in my webmap.    When I attempt to search on these items I am getting the following error:

 

TypeError:  Unable to draw graphic (null): features[0].geometry.getCenter is not a function(…)

 

Anyone else have this issue?  The search still works, but it zooms very close on the feature (rather than zooming to it's extent) and  the progress circle in the lower right of the app spins infinitely.

 

BTW, I added another search source using a Point feature layer; this works and does not have the same problem as with the polygon.

Outcomes