[OpenLayers-Users] GIS Layer as baselayer?

Christopher Schmidt crschmidt at metacarta.com
Wed Jun 6 19:18:55 EDT 2007


On Wed, Jun 06, 2007 at 05:12:45PM -0500, Jeff Dege wrote:
> I'm trying to draw a very simple map from a GML file.  One layer, three
> features.  About as simple as it gets.
> 
> And it's not working, because Layer.GML is derived from Layer.Vector,
> and Vector cannot be a baselayer.

It can be a base layer, actually, it just isn't by default.

http://crschmidt.net/~crschmidt/vector-features.html

{'isBaseLayer':true} as an option on the layer should do it.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list