[mapguide-users] Re: Syntax to set Active layer in Mapguide via
Fusion
BTenBroeck
billtenbroeck at gmail.com
Mon Feb 21 06:31:57 EST 2011
No, I'm trying to set a layer active, and then tell the selection tool
to only use items on the active layer. I have the second piece working ,
but I don't want the user to have to manually set the layer active.
On 2/20/2011 7:39 PM, zspitzer [via OSGeo.org] wrote:
> what are you trying to do, turn a layer on?
>
> On Mon, Feb 21, 2011 at 2:39 AM, BTenBroeck <[hidden email]
> </user/SendEmail.jtp?type=node&node=6047126&i=0>> 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
> <http://osgeo-org.1803224.n2.nabble.com/Syntax-to-set-Active-layer-in-Mapguide-via-Fusion-tp6045953p6045953.html?by-user=t>
> > Sent from the MapGuide Users mailing list archive at Nabble.com.
> > _______________________________________________
> > mapguide-users mailing list
> > [hidden email] </user/SendEmail.jtp?type=node&node=6047126&i=1>
> > http://lists.osgeo.org/mailman/listinfo/mapguide-users
> >
>
>
>
> --
> Zac Spitzer
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
> _______________________________________________
> mapguide-users mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=6047126&i=2>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://osgeo-org.1803224.n2.nabble.com/Syntax-to-set-Active-layer-in-Mapguide-via-Fusion-tp6045953p6047126.html
>
> To unsubscribe from Syntax to set Active layer in Mapguide via Fusion,
> click here
> <http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6045953&code=YmlsbHRlbmJyb2Vja0BnbWFpbC5jb218NjA0NTk1M3w1MzM0ODEyNTU=>.
>
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Syntax-to-set-Active-layer-in-Mapguide-via-Fusion-tp6045953p6048362.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110221/4d6de865/attachment.html
More information about the mapguide-users
mailing list