[mapguide-users] Re: How to expand legend programatically in Fusion
GordonL
gordon.luckett at arrowgeomatics.com
Fri Feb 26 18:47:39 EST 2010
Thanks Kori,
That works to look through the js files to see what they offer...it would be great if there was a document like:
http://www.osgeo.org/files/mapguide/docs/viewerapi/viewerapi.html
thanks
gordon
-----Original message-----
From: "Kori Maleski [via OSGeo.org]" ml-node+4637303-2026854035-113826 at n2.nabble.com
Date: Thu, 25 Feb 2010 21:20:56 -0800
To: GordonL gordon.luckett at arrowgeomatics.com
Subject: Re: How to expand legend programatically in Fusion
>
>
>
> I think it is easy enough to review the widget javascript to determine the
> Fusion API calls - in the case of what hasn't been documented.
>
> http://demo.mapserver.org/fusion/widgets/
>
>
> For the Legend:
>
> Fusion.getWidgetById('Legend').renderer.expandAll()
> Fusion.getWidgetById('Legend').renderer.collapseAll()
> Fusion.getWidgetById('Legend').renderer.collapseBranch(folder)
> Fusion.getWidgetById('Legend').renderer.expandBranch(folder)
> Fusion.getWidgetById('Legend').renderer.update()
> Fusion.getWidgetById('Legend').renderer.clear()
>
> For the TaskFrame:
>
> Fusion.getWidgetById('TaskFrame').updateButtons()
> Fusion.getWidgetById('TaskFrame').gotoPrevTask()
> Fusion.getWidgetById('TaskFrame').gotoNextTask()
> Fusion.getWidgetById('TaskFrame').goHome()
> Fusion.getWidgetById('TaskFrame').setContent(url)
>
>
> Cheers,
>
> Kori Maleski
>
>
> On Thu, Feb 25, 2010 at 5:48 PM, GordonL
> <gordon.luckett at arrowgeomatics.com>wrote:
>
> >
> > Hi Mike,
> > I have been searching for a definitive list of Fusion API calls.
> > For example, only through some hacking and searhing have I found some of
> > the
> > methods and properties for some of the widgets, such as:
> >
> > Fusion.getWidgetById('Legend').renderer.expandAll();
> >
> > or
> >
> > Fusion.getWidgetById('TaskFrame').setContent(‘http://osgeo.org');
> >
> > Do you know where I can find the methods for these widgets? (like expandAll
> > or setContent)
> >
> > thanks
> > gordon
> >
> >
> >
> > --
> > View this message in context:
> > http://n2.nabble.com/How-to-expand-legend-programatically-in-Fusion-tp4561423p4636440.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
> >
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> ______________________________________
> View message @ http://n2.nabble.com/How-to-expand-legend-programatically-in-Fusion-tp4561423p4637303.html
>
> To unsubscribe from Re: How to expand legend programatically in Fusion, click (link removed)
>
>
--
View this message in context: http://n2.nabble.com/How-to-expand-legend-programatically-in-Fusion-tp4561423p4642683.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/20100226/9281c6e2/attachment.html
More information about the mapguide-users
mailing list