[OpenLayers-Users] GML vector layer as baselayer, possible or not ?

Arnd Wippermann arnd.wippermann at web.de
Wed May 8 15:39:25 PDT 2013


Hi,
 
it's not isBaselayer but isBaseLayer:true. Correct the typo and all should
be nice.
 
an example with two vector layers as baselayers:
http://gis.ibbeck.de//ginfo/apps/OLExamples/OL212/BaseLayers/vectorBaseLayer
.asp

 
Arnd
 
  _____  

Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Gaëtan
Palka
Gesendet: Dienstag, 7. Mai 2013 16:49
An: openlayers-users
Betreff: [OpenLayers-Users] GML vector layer as baselayer, possible or not ?


Hello,


for a project, I have to change the baselayer but I have 2 constraints :

- I can't use mapserver or geoserver

- I have to use specific baselayer that I have to create (roads, city
limits, ...)


Using GML data, I tried to used the isBaselayer property of .Layer.Vertor
but without success :

alea = new OpenLayers.Layer.Vector("alea", {
        isBaselayer: true,
        protocol: new OpenLayers.Protocol.HTTP({
            url: "./Data/Alea_37/alea_37_wgs84.gml", 
            format: new OpenLayers.Format.GML()
        }),
        strategies: [new OpenLayers.Strategy.Fixed()]
    });


I have found three messages with the same topic but none response.


Thanks by advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130509/80da3f3c/attachment.html>


More information about the Users mailing list