[Users] insert a map in a tree node
Eric Lemoine
eric.lemoine at camptocamp.com
Wed Aug 19 10:29:34 CEST 2009
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);
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list