[OpenLayers-Users] Make the base layer empty or blank

Christopher Schmidt crschmidt at metacarta.com
Tue May 6 20:35:44 EDT 2008


On Wed, May 07, 2008 at 09:25:01AM +1000, Justin Madex wrote:
> Hi
> 
> Is there a way to make the base layer a blank map? The reasoning is that i
> have multiple layers, but i dont necessarily want to make any of them a base
> layer.

Just use an OpenLayers.Layer, rather than a subclass: 

http://crschmidt.net/mapping/choropleth-mercator.html
uses 
            base = new OpenLayers.Layer("",{isBaseLayer: true});


Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list