68
|
Chapter 4
Configuring and Using the Sample Applications
When you encode the map and feature_info requests, make sure that the
requests contain the correct parameters; see “Creating a map Request” on
page 10 and “Creating a feature_info Request” on page 22.
Using Get and Post Requests
A ColdFusion document accepts two request types: get and post. The Cold-
Fusion sample application works by sending requests to the CFM page.
The get request sets the application’s mode and the MWF bounding-box
default values. The get request is used when the sample application is initial-
ized and when the user unzooms. The sample application executes a post
request when the user clicks a map to request feature information, for
example:
<cfset urlRequest =
"http://" & Form.server & "/servlet/MapGuideLiteView?
REQUEST = feature_info &
HEIGHT = " & Form.height &
"&WIDTH = " & Form.width &
"&LAYERS = " & Form.mapName &
"&BBOX = " & Form.bbox &
"&X = " & Form.MAP.X &
"&Y = " & Form.MAP.Y>
Note
The variable
Form.server
must include the web-server name and context
path. For a default
Autodesk MapGuide
LiteView installation,
Form.server
is
“localhost:8080/liteview6.5”. For general information about request syntax, see
“Formatting a map Request” on page 11.
The post request of the ColdFusion sample application contains the parame-
ters shown in the following table:
Key Parameter
Description
Content
BBOX
Required. Bounding box of map image being
requested. Specified in terms of the coordinate
system used by the map.
“minX, minY,
maxX, maxY”
MAP.X
Required.
X
coordinate, expressed in pixels, of
mouse click on the map image.
integer
Содержание 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 ...