[Users] Problems begining with GeoExt
Matt Priour
mpriour at kestrelcomputer.com
Thu Dec 2 16:11:54 CET 2010
Thank you so very much Andreas!
That should clear up the most frequently misunderstood / misused example.
The interactivity was cool if you understood what was going on but just
plain confusing for people first experimenting with GeoExt
Matt Priour
--------------------------------------------------
From: "Andreas Hocevar" <ahocevar at opengeo.org>
Sent: Wednesday, December 01, 2010 2:52 AM
To: "Vidal, Antoni" <antoni.vidal at icc.cat>
Cc: <users at geoext.org>
Subject: Re: [Users] Problems begining with GeoExt
> On Nov 30, 2010, at 14:40 , Vidal, Antoni wrote:
>
>> Hello list,
>>
>> I’m new on GeoExt, and I’m trying to create a custom layers tree menu
>> grouping baselayers and overlays layers in diferent folders.
>>
>> I tryed with this code:
>>
>> var treeConfig = [{
>> nodeType: "gx_baselayercontainer"
>> }, {
>> nodeType: "gx_overlaylayercontainer",
>> expanded: true
>> }];
>>
>> .....
>> Inside Ext.Viewport:
>>
>>
>> items: [{
>> title: 'Capes',
>> xtype: "treepanel",
>> loader: new Ext.tree.TreeLoader({
>> applyLoader: false
>> }),
>> root: {
>> nodeType: "gx_layercontainer",
>
> Change to
> nodeType: "async"
>
>> children: Ext.decode(treeConfig)
>
> Change to
> children: treeConfig
>
>> }
>> }
>>
>>
>> It doesn’t work.
>>
>> Any idea or example would be appreciate.
>
> I finally changed the
> http://dev.geoext.org/trunk/geoext/examples/tree.html example to explain
> that neither "new OpenLayers.Format.JSON().write" nor "Ext.decode" should
> be used in applications. This is just there because the example allows
> live modification of the tree configuration with the "Show/Edit Tree
> Config" button.
>
> Regards,
> Andreas.
>
>>
>> Thank’s a lot.
>>
>> Antoni Vidal
>> Unitat d'Aplicacions SIG-WEB
>> Institut Cartogràfic de Catalunya
>> Parc de Montjuïc, E-08038 Barcelona
>> Tel. (+34) 93 567 15 00 (ext. 3228)
>> www.icc.cat
>>
>> _______________________________________________
>> 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
>
More information about the Users
mailing list