[Geomoose-users] TRANSPARENCY PROBLEM
Dan Little
danlittle at yahoo.com
Mon Nov 17 14:22:40 EST 2008
I'm going to have to be quick with this one 'cuz I'm sorta busy today.
1) You'll have better results with GIF across different browsers.
2) The MAP needs TRANSPARENT set to ON
3) Set the background color to white.
4) Setting transparency to "20" inside the layer will cause undesirable results in GeoMOOSE as the default transparency is set in the <map> tag's opacity attribute.
-Duck
MAP
NAME 'School_boundary'
SIZE 800 650
STATUS ON
EXTENT 347683.125124 1652890.274125 458837.845673 1759026.124282
UNITS feet
#Duck Changes
TRANSPARENT ON
IMAGECOLOR 255 255 255
FONTSET '../fonts/fonts.list'
SYMBOLSET '../symbols/symbol.sym'
OUTPUTFORMAT
NAME 'png'
DRIVER GD/PNG
IMAGEMODE RGBA
EXTENSION "png"
FORMATOPTION "FULL_RESOLUTION=TRUE"
FORMATOPTION "INTERLACE=OFF"
TRANSPARENT ON
END #end outputformat
IMAGETYPE GIF
QUERYMAP
STATUS ON
STYLE SELECTED
END
WEB
IMAGEURL "/ms4w/tmp/ms_tmp/"
IMAGEPATH "/ms4w/tmp/ms_tmp/"
END
LEGEND
STATUS ON
END
LAYER
NAME 'School_district'
TYPE POLYGON
DATA '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp'
METADATA
'wms_title' 'school_boundary'
END
STATUS DEFAULT
#TRANSPARENCY 20
#MAXSCALE 2000000
LABELITEM 'NAME'
CLASS
NAME 'esn_boundary'
STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 0 255 170
COLOR 224 255 255
END
LABEL
TYPE TRUETYPE
FONT arial
SIZE 8
COLOR 233 122 100
ANGLE 0
POSITION CC
MINDISTANCE 250
BUFFER 1
WRAP " "
END
END
END
END
________________________________
From: John Kummun <boache578 at yahoo.com>
To: geomoose-users at lists.sourceforge.net
Sent: Monday, November 17, 2008 9:58:38 AM
Subject: [Geomoose-users] TRANSPARENCY PROBLEM
Hi guys,
I need suggestions for the following problems:
I want to put transparency on polygon layer so that aerial photo could be seen below it. I have tried TRANSPARECY and OPACITY but i only get faded not transparent layer. My imagetype is PNG. Here is the mapfile
MAP
NAME 'School_boundary'
SIZE 800 650
STATUS ON
EXTENT 347683.125124 1652890.274125 458837.845673 1759026.124282
UNITS feet
FONTSET '../fonts/fonts.list'
SYMBOLSET '../symbols/symbol.sym'
OUTPUTFORMAT
NAME 'png'
DRIVER GD/PNG
IMAGEMODE RGBA
EXTENSION "png"
FORMATOPTION "FULL_RESOLUTION=TRUE"
FORMATOPTION "INTERLACE=OFF"
TRANSPARENT ON
END #end outputformat
#IMAGETYPE PNG
QUERYMAP
STATUS ON
STYLE SELECTED
END
WEB
IMAGEURL "/ms4w/tmp/ms_tmp/"
IMAGEPATH "/ms4w/tmp/ms_tmp/"
END
LEGEND
STATUS ON
END
LAYER
NAME 'School_district'
TYPE POLYGON
DATA '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp'
METADATA
'wms_title' 'school_boundary'
END
STATUS DEFAULT
TRANSPARENCY 20
#MAXSCALE 2000000
LABELITEM 'NAME'
CLASS
NAME 'esn_boundary'
STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 0 255 170
COLOR 224 255 255
END
LABEL
TYPE TRUETYPE
FONT arial
SIZE 8
COLOR 233 122 100
ANGLE 0
POSITION CC
MINDISTANCE 250
BUFFER 1
WRAP " "
END
END
END
END
Thanks
John
Indiana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20081117/24ce20bd/attachment.html
More information about the Geomoose-users
mailing list