You could just use a tile layer that always returns a blank image. Something
like this should work :

var vzl = new OpenLayers.Layer.TMS(
    'test', 'http://google.com',
    {
        getURL            : function(bounds){ return "
http://yourserver.com/blank.gif";; },
        buffer            : 0,
        isBaseLayer        : true,
        numZoomLevels    : 22,
        transitionEffect: 'resize'
    }
);
map.addLayers([vzl]);

Not sure if this falls into your hack category, but it's simply re-using an
existing layer type, so you don't have to create a new one.

Lennox

On Mon, Jul 19, 2010 at 4:58 PM, Mike Purvis <[email protected]> wrote:

> Hi,
>
> I currently have a map that uses an OpenLayers.Layer.Image as the
> baselayer, and then draws a bunch of vectors on top of it. However, the
> image in question is simple enough that I'd really rather just do away with
> it and use vectors for my background as well.
>
> What's the best way to do this? I can make a dummy XYZ layer that just uses
> blank gifs for all the tiles, but that seems like an enormous hack. What's a
> simple way of specifying some bounds and a number of zoom levels, and just
> having it be a blank baselayer?
>
> Thanks,
>
> Mike
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to