Select to view content in your preferred language

Search and Enhanced Search Widget Not Zooming

3931
11
Jump to solution
06-01-2012 06:15 AM
ToddLaQuay
Regular Contributor
Both the Search Widget and Enhanced Search Widget will not zoom to the results of my dynamic map services.  I am using the compiled versions.  If I leave the Louisville sample data active in the configuration file it will zoom to those results when searched, but still not zoom to my services results.  Individual service capabilities include Mapping (Map Data Query checked on), Feature Access (Query Editing checked on) and KML and all combinations of turning those on and off.  zoomscale set to 5000 (tried dif numbers here too).  I'm stumped.  Never messed with the .swf file.  Even tried reloading a fress copy of the widget from the install files. Also tried in multiple flexviewer iterations.
Tags (2)
0 Kudos
11 Replies
DaveKirkley
Occasional Contributor
Robert,

Here's my code..
0 Kudos
DaveKirkley
Occasional Contributor
The work around solution perhaps: got it from this thread...

http://forums.arcgis.com/threads/23142-Zoom-to-selected?p=214055#post214055


private function clickQueryResult(event:Event):void
            {
                var queryResult:QueryResult = ItemRenderer(event.target).data as QueryResult;
                if (queryResult.geometry is Polygon){
     var pPoly:Polygon = queryResult.geometry as Polygon;
     map.extent = pPoly.extent.expand(1.75);
    }else
                   {
😉
Thank-you yet again Robert !
0 Kudos