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