Customer Service | Training | Contact Us
You are here: Home > User Forums > arcgis server forums > Thread Replies

ArcGIS Server Forums

ArcGIS API for Flex forum

Can't get rid of white background   chris cummings Nov 03, 2009
Re: Can't get rid of white background   chris cummings Nov 03, 2009
Re: Can't get rid of white background   chris cummings Nov 03, 2009
Re: Can't get rid of white background   Robert Scheitlin Nov 03, 2009
Re: Can't get rid of white background   chris cummings Nov 03, 2009
Report Inappropriate Content • Top • Print • Reply    
Subject Can't get rid of white background 
Author chris cummings 
Date Nov 03, 2009 
Message When I add an ArcGISDynamicMapServiceLayer, regardless if I do it in actionscript or mxml and regardless if I add the imageTransparency property the layer has a white background.

I've tried using different mxd's published as services.

I've created new mxd's with only a single shape file that only has a single polygon with everything as the default.

I've read the api documentation for the ArcGISDynamicMapServiceLayer class multiple times now.

I'm at a total loss.

 
 
//I've tried:
//===========

var fff:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer();
fff.url="http://mtc-gisserver1/ArcGIS/rest/services/Armory_Atlas_SDE_TESTER/MapServer"
fff.visibleLayers = xc;
fff.alpha = 0.5; // the only way I can see the base layer
fff.imageTransparency = true; // doesn't make a difference if this is included or not
fff.imageFormat = "png32"; // doesn't make a difference if this is included or not 
myMap.addLayer(fff);

<!-- And this: -->

<esri:ArcGISDynamicMapServiceLayer
imageTransparency="true"
url="http://mtc-gisserver1/ArcGIS/rest/services/chris_temp2/MapServer" />
 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Can't get rid of white background 
Author chris cummings 
Date Nov 03, 2009 
Message edit: [sure would be nice if I could delete posts] 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Can't get rid of white background 
Author chris cummings 
Date Nov 03, 2009 
Message Attached is a mxd and shape file that when published has a white background (despite using imageTransparency) that I can't get rid of.

Anyone... 
  chris_temp.zip (opens in new window)
 
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Can't get rid of white background 
Author Robert Scheitlin 
Date Nov 03, 2009 
Message Chris,

I took the shapefile and your mxd and of course had to remap the source of the shapefile, but saved it as an MSD and then published that MSD and added it to a vanilla flex viewer as a livemap and all was well not problem with white background even whith the alpha set to 1. 
  Robert Scheitlin
GIS Manager
Calhoun County, Alabama 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Can't get rid of white background 
Author chris cummings 
Date Nov 03, 2009 
Message Thanks, Robert.

I don't know. I found that If I go into the mxd and ensure that Frame:
-Border
-Background and
-Drop Shadow
are all set to None, the problem goes away. Seems like imageTransparency should make that unnecessary. *Shrug*

Any ideas how to remove/hide labels? We have to leave them on in the mxd.