I downloaded the ArcGIS Viewer for Flex 2.1 and have it up and running. However, I am unable to display layers/services from our ArcGIS Server 9.3. The label shows up under the More tab, just not on the map. In the config.xml I added this code:
I have a feeling it is a projection issue (my data is in State Plane Feet) , however, I have been reading that this application should re-project layers on the fly if they are dynamic. Any help would be greatly appreciated.
Thanks Robert! I had read that somewhere and put the crossdomain.xml in the root on my machine (localhost), but you are saying that it needs to reside on the server itself? I will give that a try and see if it works.
I put the crossdomain.xml at the server root and still no luck. I am wondering if it has something to do with the services on our 9.3 server. I was able to get our layers to appear with the old 1.3 sample viewer, just no luck with the new one (2.1). Do the layers have to be set-up as dynamic if they are in a different projection than the map? Are there differences between the 1.3 and 2.1 that I am missing?
Yes if your mapservices are in a different projection than the map they have to be dynamic. The quality and responsiveness of a map that has multiple map services that require re-projection is going to be pretty slow. It is always best to reproject your data to be in the same WKID as the base maps you are using. There are some changes to the 2.1 Flexviewer that could be affecting you. Maybe you should post your config.xml.
<?xml version="1.0" ?> <!-- //////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2010 ESRI // // All rights reserved under the copyright laws of the United States. // You may freely redistribute and use this software, with or // without modification, provided you include the original copyright // and use restrictions. See use restrictions in the file: // <install location>/License.txt // // Read mode about ArcGIS Viewer for Flex 2.1 - http://links.esri.com/flexviewer // //////////////////////////////////////////////////////////////////////////////// --> <configuration> <title>Salt Lake County Surveyor's Office</title> <subtitle>Interactive GIS Map</subtitle> <logo>assets/images/logo.png</logo> <stylecolors>0xFFFFFF,0x963524,0x101010,0x00789,0xFFD700</stylecolors> <!-- Black Gold --> <stylealpha>0.8</stylealpha>
But using the Flash Builder debugger I was able to load your config.xml and it worked fine. You do not have anything from your map service displayed even once you check the map service as visible due to scale dependencies that you have set but once I zoom in once it displays fine.