[mapguide-users] Syntax to set Active layer in Mapguide via Fusion

Zac Spitzer zac.spitzer at gmail.com
Sun Feb 20 19:33:09 EST 2011

what are you trying to do, turn a layer on?

On Mon, Feb 21, 2011 at 2:39 AM, BTenBroeck <billtenbroeck at gmail.com> wrote:
> Hello all. This is a cross-post from the Fusion-users, as I had no luck
> getting a response there. Hopefully the heavier traffic over here may bear
> fruit. :)
> As the subject says, I'm trying to figure out the appropriate syntax to
> set the active layer via Javascript in Fusion.
> What I've tried is:
>         var oMap = Fusion.getWidgetById('Map').aMaps[0];
>         var activeLayer = oMap.setActiveLayer("Parcels");
> which seems like it's appropriate by looking at the Map.js widget.
> However, it tossess an error, and if I view in Firebug, there is no method
> in oMap for
> setActiveLayer or getActiveLayer as I would expect.
> If anyone has a clue, or can point me in the right direction, I would
> appreciate it.
> Thanks
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Syntax-to-set-Active-layer-in-Mapguide-via-Fusion-tp6045953p6045953.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users

Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
+61 405 847 168

More information about the mapguide-users mailing list