Hi and Thanks for the replay. I tryed but it didn't work..... the code is: var urlObj = "myurl" var features = new OpenLayers.Layer.GML("GeoRSS", urlObj, {format: OpenLayers.Format.GeoRSS}); vectors.addFeatures(features); var str = parser.write(features); str = str.replace(/,/g, ', '); document.getElementById('output').value = str;
I am not able to see how OpenLayers reads my "features" The error is on /Format/GeoRSS.js: geometry has no properties if (geometry.CLASS_NAME == "OpenLayers.Geometry.Polygon") {....... Christopher Schmidt ha scritto: > On Fri, Jul 11, 2008 at 12:50:32PM +0200, Fabio D'Ovidio wrote: > >> Hi! >> I know I can read Georss from url like in the examples using Layer.GeoRSS. >> Now I am using OpenLayers.Format.GeoRSS because I need to insert GML in >> the RSS envelop returned from GeoServer as WFS 1.0.0 request >> Now, thi is my code: >> > > Try this instead. > var l = new OpenLayers.Layer.GML("GeoRSS", "http://myurl/", {format: > OpenLayers.Format.GeoRSS}); > map.addLayer(l); > > Regards, > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users