On Mon, May 28, 2007 at 04:22:30PM +0200, Husson Florian wrote: > Thanks for this configuration Pierre, it works for me too ! > > However, the GML result of this getFeature is a Point, but the picture on the > map is not a point but a marker. Can I modify this ? > > > And, for this WFS url : > http://swing.brgm.fr/cgi-bin/limitesadm?service=wfs&version=1.0.0&request=getfeature&typename=departments&maxFeatures=1 > > the result is a Polygon, but nothing is drawing on the map whith this > configuration : > > layer2 = new OpenLayers.Layer.WFS( "departm", > "http://swing.brgm.fr/cgi-bin/limitesadm", > {typename: 'departments', maxfeatures: 1}, > { featureClass: OpenLayers.Feature.WFS}); > map.addLayer(layer2);
Polygons can't be drawn with the 'featureClass' option. Drop the featureClass. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
