[Users] insert a map in a tree node
ivan marchesini
ivan.marchesini at gmail.com
Wed Aug 19 11:16:22 CEST 2009
Ok Eric..
this is my new code..
_________________________
listeners: {
actioncomplete: function(form, action) {
var layer = new OpenLayers.Layer.Vector("query_result",
{isBaseLayer:false, visibility:true}, {styleMap: styleMap},
{projection: new OpenLayers.Projection("EPSG:900913")});
var features = action.response.features;
console.log(action.response.features);
layer.addFeatures(features);
mappa.addLayer(layer);
}
}
_________________________
firebug answer is:
[]
so probably it is empty :-)
thanks..
Ivan
Il giorno mer, 19/08/2009 alle 10.29 +0200, Eric Lemoine ha scritto:
> 2009/8/19 ivan marchesini <ivan.marchesini at gmail.com>:
> > Hy Eric,
> >>
> >> do you have features in action.response.features? if not it means
> >> something goes wrong when parsing the WFS response, possibly because
> >> of namespace issues or something.
> >>
> >
> > It seems that action.response.features is empty but I'm not sure...
> >
> > what can I insert into
> >
> > _______________________________________
> > listeners: {
> > actioncomplete: function(form, action) {
> > var layer = new OpenLayers.Layer.Vector("query_result",
> > {isBaseLayer:false, visibility:true}, {styleMap: styleMap},
> > {projection: new OpenLayers.Projection("EPSG:900913")});
> > var features = action.response.features;
> > alert("le features sono:", formPanel.render("formPanel"));
> > layer.addFeatures(features);
> > mappa.addLayer(layer);
> > }
> > }
> > _______________________________________
> >
> >
> > to verify if "features" is empty???
>
> FireBug + console.log(action.response.features);
>
--
Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt.
Preferisco formati liberi.
Please try to avoid to send me .dwg, .doc, .xls, .ppt files.
I prefer free formats.
http://it.wikipedia.org/wiki/Formato_aperto
http://en.wikipedia.org/wiki/Open_format
Ivan Marchesini
Perugia (Italy)
Socio fondatore GFOSS "Geospatial Free and Open Source Software" http://www.gfoss.it
e-mail: marchesini at unipg.it
ivan.marchesini at gmail.com
fax (home): +39(0)5782830887
jabber: geoivan73 at jabber.org
skype: geoivan73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
firmata digitalmente
Url : http://www.geoext.org/pipermail/users/attachments/20090819/ce1d0aec/attachment.pgp
More information about the Users
mailing list