[Users] MapFish Tree-Model convert to geoext?
Stephan Holl
stephan.holl at intevation.de
Tue Mar 9 09:55:45 CET 2010
Hello Eric,
Eric Lemoine <eric.lemoine at camptocamp.com>, [20100308 - 17:32:05]
> On Monday, March 8, 2010, Stephan Holl <stephan.holl at intevation.de>
> 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 <stephan.holl at intevation.de> | 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 <stephan.holl at intevation.de> | 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://www.geoext.org/pipermail/users/attachments/20100309/10ad28ce/attachment.pgp
More information about the Users
mailing list