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.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.
I just tested and I am not seeing this issue with polygon data set as a Feature Source in WAB 2.1 Search widget. Have you tried with multiple polygon layers?
Robert, I have tried with other polygon layers. I thought maybe it was due to the projection (State Plane), but I just tried with a polygon Feature Layer projected in Web Mercator and it has the same issue.
The layer I'm trying to use is our county's taxlots, which has about 100k features... not sure if there's a limitation with number of records..