How to remove white Background of Map Service mxd

4286
3
Jump to solution
06-07-2012 12:38 PM
by Anonymous User
Not applicable
One of my map layers is showing a white background.  The background on the mxd has been set to a different color but the map when displayed on the website the background is white.  I have multiple websites using these map service mxd's and only one site displays the background as white.  All my config files are identical so I don't know why the backgrounds are different between websites.  If someone has an idea please share...

Thanks,

[ATTACH=CONFIG]15043[/ATTACH]   Should be:    [ATTACH=CONFIG]15044[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Thank you for your response rzufelt  but I did load it as a PNG....  I was able to fix it.  The topo background was transparent for some odd reason it would not show the color set on the mxd.  So On basemap change, I was hiding the previously viewed map layer, Which was causing just the topo map to show and that appeared to be a white background.  I left the previously viewed map visible and just adjusted the transparency setting a little so the previously viewed map layer background would be seen when the topo map layer is selected. That fixed the issue.

View solution in original post

0 Kudos
3 Replies
karldailey
New Contributor
when you look at the service URLS in a browser, does anything pop out thats different? are they cached images, if so, have you tried deleting the cache (or at least some of the files) and redraw them?
0 Kudos
by Anonymous User
Not applicable
Original User: rzufelt

Normally this is caused by the layer either being cached in jpeg format, or loaded into the web map as jpg.

jpg does not support transparent background.  Try loading in as png or other that supports it.

�?�PNG8 �??A lossless, 8-bit color, image format that uses an indexed color palette and an alpha table. Each pixel stores a value (0�??255) that is used to look up the color in the color-palette and the transparency in the alpha table. 8-bit PNGs are similar to GIF images and enjoy the best support for transparent background by most Web browsers.
�?�PNG24 �??A lossless, three-channel image format that supports large color variations (16 million colors) and has limited support for transparency. Each pixel contains three 8-bit color channels and the file header contains the single color that represents the transparent background. The color representing the transparent background color can be set in ArcMap. Versions of Internet Explorer less than version 7 do not support this type of transparency. Caches using PNG24 are significantly larger than those using PNG8 or JPEG and will take more disk space and require greater bandwidth to serve clients.
�?�PNG32 �??A lossless, four-channel image format that supports large color variations (16 million colors) and transparency. Each pixel contains three 8-bit color channels and one 8-bit alpha channel that represents the level of transparency for each pixel. While the PNG32 format allows for partially transparent pixels in the range from 0 to 255, the ArcGIS Server cache generation tool only writes fully transparent (0) or fully opaque (255) values in the transparency channel. Caches using PNG32 are significantly larger than the other supported formats and will take more disk space and require greater bandwidth to serve clients.
�?�JPEG �??A lossy, three-channel image format that supports large color variations (16 million colors) but does not support transparency. Each pixel contains three 8-bit color channels. Caches using JPEG provide control over output quality and size.
�?�MIXED �??Creates PNG 32 anywhere that transparency is detected (in other words, anywhere that the data frame background is visible). Creates JPEG for the remaining tiles. This keeps the average file size down while providing you with a clean overlay on top of other caches.


R_
0 Kudos
by Anonymous User
Not applicable
Thank you for your response rzufelt  but I did load it as a PNG....  I was able to fix it.  The topo background was transparent for some odd reason it would not show the color set on the mxd.  So On basemap change, I was hiding the previously viewed map layer, Which was causing just the topo map to show and that appeared to be a white background.  I left the previously viewed map visible and just adjusted the transparency setting a little so the previously viewed map layer background would be seen when the topo map layer is selected. That fixed the issue.
0 Kudos