[Tilecache] extension, metaTile and metaSize

Beau Gunderson beau at beaugunderson.com
Sat Mar 15 18:39:56 EDT 2008


I've used this code to set the format based on what the browser supports:

        formatHack = OpenLayers.Util.alphaHack() ? 'image/gif' :
'image/png';

        layer = new OpenLayers.Layer.WMS(
                        "Route",
                        [
                                "http://tiles.blah.org/tilecache.fcgi?",
                        ],
                        {
                                layers: 'route',
                                format: formatHack,
                                transparent: 'true'
                        },
                        {
                                isBaseLayer: false
                        }
        );


On Sat, Mar 15, 2008 at 1:44 PM, Martijn van Oosterhout <kleptog at gmail.com>
wrote:

> On Thu, Mar 13, 2008 at 8:36 PM, Pedro Mendes <mendes at gaveta.net> wrote:
> >  here´s the prob:
> >
> >  i have a wms layer (acessing geoserver) configured this way:
> >   extension=png, metaTile=true, metaSize=20,20 and size=256,256(default)
> >
> >  works great, but for known reasons (png extension) i can´t get
> transparent
> >  maps in IE6 (which is an obligation)
>
> AIUI IE does not support transparent PNGs...
>
> >  so replace config with:
> >   extension=gif, metaTile=true, metaSize=20,20 and size=256,256(default)
> >
> >  the layer is giving me outputs message like: invalid subsample x size.
> i
> >  know this message is throwned from geoserver.
>
> Can't help you here...
>
> Have a nice day,
> --
> Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080315/69e17540/attachment.html


More information about the Tilecache mailing list