[Geomoose-users] html link to turn layer groups on

Mark Volz MarkVolz at co.lyon.mn.us
Fri Dec 9 12:59:21 EST 2011


Bob,

It appears that the layers that I turn on with html must reside in the same group in mapbook.xml.  I was able to get  layer on to work when I moved everything into a single group on mapbook.xml.  If anyone has any information to the contrary let me know.

I am not sure if changing the mapserver .map file will make any difference, for the following reasons:  1)  two of the layers that work together reference different mapserver . map files.  2) The other two layers have a wms source, so there is no .map file.

Thanks for your help.


Mark Volz
GIS Specialist
Lyon County, MN
507-532-8218

From: Bistrais, Bob [mailto:Bob.Bistrais at maine.gov]
Sent: Friday, December 09, 2011 11:07 AM
To: Mark Volz; geomoose-users at lists.osgeo.org
Subject: RE: [Geomoose-users] html link to turn layer groups on

Hi Mark,

I'm just going off the top of my head here, but if you edit your .map files for each of those layers, make sure they all have the same GROUP name, you should be able to display them all by using layers=(your group name).

________________________________
From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz
Sent: Friday, December 09, 2011 12:03 PM
To: geomoose-users at lists.osgeo.org
Subject: [Geomoose-users] html link to turn layer groups on

Hello,

I have a link to my Geomoose application that turns on certain layers.  I would like to get 4 layers to turn on with this link.  Currently, I can only get 2 of them to work at a time.

I would prefer to use: http://geomoose.lyonco.org/geomoose2/?on=contours/all:DEM/all:DEMArcServer/0:DEMArcServer/1
However only http://geomoose.lyonco.org/geomoose2/?on=contours/all:DEM<http://geomoose.lyonco.org/geomoose2/?on=contours/all:DEM/all:DEMArcServer/0:DEMArcServer/1> or http://geomoose.lyonco.org/geomoose2/?on=DEMArcServer/0:DEMArcServer/1 works.

Could this be a limitation or a bug?  Contours/all and DEM/all are in the same group.  DEMArcServer/0 and DEMArcServer/1 are in another group with multiple set to false.



                <group title="Elevation Information" expand="false">
                        <layer title="Contour Lines" src="contours/all:DEM/all" status="off" metadata="false" popups="false">
                        </layer>
                </group>

                <group title="Backgrounds" expand="false" multiple="false">
                        ...
<layer title="DEM - ArcServer" src="DEMArcServer/0:DEMArcServer/1"/>
                        ...
                </group>

Thanks


Mark Volz



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20111209/8f437781/attachment-0001.html


More information about the Geomoose-users mailing list