[Users] MapFish Tree-Model convert to geoext?
Eric Lemoine
eric.lemoine at camptocamp.com
Mon Mar 8 17:32:05 CET 2010
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.
Cheers,
>
> 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
>
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list