[Users] Users Digest, Vol 14, Issue 6

Ozgur Zan ozgzan at gmail.com
Fri Mar 5 14:04:11 CET 2010


Thanks Andreas.

I have added the following part from
http://dev.geoext.org/trunk/geoext/examples/tree.js:

loader: new Ext.tree.TreeLoader({
            // applyLoader has to be set to false to not interfer with loaders
            // of nodes further down the tree hierarchy
            applyLoader: false,
            uiProviders: {
                "use_radio": LayerNodeUI
            }
        }),

But although the loading image stopped; this time no layer is loaded.

There is no error message but it does not work.

Best Regards,
Ozgur

On Fri, Mar 5, 2010 at 1:00 PM, <users-request at geoext.org> wrote:

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


More information about the Users mailing list