[mapguide-users] Turning on layer from task frame

Andy Morsell amorsell at spatialgis.com
Fri Oct 27 16:20:55 EDT 2006


You can use the MGLayer SetVisible method.  Note that you will also have to
do a client-side API refresh in order to get your map and legend to update
accordingly. 


Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com

-----Original Message-----
From: Jim O'Leary [mailto:joleary.public at gmail.com] 
Sent: Friday, October 27, 2006 12:51 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Turning on layer from task frame


Is there a way to turn on a layer (that is, programmatically check the layer
in the Layers pane) from the Task frame?

I have a select box of layers in my task frame. When the user selects a
layer, I would like the same layer to be checked in the Layer pane. Right
now the user has to check the layer manually, or else the layer is not
selectable.

Thanks
--
View this message in context:
http://www.nabble.com/Turning-on-layer-from-task-frame-tf2522746.html#a70372
12
Sent from the OSGeo MapGuide mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org







More information about the Mapguide-users mailing list