That's it: I replaced the piste:type keys by piste_type in the database
and it's ok now.
Is there any solution to avoid that work-around?
Yves
On 31. 12. 10 01:00, yvecai wrote:
I try to display a GML file withe the following code with no success:
var pistesLayer = new OpenLayers.Layer.Vector("Pistes", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url:"test.gml",
format: new OpenLayers.Format.GML()
}),
projection: new OpenLayers.Projection("EPSG:900913"),
});
In the file, Firebug detect an error in the XML:
...d><nordic:z_order>0</nordic:z_order><nordic:piste:type>nordic</nordic:piste:t...
...-------------------------------------------------^
Is it possible that the 'double' namespace that come from the key
piste:type causes the error ?
The GML file come from Geoserver, I just copy in a file the answer of
a small request from firebug to isolate my problem.
Yves
Full gml file (sorry, it's long): xxx
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users