|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
mapnik wms postgis transparencyHello list,
I've created a wms service using mapnik with 2 layers. One is being used as the base layer (using openlayers) and the 2nd one is a switchable layer on top of that (it displays a UTM grid). The problem appears to be that the backgound of the 2nd layer (a grid) is color white instead of transparent, so it renders on top of the base layer... I know I can set the opacity of the polygon to 0, but how can I set the background of the map to transparent? Kind Regards, G _______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users |
|
|
Re: mapnik wms postgis transparencyOn Thu, 2009-10-08 at 22:31 +0200, Genis Pujol Hamelink wrote:
> I know I can set the opacity of the polygon to 0, but how can I set > the background of the map to transparent? <Map bgcolor="transparent" ... or m.background = Color('transparent') If you are using png256 format tiles then you may need to upgrade to a newer version of Mapnik or switch to png. Old Mapnik versions would lose the transparency when performing the conversion to 256 colours. Jon _______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users |
|
|
Re: mapnik wms postgis transparencyHello Genis.
I think the way the WMS spec works to request a tranparent background tile you need to set up OpenLayers to send TRANSPARENT=true as one of you getMap request parameters. This is not the way Mapnik works but how the OgcServer implementation works. Dane On Oct 8, 2009, at 1:31 PM, Genis Pujol Hamelink <genis.pujol@...> wrote: > Hello list, > > I've created a wms service using mapnik with 2 layers. > > One is being used as the base layer (using openlayers) and the 2nd > one is a switchable layer on top of that (it displays a UTM grid). > > The problem appears to be that the backgound of the 2nd layer (a > grid) is color white instead of transparent, so it renders on top of > the base layer... > > I know I can set the opacity of the polygon to 0, but how can I set > the background of the map to transparent? > > Kind Regards, > > G > _______________________________________________ > Mapnik-users mailing list > Mapnik-users@... > https://lists.berlios.de/mailman/listinfo/mapnik-users Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |