[OpenLayers-Users] Empty Base Layer?
Lennox Antoine
lxnyce at gmail.com
Mon Jul 19 17:08:41 EDT 2010
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 <mike at uwmike.com> 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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100719/154af205/attachment.html
More information about the Users
mailing list