[mapguide-users] Subject: Best practices for running Fusion within frames

Gordon Luckett gordon.luckett at arrowgeomatics.com
Thu Jul 29 15:01:02 EDT 2010


I just use the default Legend for now..

 

 

 

Thanks Gord!

That widget look great, I'll have to look into that!

So then are you building your own Legend as well, or is that the default MG
Legend component?


Warren

On Thu, Jul 29, 2010 at 10:42 AM, Gordon Luckett
<gordon.luckett at arrowgeomatics.com> wrote:

Hi Warren

Also, I should direct you to 

http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

 

I use this widget extensively.that way I can have floating windows
regardless of FUSION or AJAX viewers.  

 

My data grid ("List All Parcels") uses this javascript library for this site
- and all the sites on the squamish2010.ca domain that I create:
http://squamish2010.ca/SASKATCHEWAN/

 

Gordon

 

 

Well, I'm using frames to provide a basic 'wrapper' to display things like
company logo's and also a custom reporting frame for displaying a datagrid.

 

Warren

On Thu, Jul 29, 2010 at 1:04 AM, Jason Birch <jason at jasonbirch.com> wrote:

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
>>
>>
>
_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100729/2457beb8/attachment.html


More information about the mapguide-users mailing list