66
|
Chapter 4
Configuring and Using the Sample Applications
host:8080/liteview6.5”, for example. For general information about request
syntax, see “Formatting a map Request” on page 11.
■
Frame 2
—The toolbar. The file
toolbar.cfm
uses JavaScript to define the
toolbar. The ColdFusion sample application does not refresh this frame
each time that it displays a new map. For more information about the
toolbar, see “Understanding the Toolbar Implementation,” on page 74.
■
Frame 3
—The feature information. The file
featureInfo.cfm
creates file vari-
ables for the parseXml ColdFusion custom tag that embeds HTML from
the parseXml class into the frame:
<cfset xmlFile = sampleAppPath & xmlfilename>
<cfset xslFile = sampleAppPath & "featureInfo.xsl">
Initially, the Feature Info frame is empty. For more information about the
parseXml class, see “Understanding the XML Parser,” on page 73.
■
Branding message
—A text string that you specify by using the
BrandTextMessage parameter in the
config.ini
file; see Chapter 3, “Config-
uring Autodesk MapGuide LiteView,” in the
Autodesk MapGuide LiteView
Servlet Administrator’s Guide
.
The initial view that appears in the browser is from the Sample_World
data set.
Setting the Default Bounding Box
Autodesk MapGuide LiteView uses the default bounding box specified in
map.cfm
to frame returned images:
<cfset defaultbbox = "-150.0,0.0,-54.0,92.0">
At start up, and when the user unzooms, the ColdFusion sample application
sets the mode and bounding box to default values as follows:
<cfset mode = "identify">
<cfset bbox = defaultbbox>
In the initial view, Select And Identify (see “Understanding the Select And
Identify Implementation,” on page 75) is the default mode and the button
appears to be pressed. Every time the Unzoom method is called, the applica-
tion returns to this initial state.
Adapting ColdFusion Templates to Your Application
The ColdFusion sample application builds Web pages that include special
tags. When a Web browser requests one of these pages, ColdFusion interprets
the tags, replaces them with the results of the specified calculations or data-
base queries, and then sends the completed page to the Web server. The Web
Содержание 15606-011408-9330 - MAPGUIDE R6.3 SITE LIC-UPG R6
Страница 1: ...April 2004 Autodesk MapGuide LiteView Developer s Guide ...
Страница 12: ...8 Chapter 1 Introduction ...
Страница 38: ...34 Chapter 2 Understanding Requests ...
Страница 90: ...86 Chapter 4 Configuring and Using the Sample Applications ...