[mapguide-users] Fusion mapFrame
Berdel, Brian
brian.berdel at mcmtrans.com
Tue May 6 09:24:43 EDT 2008
Thanks mike, exactly what I needed.
Brian Berdel
McMahon Associates, Inc.
p: 215.283.9444
www.mcmtrans.com
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Mike Adair
Sent: Monday, May 05, 2008 2:14 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion mapFrame
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
>
_______________________________________________
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