On Thursday, May 7, 2009, Felipe Alcacibar <[email protected]> wrote: > Hi, i have a local WMS base layer and a "dynamic" vector layer. To the > vector layer i > add features when i got the response of a spatial query, here is the example: > > layer.destroyFeatures(); > layer.addFeatures(OpenLayers.Format.GeoJSON.prototype.read(req.responseText));
It most probably has nothing to do with your problem but you're supposed to instantiate the format before calling read: var f = new OpenLayers.Format.GeoJSON(); f.read(...); > layer.redraw(); > > > With the SVG render that works ok, but in the vml render does not > appear graphicaly, but > in the object i have the feature, and it seems to be drawed in the VML > source but i cannot > see =/. > > I tried before using a GML layer with GeoJSON format, but i need to > handle manually the > vector layer because i need to display some message and handle an > error if the request > fails. > > I'm using Internet Explorer 7, and OpenLayers 2.7 (i try few minutes > before with the last > stable version available) > > Cheers!... > > Felipe > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev > -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
