[mapguide-users] Custom layouts...

Kori Maleski km at pat.ca
Tue Mar 21 14:41:31 EST 2006


I am not quite there yet...

I have had issues with trying to put an inset map in the Task Panel because
of the Task panel Page reloading.  An IFRAME would be the easiest way - as
it would mean not modifying the Frames.  You would have to put in a Red Line
function to draw the map reference area in the inset map that would have to
be called when the map view changed, requiring another modification to the
mainframe.templ.

I will probably start working on this next week.





 

Kori Maleski  BSc. 
Senior Technical Consultant
 


Suite 400 - 534 17 Ave. SW Calgary, AB CANADA T2S 0B1
TEL 
403.770.1917
 
 
FAX
877.691.9149
 TOL
877.691.9171
www.pat.ca

________________________________________
From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
Sent: March 21, 2006 12:30 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Custom layouts...

Great, thanks for the confirmation.  That'll make the job a bit easier.
 
Now I have to figure out how to maximize the map space.  I've done
that in this app by making the layer control, legend, and search functions
all occupy the same space.  
 
Customizing the main templates is not really an option for me because I will
have at least two maps running on this machine.   I'd like to be able to
pull the layer control out of the layout and put it in its own iframe in my
layout.  I'm guessing that this is going to take some serious hacking;
probably taking a static copy of what the template generates, extracting the
layer control, and retrofitting it into my layout...  Does this sound
do-able?  I'm thinking that I may need to be able to hook into a map refresh
"event" to refresh my layers list.
 
I'm also thinking about the inset map.  Kori, some of your clients are
running insets; have you been able to replicate this functionality?
 
Jason

________________________________________
From: Alain Lebatard [mailto:alain.lebatard at autodesk.com] 
Sent: Tuesday, March 21, 2006 11:09
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Custom layouts...
Jason,

You won’t have any problem with framed pages within an IFRAME. Attached is a
picture of the whole AJAX sample application within an IFRAME, on Firefox. 

IFRAME is well supported in the 3 browsers that the AJAX viewer can run on.
The only difference you will find between browsers is the way to reference
the IFRAME content from Javascript. You can see an example of that in
ajaxmappane.templ, where the viewer calls script methods in the legend
control and the property control, both running in separate IFRAMEs.

Alain



________________________________________
From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
Sent: Tuesday, March 21, 2006 10:40 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Custom layouts...

I wonder if I can just embed the map within an IFRAME; I'll have to give
that a shot.  I've never tried running a framed page within an IFRAME.  I'd
imagine that I'm going to run into browser support issues with this...
 
Jason

________________________________________
From: Andy Morsell [mailto:amorsell at spatialgis.com] 
Sent: Tuesday, March 21, 2006 10:28
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Custom layouts...
I think you could get could it to work.  The default viewer uses a frameset
and as long as you know the names of the various frames, you should be able
to target your functions correctly.  Take a look in the C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\viewerfiles folder at the 
framesetnotaskbar.templ and framesettaskbar.templ files.  In some custom
code I have done, I target the hidden scriptFrame and then interact with the
mapFrame for the client-side API.
Andy Morsell, P.E. 
Spatial Integrators, Inc. 
http://www.SpatialGIS.com 
________________________________________
From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
Sent: Tuesday, March 21, 2006 10:12 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Custom layouts...
I have an extremely custom MapGuide implementation that I need to look at
migrating.  The application portion isn't all that complex, but the layout
is:
http://enviro.nanaimo.ca/index.cfm?tab_ID=2&content_ID=5
 
Just plugging in the default viewer would lead to a severe reduction in
aesthetics.  Does anyone have procedures/guidelines for hacking my own
viewer template?  Do I need to make global changes or can I constrain it to
this map?
 
The site currently supports ActiveX and the Java Viewer, so AJAX is my
target viewer.  I think that I should just be able to create a layout
without any surround elements and use that in the main window, but I have a
feeling that the task area and the custom tools are going to be hard to
implement.
 
Jason





More information about the Mapguide-users mailing list