[OpenLayers-Dev] GML Layers is no more visible in vector sandbox revision 2823

Erik Uzureau erik.uzureau at metacarta.com
Tue Mar 20 11:31:39 EDT 2007


Christine,
You should update your libraries to the actual version on
http://svn.openlayers.org/trunk/openlayers

We have merged the vector code into trunk last week :-)
Erik

On 3/20/07, Christine Spietz <spietz at fh-bingen.de> wrote:
> Hi,
>
> I updated my OpenLayers libraries to the actual version on
> http://svn.openlayers.org/sandbox/vector/. Now my GML-layers (working in
> previous versions) do not work any more.
>
> I set a variable url with the WFS-request of my WFS which provides a
> FeatureCollection and createt my GML-layer:
>
> >----------------------------------->CODE>----------------------------------->
> var myGMLLayer= new OpenLayers.Layer.GML("myGMLLayer",url,
> {style: new OpenLayers.Style({
>     strokeColor: "rgb(128,0,255)",
>     strokeWidth: 3,
>     strokeOpacity: 0.5,
>     fillColor: "rgb(100,100,255)",
>     fillOpacity: 0.1,
>     hoverStrokeColor: "red"
> })}
> );
>
> map.addLayer(myGMLLayer);
> >----------------------------------->END OF
> >CODE>----------------------------------->
>
> This worked in previos versions of OpenLayers vector-sandbox-lib.
>
> The GML-examples I found on
> - http://dev.openlayers.org/sandbox/vector/examples/ GML.html and
> GMLTasmania.html seem also not to work. They also use the same procedure,
> for example generating a GML-layer with
> >----------------------------------->CODE>----------------------------------->
> l1 = new OpenLayers.Layer.GML("Tasmania
> Cities","tasmania/TasmaniaCities.xml", {style: new
> OpenLayers.Style({strokeColor: "green"})});
> >----------------------------------->END OF
> >CODE>----------------------------------->
>
> Can anybody tell me how to handle GML-Layers/ make them visible again.
>
> Thank you for help!!!!
>
>
> Christine
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



More information about the Dev mailing list