You could just use a tile layer that always returns a blank image. Something like this should work : <br><br>var vzl = new OpenLayers.Layer.TMS(<br> 'test', '<a href="http://google.com">http://google.com</a>',<br>
{<br> getURL : function(bounds){ return "<a href="http://yourserver.com/blank.gif">http://yourserver.com/blank.gif</a>"; },<br> buffer : 0,<br> isBaseLayer : true,<br>
numZoomLevels : 22,<br> transitionEffect: 'resize'<br> }<br>);<br>map.addLayers([vzl]);<br><br>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.<br>
<br>Lennox<br><br><div class="gmail_quote">On Mon, Jul 19, 2010 at 4:58 PM, Mike Purvis <span dir="ltr"><<a href="mailto:mike@uwmike.com">mike@uwmike.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,
<div><br></div><div>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.</div>
<div><br></div><div>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?</div>
<div><br></div><div>Thanks,</div><div><br></div><font color="#888888"><div>Mike</div>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>