[OpenLayers-Users] Single vector layer

Eric Lemoine eric.c2c at gmail.com
Fri Jan 2 06:19:25 EST 2009


On Fri, Jan 2, 2009 at 9:55 AM, Lehtonen, Mika <mika at digikartta.net> wrote:
> Hi,
>
> is it possible to consruct a map with only one layer, which is vector
> layer? I noticed that vector layer has a property 'isBaseLayer'. However
> trying to consruct a map having a single and only layer as vector layer
> fails. I get some this.baseLayer is null warnings. If I add e.g. google
> layer, vector layer works. OL is 2.7.

Have you tried setting isBaseLayer to true in the vector layer options?
--
Eric



More information about the Users mailing list