That was what I needed Mike... thank you. Since it's for a Report, it's useful to pre-exclude items on other layers, both because there is not as much iteration that needs to be done, as well as preventing highlighting unnecessary features.
On 2/22/2011 10:04 AM, Mike Adair [via OSGeo.org] wrote: > The get/setActiveLayer methods are in the Map object (ie. the > Fusion.getWidgetById('map') object) since the active layer can be set > to any of the layers (ie. more than just aMaps[0]) > > Mike > > On 21/02/2011 6:31 AM, BTenBroeck wrote: >> 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&by-user=t&by-user=t>> >>> 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&by-user=t&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&by-user=t&by-user=t> >>> > 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&by-user=t&by-user=t> >>> 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 >>> >>> <http://osgeo-org.1803224.n2.nabble.com/Syntax-to-set-Active-layer-in-Mapguide-via-Fusion-tp6045953p6047126.html?by-user=t&by-user=t> >>> >>> >>> 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=&by-user=t&by-user=t>. >>> >>> >> >> ------------------------------------------------------------------------ >> View this message in context: Re: Syntax to set Active layer in >> Mapguide via Fusion >> <http://osgeo-org.1803224.n2.nabble.com/Syntax-to-set-Active-layer-in-Mapguide-via-Fusion-tp6045953p6048362.html?by-user=t> >> Sent from the MapGuide Users mailing list archive >> <http://osgeo-org.1803224.n2.nabble.com/MapGuide-Users-f1803227.html?by-user=t> >> >> at Nabble.com. >> >> >> _______________________________________________ >> mapguide-users mailing list >> [hidden email] </user/SendEmail.jtp?type=node&node=6052647&i=0> >> http://lists.osgeo.org/mailman/listinfo/mapguide-users > > _______________________________________________ > mapguide-users mailing list > [hidden email] </user/SendEmail.jtp?type=node&node=6052647&i=1> > 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-tp6045953p6052647.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-tp6045953p6057695.html Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users