[mapguide-users] Fusion mapFrame

Mike Adair madair at dmsolutions.ca
Mon May 5 14:14:08 EDT 2008


Brian,

You can look at the BufferPanel widget as an example (and the code in 
widgets/BufferPanel/BufferPanel.templ) which can run in the TaskPane or 
a pop-up window. There is a method in there called GetParent() which 
returns the window where Fusion can be found so you can then do things like:

var map = GetParent().Fusion.getMapByName(mapName);
map.clearSelection();

Hope that helps.

Mike

Berdel, Brian wrote:
>
> Or…maybe a better question would be how would I go about refreshing a 
> map or using the web api from the task frame? Is it still done the 
> same way as the ajax viewer?
>
> Brian Berdel
>
> McMahon Associates, Inc.
>
> p: 215.283.9444
>
> www.mcmtrans.com
>
> ------------------------------------------------------------------------
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Berdel, 
> Brian
> *Sent:* Monday, May 05, 2008 12:58 PM
> *To:* MapGuide Users Mail List
> *Subject:* [mapguide-users] Fusion mapFrame
>
> How do you access the mapFrame from the TaskPane in Fusion? Tried 
> parent.parent.mapFrame, parent.mapFrame, mapFrame, etc… Keeps giving 
> me a javascript error telling me it is not an object
>
> Thanks,
>
> -Brian
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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