[mapguide-users] Layer Control | fusion

Berdel, Brian brian.berdel at mcmtrans.com
Mon Jun 9 14:17:56 EDT 2008


It is possible, there is a show function in the fusion library.

var mapWidget = Fusion.getWidgetById('Map');
var layer = mapWidget.aMaps[0].getLayerByName('Parcels');
layer.show();

Thanks, 

Brian  

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Berdel,
Brian
Sent: Monday, June 09, 2008 1:02 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Layer Control | fusion

Thanks, I was going to look at that. 

-Brian  
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Monday, June 09, 2008 12:59 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Layer Control | fusion

Actually, that's not quite true - an API to control layer and group  
visibility via the Map object does exist on the client side but I'm  
not sure how easy it is to use - right now, the legend widget uses it.

Paul

On 9-Jun-08, at 12:55 PM, Mike Adair wrote:

> Currently this is only possible by altering the Map object on the  
> server side.
>
> Mike
>
> Berdel, Brian wrote:
>>
>> Is it possible to turn layers on and off client side? Or do you  
>> have to use server side code?
>>
>>
>> Thanks,
>>
>>
>> Brian
>>
>>
>>
>>
------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list