[Cartoweb-users] Group layers in .map file?
oliver.christen at camptocamp.com
Fri Feb 23 02:00:12 EST 2007
I dont know about mapfile groups, but you can very easily have the same
behaviour by using layerGroups in the layers.ini file and aggregating the
layers.vector.className = LayerGroup
layers.vector.children = sea, district
layers.vector.label = Vector
layers.vector.aggregate = true
layers.district.className = Layer
layers.district.msLayer = district
layers.district.label = district
layers.sea.className = Layer
layers.sea.msLayer = sea
layers.sea.label = sea in this exemple, the user will see only one layer
Vector that include both district and sea
see http://www.cartoweb.org/cwiki/HowToCreateALayerTree and
http://www.cartoweb.org/doc/cw3.3/xhtml/user.layers.html for more infos
Hope this help
----- Original Message -----
From: Brendan Walashek at GolfingVancouver.com
To: cartoweb-users at lists.maptools.org
Sent: Friday, February 23, 2007 1:20 AM
Subject: [Cartoweb-users] Group layers in .map file?
Do I understand this correctly...
For Mapserver, you can use the following:
In the myproject.map file:
This works in a normal Mapserver environment by calling the "my_layer" group
name which will call both layers "my_layer1" AND "my_layers2".
BUT, in Cartoweb, in Layers.ini, calling the group layername "my_layer" does
not work. It comes up with an error saying it cannot find the "my_layer"
Basically I want to call multiple layers in the .map file by ONE name. ie.
multiple shapefiles by one layer name (a group). Did it before using
Cartoweb with Mapserver.
Any help would be appreciated. Thanks.
GIS / 3D Mapping / Custom Applications
McElhanney Consulting Services
(604) 683-8521 ext.278
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
More information about the Cartoweb-users