[mapserver-users] WMS on top of Google maps API

Mark Korver mwkorver at gmail.com
Thu Mar 10 14:12:03 EST 2011


You need to be using png with transparency, not jpeg.  Jpeg does not
support transparency.

format=image/png

also

&transparent=true

quick test is:
http://geoforest.org/mapserver/cgi-bin/mapserv?map=/home/mdrozdz/www/np.map&version=1.1.1&request=GetMap&Layers=National_parks_existing&Styles=default&SRS=EPSG:4326&BBOX=20.7421875,42.032974332441405,20.91796875,42.16340342422401&width=256&height=256&format=image/png&transparent=true

looks like that works..


2011/3/10 Michał Drożdż <michufoc at wp.pl>:
> Hallo list!
>
>
>
> I have a problem with mapserver WMS and google maps API
>
>
>
> http://www.examples.geostrona.pl/WMS_on_top_of_google/
>
> When I am adding WMS layer everything outside national park become white (is
> is an IMAGECOLOR in mapfile value). How to set transparency for it? I want
> to have only national park geometry displayed...
>
>
>
> here is a copy of mapfile:
>
> http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map
>
>
>
> Thanks for help!
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list