[Users] LayerTree in Drake
Alexandre Dube
adube at mapgears.com
Sun Feb 15 17:02:34 CET 2009
Hey,
What I want to achieve :
- I want to have one Openlayer.Layer.WMS object only
- That layer should contain all "layers" from a mapfile, so
params.LAYERS should looks like "foo1,foo2,foo3,etc..."
- I have so many layers in that mapfile (around 70 I think) that I must
find a way to build a tree by :
GROUP
LAYER
and then, if possible, display the CLASS icon as a legend
- Using a mapserver query in mode=legend with a html template that
outputs javascript objects, I generate an array of groups that has layers.
- Using that array, I must find a way to build a model for the ext.tree
- In the end, I would have my tree, and clicking on a group would
refresh the OL.Layer.WMS with all the "layers" names the group contains...
In mapfish, when you give no model to the tree, it builds its own and
when, using OL.Layer.WMS or MapServer, you define an array of
params.LAYERS instead of a string, it automatically generate a model by
"layers" in the mapfile. That's what I want but with a level of GROUPS
and maybe, if possible, display the CLASS icons as a legend.
So that's about it. It's a bit hard to explain more. Can GeoExt achieves
what I want ?
Alexandre
Christopher Schmidt wrote:
> On Sat, Feb 14, 2009 at 11:52:52AM +0100, Andreas Hocevar wrote:
>
>> Alexandre Dube wrote:
>>
>>> Nevermind.
>>>
>>> What I want to do will be easier in MapFish ( I think ).
>>>
>>> I want to have one Openlayer.Layer.WMS with a tree like this :
>>>
>>> Groups
>>> |__Layers
>>> |__Class
>>>
>> I think I'm missing something here. What would such a tree do to one WMS
>> layer? Or are you talking about a nested WMS layer. In that case, I
>> would be interested to see the GetCapabilities for this layer.
>>
>
> I'm not sure I understand the "Layers", "Class" stuff, but I think that
> in general, there is a desier to have multiple WMS Layers (from the
> GetCaps) merged into one Layer.WMS -- so when you turn on two layers,
> instead of two OpenLayers.Layer classes, you have one with a
> 'layers':'abc,123'.
>
> Regards,
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list