Select to view content in your preferred language

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

2744
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
NatashaManzuiga
Regular Contributor
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!


GREAT!!!! Thank u so much Luke ...that fix my problem!!! I dont know either why ... 😄
0 Kudos