I have loaded the eSearch widget in my webapp builder project mainly for the ability to pass the search parameter of a specific parcel to the application. Overall the widget works great. It queries the parcel number in the URL, finds it, and highlights it, but it doesn't zoom to it automatically. I have to click on the result or ZoomAll to get the app to zoom to the parcel. Is there a setting I am missing somewhere to make it query and then zoom to selected?
Thanks,
Josie
Josie,
You can see that the Live Preview Site does this just fine: Live Preview Site
Do you have "Auto zoom to search results" checked in the widgets config UI?
Yes, I saw the live preview site, and thought that functionality was really cool. Mine will find the results and then just sit there. And, yes, I have the Auto zoom to search results checked.
Josie,
Strange... Does your browsers web console list any errors?
When I load the app with a ?esearch=110623003029001000 at the end of my url and then I Inspect Element (within Chrome) these are the issues I see that are called out.
jimu.js init...
init.js:154 The XMLHttpRequest progress event property 'position' is deprecated. Please use 'loaded' instead.
ConfigManager.js:112 Load Config: 671.629ms
ConfigManager.js:140 Switch to desktop mode.
essentiallygisdata.com/:1 XMLHttpRequest cannot load http://countyserver.gov/arcgis/rest/info?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myserver.com:3350' is therefore not allowed access.
:3350/webappbuilder/apps/2/jimu.js/MapManager.js:207 Load Map: 565.177ms
Josie,
OK I don't see any issues there.
No, should I?
No just narrowing things down.
Josie,
No, the search is complete within a few seconds. At this time, no it isn't public for testing, unfortunately. I'll see if I can get it pushed out live and I'll send you the link to test.