Understanding Viewer Frames
 
 

The MapGuide Viewers use HTML frames to divide the viewer area. Refer to the diagram for the locations of the following frames and frame sets:

Name Description
  Unnamed. Contains all the Viewer frames. This can be wrapped by an outer frame so you can embed the Viewer in your own site.
maparea Frame set containing the tool bar, map area, form frame, and script frame.
tbFrame Frame containing the tool bar. Add new commands to the tool bar by modifying the web layout using Studio.
mapFrame Frame containing the map data. This includes the map display and the layers and properties palettes.
formFrame Hidden frame that can be used to generate HTTP POST requests for sending data to the server.
scriptFrame Hidden frame that can be used for executing client-side JavaScript.
taskArea Frame set containing the task bar and the task frame.
taskBar Frame containing the task bar.
taskFrame Frame used to hold the task list frame and the task pane frame.
taskListFrame Frame used for displaying the task list. This is normally hidden, and is shown when a user clicks the task list button in the task bar. Add new commands to the task list by modifying the web layout.
taskPaneFrame Frame used for displaying and executing MapGuide pages.
sbFrame Frame containing the status bar.

Viewer Frames

Most custom MSPs display in the task pane. When you create a custom command in a web layout and add it to the task menu, it will appear in the task list that displays when a user clicks the Tasks button.

NoteYou can customize the web layout so some of the frames do not display. For example, if you hide the task bar and task frame, then the entire task area does not display.