Select to view content in your preferred language

ArcGISDynamicMapServiceLayer problem

394
0
03-13-2014 08:30 AM
GennadyOster
Deactivated User
Hi !

I'm using ArcGISDynamicMapServiceLayer (API v.2.4) pointing to the Map service containing 40+ layers. Some of these layers defined visible in the MXD, others - not. I need to show selected features from one of layers.
So I do the following:
    layerDefs[layerID] = expression;
    designLand.visibleLayers = new ArrayCollection([layerID]);
    designLand.layerDefinitions = layerDefs;

    designLand.dpi = 96;
    designLand.imageFormat = "png24";
    designLand.imageTransparency = true;
    designLand.disableClientCaching = true;
    
    designLand.visible = true;
    designLand.alpha = 0.5;

It works fine in the development environment, and I can see in the Fiddler the correct request for export .
But when the swf is uploaded onto the production server, this request is issued wrong: instead of setting layers=show:layerID (show:37 in my case), it is set to the list of all layers, defined as visible in the MXD.

The only difference between two environments: in the dev environment I'm using proxy to access the production services.

What may be wrong ?  What should I do to isolate the problem ?

Any help will be highly appreciated.

Thanks in advance.

Regards,
Gennady
Tags (2)
0 Kudos
0 Replies