[mapguide-users] Subject: Best practices for running Fusion
within frames
Jason Birch
jason at jasonbirch.com
Thu Jul 29 03:04:34 EDT 2010
So, are you guys using iframes to hide the complexity of the initial
url and still use appdef directly out of the MapGuide repository?
My appdef doesn't change very often; I've got it compiled into a
single-file fusion build per-map. I'm not using templates either ;I
don't think they existed when DMSG built my map initially :)
If your app is static enough, you could do something similar; copy the
template out into the Map's directory and either compile in the appdef
or create an ApplicationDefinition.xml in the same folder as your
index.html.
On 2010-07-28, Warren Medernach <wmedernach at gmail.com> wrote:
> Hey Gordon,
> Thanks so much for the tips and info!
>
> Warren
>
> On Wed, Jul 28, 2010 at 7:18 PM, Gordon Luckett <
> gordon.luckett at arrowgeomatics.com> wrote:
>
>> Hi Warren,
>>
>> I usually use iframes (and always call it the same thing “iFrameMap”)
>>
>>
>>
>> I have found some issues with targeting some of the searches and had to
>> modify the code to find my “iFrameMap” within FUSION.
>>
>>
>>
>> I make use of the \www\fusion\layers\MapGuide\MapGuideViewerApi.js file
>> and
>> modify the lines that show:
>>
>>
>>
>> var Fusion = window.top.Fusion;
>>
>>
>>
>> to
>>
>>
>>
>> var Fusion = window.top.iFrameMap.Fusion;
>>
>>
>>
>> and that usually works really well.
>>
>>
>>
>>
>>
>> I use the iFrameMap for the AJAX Basic version to and usually pass a
>> parameter to the JS files with VTYPE=’AJAX’ or VTYPE=’FUSION’ so I know
>> what
>> viewer API to use.
>>
>>
>>
>> Hope that helps.
>>
>>
>>
>>
>>
>>
>>
>> Hey Jason,
>>
>> Sorry, my bad... I should know better to include version details... It's
>> been a long day :-)
>>
>> I'm using MGE 2011.
>>
>>
>>
>> I was just more curious what others are doing wrt Fusion. Are people
>> using
>> iFrames, or Frames, or just building their wrappers?
>>
>>
>>
>> Thanks.
>>
>>
>> Warren
>>
>> On Wed, Jul 28, 2010 at 5:35 PM, Jason Birch <jason at jasonbirch.com> wrote:
>>
>> Are you using a recent version? I think I saw some commits that change
>> the way widgets find their parent fairly recently (ie, could be bug).
>>
>>
>>
>> On 2010-07-28, Warren Medernach <wmedernach at gmail.com> wrote:
>> > Hello all,
>> > I'm trying to use the Fusion viewer within a frameset and I'm getting
>> > some weird results using different browsers with 'out-of-the-box'
>> > functionality.
>> >
>> > For example, I have a Search function defined that works fine when I run
>> it
>> > in FireFox or Chrome, but in IE it fails to select and zoom to the
>> > object
>> > and a script error is thrown stating that it cannot find Fusion?
>> >
>> > Are there any 'best practices' or suggestions to using Fusion within a
>> > frameset?
>> >
>> > Warren M.
>> >
>>
>> _______________________________________________
>> 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