Select to view content in your preferred language

Search and Enhanced Search Widget Not Zooming

3860
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
1 Solution

Accepted Solutions
MLowry
by
Frequent Contributor
Are your ObjectID or geometry (shape) fields hidden? Post a screenshot of your REST pages for the services that it won't zoom to.

View solution in original post

0 Kudos
11 Replies
MLowry
by
Frequent Contributor
Are your ObjectID or geometry (shape) fields hidden? Post a screenshot of your REST pages for the services that it won't zoom to.
0 Kudos
ToddLaQuay
Regular Contributor
Both my ObjectID and Shape fields were hidden.  Turned them on and republished etc and now they zoom.  Thank you for the quick response!  Sure wish i would have found it noted somewhere that those were required to be visible.
0 Kudos
DaveKirkley
Occasional Contributor
My problem is the zoomscale does not seem to work

<zoomscale>5000</zoomscale>
   <forcescale>true</forcescale>

Using a Query Widget
But the Zoon always takes you in tight to the polygon
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Dave,

   The zoomScale will only take you to the closest LOD (Level of Display) if you are use cached basemaps.

Don't forget to click the top arrow (promote).
Follow the steps as shown in the below graphic:

0 Kudos
Shingo-Ikeda
Regular Contributor
Hello Robert.

Thanks for the great widget. I have installed your latest 3.0 eSearch widget, but I noticed that segment layers get clipped to result extent (or display extent) when any type of search is applied and zoomed. It only seem to happen to only segment layers and not to point nor polygon layers. When I have multiple segment layers in the operational layers, they all get clipped and it won't get redrawn. Actually data does not get clipped, it just become invisible - therefore I can still query.

Have you seen this effect before?

Thanks,

Shingo
Shingo Ikeda
Geospatial Data Scientist/Developer - Geographical Information Platform
Global Power Generation - Digital Satellite USA and Canada
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shingo,

   I have not seen that before. I am using polylines in my live sample site and do not see that behavior either.
0 Kudos
Shingo-Ikeda
Regular Contributor
Hi Robert,

Thanks for your reply. For some reasons, it was clipping the feature geometries by the intersected resulting geometry and not refreshed. I had to go through layers and refresh layers as shown below:

MapUtil.forEachMapLayer(map, function(layer:Layer):void
{
    layer.refresh();
})


I added above refresh function to clear() as well as new widgetclosehandler (dispatched when widget gets removed) in a mean time to fix the issue I was experiencing.

Shingo
Shingo Ikeda
Geospatial Data Scientist/Developer - Geographical Information Platform
Global Power Generation - Digital Satellite USA and Canada
0 Kudos
DaveKirkley
Occasional Contributor
Robert,

Using a Dynamic Basemap.
Zoom works on your enhanced search (great work by the way!)
But the Query I've set up... no luck
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Dave,

   If you still need help with the query than post what you are trying to use.
0 Kudos