Select to view content in your preferred language

sample flex viewer; live maps, other services won't display

2732
10
04-13-2010 12:20 PM
JoshThomas
Emerging Contributor
I'm running the sample flex viewer from IIS 5.1 (Windows XP).  The default services all load and display correctly.  I tried to connect to some services published on ArcGIS Online and had no luck.  The basemaps I add show up as a blank gray screen.  The livemaps that I turn on don't do anything at all.

I have been able to make changes to the interface using the config.xml file.  I have had no luck viewing any other services though.  Does anyone know how to fix this?  Are there any code samples you can provide me?

My group is new to web mapping.

Thanks,
Josh
Tags (2)
0 Kudos
10 Replies
MarkMenzel
Emerging Contributor
Hi,

I have had this issue as well, one of the problems I had was that my base maps were not in the same projection. Once I fixed that it was pretty much okay.

Mark
0 Kudos
TrilliumLevine
Emerging Contributor
i'm having the same exact problem - but i already ran a transformation to change my service's projection into wgs1984 with a spatial reference of 4326 so it would overlay on ESRI's map services, and still no dice.  someone else suggested that i try opening the application in firefox and using the firefox add-on httpfox to see what errors in proccessing are coming up.  i'm going to try that.  i'm also going to try displaying the service using a code sample to make sure it's not my service that's the problem.  will keep you posted with what i find.
0 Kudos
MatthewStarr
Deactivated User
I am having the exact same issue... ArcGISServer9.3.1 Flex Sample viewer 1.3.  all data from the service is wgs84.  and as a previous post indicated the live view layers do nothing.  I have my service loaded into both the live view and in the map layers
0 Kudos
LukeEvans
Emerging Contributor
I had the sample problem with all dynamic maps.  I found my problem was the proxy file being used.  We removed the proxy URL from the dynamic maps when added in MapManager and all worked fine
0 Kudos
NatashaManzuiga
Regular Contributor
I had the sample problem with all dynamic maps.  I found my problem was the proxy file being used.  We removed the proxy URL from the dynamic maps when added in MapManager and all worked fine


Hi Luke, can you better explain step by step what you did ?
Thanks so much,

Naty
0 Kudos
MatthewStarr
Deactivated User
Hi Luke, can you better explain step by step what you did ?
Thanks so much,

Naty


I think he mean he put the ip address in the url instead of server name.  I can do that an see the service in my browser, but when I put it in the xml i get a grey screen when trying to view that base map..

Cleared Flash Cache
Cleared Browser Cache
Streets and Satellite view work fine.
My full and initial extents match the �??testservice�??
Test service is wgs84.

I can view the service in the JAVA api from REST services page.

I am thinking it is the service since the others work fine.
It was Published using ArcServer 9.3.1 and created in ArcMap9.3.1sp1
And FlexSampleViewer is 1.3.

Stumped
0 Kudos
MatthewStarr
Deactivated User
OK if you r using FlexViewer1.3 you need to go to IIS and configure the site as an application

1.START/rightclick myComputer/Manage
2.expand "services and applications"
3.expand IIS "internet information services"
4. expand websites and click default website
5. Navigate to your website right click on it and choose properties.
6.in the directory tab click the create button next to application name (grayed out).
OK open a fresh browser clear flash cache clear browser cache and you should be aight.

-m*
0 Kudos
NatashaManzuiga
Regular Contributor
OK if you r using FlexViewer1.3 you need to go to IIS and configure the site as an application

1.START/rightclick myComputer/Manage
2.expand "services and applications"
3.expand IIS "internet information services"
4. expand websites and click default website
5. Navigate to your website right click on it and choose properties.
6.in the directory tab click the create button next to application name (grayed out).
OK open a fresh browser clear flash cache clear browser cache and you should be aight.

-m*


I did it before...but it still doesnt work...
:(((
0 Kudos
LukeEvans
Emerging Contributor
Hi Luke, can you better explain step by step what you did ?
Thanks so much,

Naty


In MapManager, find the code where is is adding the maps from the config file.  This is a snip from where it adds the dynamic maps

      case "dynamic":
       {
        var dynlayer:ArcGISDynamicMapServiceLayer=new ArcGISDynamicMapServiceLayer(url);
        dynlayer.id=label;
        dynlayer.name=label;
        // Remove proxy config for dynamic layers
        // dynlayer.proxyURL=configData.proxy;
        dynlayer.visible=visible;
        dynlayer.alpha=alpha;
        dynlayer.visibleLayers=new ArrayCollection(configData.configMap.visibleLayers);
        _map.addLayer(dynlayer);
        break;
       }


As you can see, we have just removed the config URL property being set on the ArcGISDynamicMapServiceLayer.  I don't know if this is a good idea but it works for us!
0 Kudos