Select to view content in your preferred language

Dynamic Service Search Zoom To Feature

672
1
03-21-2012 12:47 PM
KylerDiershaw
Deactivated User
I recently downloaded the compiled Flex Viewer, as well as the API.  I developed a dynamic map service with all resources and data local to the server.  After doing basic configuration work, I am stumped by what seems to be a simple problem.  Using the stock search tool, my "Zoom To" selections seem to ignore what ever zoomscale I have set.  Polygon features are barely fit to the window, while point features are zoomed in so tight it takes multiple zoom outs to see anything.  I am guessing, related to this is the fact that my scalebar is way off although all measurements via the draw widget seem correct.  I have a local geometry service, all layers share the same state plane projection, Initial/Full extent set in Config, the correct spatial reference (2228 Cal state plane Z 4) has been set and Rest report shows all geometry types and spatial reference reporting correctly.

I note that almost all the sites out there use cached services & public basemaps which would use a different coordinate system.  Is this coded into the base app?  Any ideas how to fix the search zoom issue and the scale bar for that matter?  I have read the post on scalebar units showing incorrect info due to lattitude, but thouight my search issue was unrelated.

I note that the enhanced search widget has zoom to geometry with offsets, like what we did for pre Flex web apps.  Is this the solution I should be looking at?

Thanks in advance,
Kyler
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Kyler,

   I would have to see your main config.xml to have any idea what is going wrong.
0 Kudos