Hello Eric, Eric Lemoine <[email protected]>, [20100308 - 17:32:05]
> On Monday, March 8, 2010, Stephan Holl <[email protected]> > wrote: > > Hallo GeoExt-users, > > > > I have a MapFish-1.1-based LayerTree with a large model. Is there a > > way to convert this to GeoExt.tree.*? > > There's no tool for that. Try replacing layerName: "name" by nodeType: > "gx_layer", layer: "name" and layerStore: "auto" in the config of tree > nodes. Note that layerStore: "auto" requires that you use a > GeoExt.MapPanel as the map container. OK, thank you for the hints. Currently we do not use a GeoExt.MapPanel yet, but this should not be the problem to include though. Thanks for clearing this. I will see what I can do with that information. Best Stephan > > The Model is currently defined as following: > > var model = [ > > { > > text: "blablabl", > > expanded: true, > > icon: Ext.BLANK_IMAGE_URL, > > children: [{ > > text: "Kartenpräsentation", > > expanded: true, > > icon: Ext.BLANK_IMAGE_URL, > > children: [{ > > text: "Standard", > > checked: true, > > id: "standard", > > href: "javascript:toggleLayerLink('Standard')", > > icon: Ext.BLANK_IMAGE_URL, > > layerName: "Topographie - Standard" > > }, > > { > > ... > > }] > > }, > > { > > text: "Digitale Orthophotos (Luftbilder)", > > expanded: false, > > icon: Ext.BLANK_IMAGE_URL, > > children: [{ > > text: "farbig", > > checked: false, > > id: "farbig", > > href: "javascript:toggleLayerLink('farbig')", > > icon: Ext.BLANK_IMAGE_URL, > > layerName: "Digitale Orthophotos 20cm" > > }, > > .... > > }]; > > > > TIA for your hints. > > > > Best > > > > Stephan > > > > -- > > Stephan Holl <[email protected]> | Tel.: +49 (0)541-33 508 > > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - > > HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. > > Jan-Oliver Wagner > > > -- Stephan Holl <[email protected]> | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
signature.asc
Description: PGP signature
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
