Thanks Andreas. <br><br>I have added the following part from <a href="http://dev.geoext.org/trunk/geoext/examples/tree.js">http://dev.geoext.org/trunk/geoext/examples/tree.js</a>:<br><pre>loader: new Ext.tree.TreeLoader({<br>
// applyLoader has to be set to false to not interfer with loaders<br> // of nodes further down the tree hierarchy<br> applyLoader: false,<br> uiProviders: {<br> "use_radio": LayerNodeUI<br>
}<br> }),<br></pre>But although the loading image stopped; this time no layer is loaded.<br><br>There is no error message but it does not work.<br><br>Best Regards,<br>Ozgur<br><br><div class="gmail_quote">
On Fri, Mar 5, 2010 at 1:00 PM, <span dir="ltr"><<a href="mailto:users-request@geoext.org" target="_blank">users-request@geoext.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Users mailing list submissions to<br>
<a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@geoext.org" target="_blank">users-request@geoext.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@geoext.org" target="_blank">users-owner@geoext.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: popup to show feature information (Mario Nu?ez Jimenez)<br>
2. Re: enableDD between LayerContainer (Andreas Hocevar)<br>
3. Re: enableDD between LayerContainer (Julien-Samuel Lacroix)<br>
4. How to add more than one container into a treepanel (Ozgur Zan)<br>
5. Re: How to add more than one container into a treepanel<br>
(Andreas Hocevar)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 4 Mar 2010 12:11:05 +0100<br>
From: Mario Nu?ez Jimenez <<a href="mailto:mario.nunez@atosresearch.eu" target="_blank">mario.nunez@atosresearch.eu</a>><br>
Subject: Re: [Users] popup to show feature information<br>
To: <<a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a>><br>
Message-ID:<br>
<<a href="mailto:A004391E13DEAE4AAD2F2F76F29E6C0B01D302F7@INTMAIL02.es.int.atosorigin.com" target="_blank">A004391E13DEAE4AAD2F2F76F29E6C0B01D302F7@INTMAIL02.es.int.atosorigin.com</a>><br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello,<br>
the las thing I tried:<br>
<br>
function createForm(feature) {<br>
pointformPanel = new GeoExt.form.FormPanel({<br>
renderTo: "popup",<br>
protocol: new OpenLayers.Protocol.WFS({<br>
url: "<a href="http://192.168.215.148:8080/geoserver/wfs" target="_blank">http://192.168.215.148:8080/geoserver/wfs</a>",<br>
featureType: "evento_punto_Type",<br>
featureNS: "<a href="http://gea.atosorigin.es/gea" target="_blank">http://gea.atosorigin.es/gea</a>"<br>
}),<br>
items: [{<br>
xtype: "numberfield",<br>
name: "incidente",<br>
value: feature.attributes['incidente']<br>
}, {<br>
xtype: "datefield",<br>
name: "fecha",<br>
value: feature.attributes['fecha']<br>
}, {<br>
xtype: "textfield",<br>
name: "descripcion",<br>
value: feature.attributes['descripcion']<br>
}],<br>
listeners: {<br>
actioncomplete: function(form, action) {<br>
// this listener triggers when the search request<br>
// is complete, the OpenLayers.Protocol.Response<br>
// resulting from the request is available<br>
// in "action.response"<br>
}<br>
}<br>
});<br>
<br>
};<br>
/*<br>
formPanel.addOkButton({<br>
text: "aceptar",<br>
handler: function() {<br>
this.submit();<br>
this.close();<br>
},<br>
scope: formPanel<br>
});<br>
formPanel.addCancelButton({<br>
text: "cancelar",<br>
handler: function() {<br>
this.close();<br>
},<br>
scope: formPanel<br>
});<br>
*/<br>
<br>
function createPopup(feature,form) {<br>
popup = new GeoExt.Popup ({<br>
id: 'popup',<br>
title: 'Geometria',<br>
feature: feature,<br>
width: 200,<br>
html: form.render(),<br>
//items: [],<br>
//html: getInfo(),<br>
//feature.attributes['descripcion'],<br>
//feature.attributes['incidente'],<br>
//feature.attributes['fecha'],<br>
/*<br>
items:[{<br>
xtype: 'columnchart',<br>
store: getStore(),<br>
yField: 'hits',<br>
xField: 'month',<br>
xAxis: new Ext.chart.CategoryAxis({<br>
title: 'Month'<br>
}),<br>
yAxis: new Ext.chart.NumericAxis({<br>
title: 'Hits'<br>
}),<br>
extraStyle: {<br>
xAxis: {<br>
labelRotation: -90<br>
}<br>
}<br>
}, {html: getInfo()}],<br>
*/<br>
layout: 'fit',<br>
//html: feature.getInfo(),<br>
collapsible: true<br>
});<br>
// unselect feature when the popup is closed<br>
popup.on({<br>
close: function(layer) {<br>
selectControl.unselect(this.feature);<br>
}<br>
});<br>
popup.render<br>
popup.show();<br>
<br>
}<br>
<br>
// create popup on "featureselected"<br>
pointLayer.events.on({<br>
featureselected: function(e) {<br>
createPopup(e.feature,createForm(e.feature));<br>
}<br>
});<br>
<br>
// create popup on "featureselected"<br>
lineLayer.events.on({<br>
featureselected: function(e) {<br>
createPopup(e.feature);<br>
}<br>
});<br>
<br>
<br>
When I tried this, the web loaded correctly but when I select a feature on the map, it gets selected and highlighted but nothing happens, no popup opened, and I get an error that I do not understand...<br>
<br>
ct is null<br>
<a href="http://localhost:8080/mugagabe-webclient/js/mapfish-client-1.2/mfbase/ext/ext-all-debug.js" target="_blank">http://localhost:8080/mugagabe-webclient/js/mapfish-client-1.2/mfbase/ext/ext-all-debug.js</a><br>
Line 15002<br>
<br>
I think it is because of the renderization, I readed that this error happens because the component you want to render doesn?t exist so I still haven?t found the reason...<br>
<br>
Any tip?<br>
Regards.<br>
Mario.<br>
------------------------------------------------------------------<br>
This e-mail and the documents attached are confidential and intended<br>
solely for the addressee; it may also be privileged. If you receive<br>
this e-mail in error, please notify the sender immediately and destroy it.<br>
As its integrity cannot be secured on the Internet, the Atos Origin<br>
group liability cannot be triggered for the message content. Although<br>
the sender endeavours to maintain a computer virus-free network,<br>
the sender does not warrant that this transmission is virus-free and<br>
will not be liable for any damages resulting from any virus transmitted.<br>
<br>
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial<br>
destinada solamente a la(s) persona(s) mencionadas anteriormente<br>
pueden estar protegidos por secreto profesional.<br>
Si usted recibe este correo electronico por error, gracias por informar<br>
inmediatamente al remitente y destruir el mensaje.<br>
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin<br>
no se hace responsable por su contenido. Su contenido no constituye ningun<br>
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.<br>
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor<br>
no puede garantizar nada al respecto y no sera responsable de cualesquiera<br>
danos que puedan resultar de una transmision de virus.<br>
------------------------------------------------------------------<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 04 Mar 2010 15:30:24 +0100<br>
From: Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>><br>
Subject: Re: [Users] enableDD between LayerContainer<br>
To: <a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
Message-ID: <<a href="mailto:4B8FC400.2020404@opengeo.org" target="_blank">4B8FC400.2020404@opengeo.org</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On 2010-03-04 02:21, Julien-Samuel Lacroix wrote:<br>
> What would be the best way to support the drag-n-drop of the layers in a<br>
> TreePanel to change the layer positions, but between the LayerContainers.<br>
><br>
> Is it to use LayerNodes instead of LayerContainer and code custom code<br>
> to enable the drag-n-drop support?<br>
> Is it to modify the LayerContainer code to support drag-n-drop between<br>
> containers? (Is it possible?)<br>
><br>
<br>
You do not need to modify any code, it is already supported by the<br>
LayerNode.<br>
<br>
Here is how to do it with LayerContainers: First of all, don't forget to<br>
set enableDD to true on the tree, and set allowDrag to false for all<br>
nodes that you don't want to drag (especially the container nodes<br>
themselves). What you then have to do is define a "beforemovenode"<br>
handler on the tree. The handler takes care of making sure that you<br>
change whatever you use for layer grouping (e.g. a layer record field<br>
called "group") so the layer can be added to the new container.<br>
<br>
We have done this in the OpenGeo Suite's GeoExplorer. See [1] for the<br>
"beforemovenode" handler and [2] for the filter function that we use to<br>
populate the "background" group.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
[1]<br>
<a href="http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L458" target="_blank">http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L458</a><br>
<br>
[2]<br>
<a href="http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L365" target="_blank">http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L365</a><br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 04 Mar 2010 10:14:06 -0500<br>
From: Julien-Samuel Lacroix <<a href="mailto:jlacroix@mapgears.com" target="_blank">jlacroix@mapgears.com</a>><br>
Subject: Re: [Users] enableDD between LayerContainer<br>
To: Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>><br>
Cc: <a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
Message-ID: <<a href="mailto:4B8FCE3E.9040609@mapgears.com" target="_blank">4B8FCE3E.9040609@mapgears.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Thanks a lot for this information!<br>
<br>
Julien<br>
<br>
Andreas Hocevar wrote:<br>
> On 2010-03-04 02:21, Julien-Samuel Lacroix wrote:<br>
>> What would be the best way to support the drag-n-drop of the layers in a<br>
>> TreePanel to change the layer positions, but between the LayerContainers.<br>
>><br>
>> Is it to use LayerNodes instead of LayerContainer and code custom code<br>
>> to enable the drag-n-drop support?<br>
>> Is it to modify the LayerContainer code to support drag-n-drop between<br>
>> containers? (Is it possible?)<br>
>><br>
><br>
> You do not need to modify any code, it is already supported by the<br>
> LayerNode.<br>
><br>
> Here is how to do it with LayerContainers: First of all, don't forget to<br>
> set enableDD to true on the tree, and set allowDrag to false for all<br>
> nodes that you don't want to drag (especially the container nodes<br>
> themselves). What you then have to do is define a "beforemovenode"<br>
> handler on the tree. The handler takes care of making sure that you<br>
> change whatever you use for layer grouping (e.g. a layer record field<br>
> called "group") so the layer can be added to the new container.<br>
><br>
> We have done this in the OpenGeo Suite's GeoExplorer. See [1] for the<br>
> "beforemovenode" handler and [2] for the filter function that we use to<br>
> populate the "background" group.<br>
><br>
> Regards,<br>
> Andreas.<br>
><br>
> [1]<br>
> <a href="http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L458" target="_blank">http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L458</a><br>
><br>
> [2]<br>
> <a href="http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L365" target="_blank">http://projects.opengeo.org/suite/browser/trunk/geoexplorer/src/client/script/app/GeoExplorer.js?rev=654#L365</a><br>
><br>
<br>
--<br>
Julien-Samuel Lacroix<br>
Mapgears<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 5 Mar 2010 09:55:15 +0200<br>
From: Ozgur Zan <<a href="mailto:ozgzan@gmail.com" target="_blank">ozgzan@gmail.com</a>><br>
Subject: [Users] How to add more than one container into a treepanel<br>
To: <a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
Message-ID:<br>
<<a href="mailto:c94834fc1003042355gbbb560er6836b375f6c20ccb@mail.gmail.com" target="_blank">c94834fc1003042355gbbb560er6836b375f6c20ccb@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear list member,<br>
<br>
I have two GeoExt.tree container. One is BaseLayerContainer and the other<br>
one is OverlayLayerContainer.<br>
I aim to merge them in a single Ext.tree.TreePanel so that they are both<br>
seen but seperately. The following procedure does not work:<br>
(They are trying to load the layers but they are not loaded)<br>
<br>
* var layerTree = new Ext.tree.TreePanel({<br>
id: "treepanel",<br>
title: "Layers",<br>
root: new Ext.tree.AsyncTreeNode({<br>
expanded: true,<br>
children: [layerTreeBase, layerTreeFeaturesInternal]<br>
}),<br>
rootVisible: false,<br>
split: true,<br>
collapsible: true,<br>
collapseMode: "mini",<br>
autoScroll: true,<br>
lines: false,<br>
enableDD: true<br>
});*<br>
<br>
when I modify root as shown below the application works but only with<br>
baselayers.<br>
*root: layerTreeBase<br>
<br>
*What should I do in order to display both baselayers and other layers in a<br>
tree format.*<br>
<br>
*Best Regards,<br>
Ozgur<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://www.geoext.org/pipermail/users/attachments/20100305/c8e1cfcb/attachment-0001.html" target="_blank">http://www.geoext.org/pipermail/users/attachments/20100305/c8e1cfcb/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 05 Mar 2010 10:38:11 +0100<br>
From: Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>><br>
Subject: Re: [Users] How to add more than one container into a<br>
treepanel<br>
To: <a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
Message-ID: <<a href="mailto:4B90D103.80401@opengeo.org" target="_blank">4B90D103.80401@opengeo.org</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
See the tree.js example and the applyLoader property. This is missing in<br>
your code.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
On 2010-03-05 08:55, Ozgur Zan wrote:<br>
> Dear list member,<br>
><br>
> I have two GeoExt.tree container. One is BaseLayerContainer and the<br>
> other one is OverlayLayerContainer.<br>
> I aim to merge them in a single Ext.tree.TreePanel so that they are<br>
> both seen but seperately. The following procedure does not work:<br>
> (They are trying to load the layers but they are not loaded)<br>
><br>
> / var layerTree = new Ext.tree.TreePanel({<br>
> id: "treepanel",<br>
> title: "Layers",<br>
> root: new Ext.tree.AsyncTreeNode({<br>
> expanded: true,<br>
> children: [layerTreeBase, layerTreeFeaturesInternal]<br>
> }),<br>
> rootVisible: false,<br>
> split: true,<br>
> collapsible: true,<br>
> collapseMode: "mini",<br>
> autoScroll: true,<br>
> lines: false,<br>
> enableDD: true<br>
> });/<br>
><br>
> when I modify root as shown below the application works but only with<br>
> baselayers.<br>
> /root: layerTreeBase<br>
><br>
> /What should I do in order to display both baselayers and other layers<br>
> in a tree format./<br>
><br>
> /Best Regards,<br>
> Ozgur<br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
End of Users Digest, Vol 14, Issue 6<br>
************************************<br>
</blockquote></div><br>