178
|
Chapter 7
Applications
zoomToLon = sdfPoint.X;
zoomToLat = sdfPoint.Y;
clearVars();
actionOp = "ZoomToPoint"; // Zooms to the point on the map
msgText = "Zooming to point.";
}
else
msgText = "Point not found.";
}
sdfToolKit.Close();
}
else
msgText = "A name must be specified."
}
else if (Request.Count > 0)
msgText = "Unrecognized command.";
%>
<%
function findObject(openSdf, objKey) // The actual search
{
var sdfObject = null;
openSdf.BeginKeyIndexSearch(objKey);
sdfObject = openSdf.SearchToNextObject();
openSdf.EndSearch();
return sdfObject;
}
function clearVars()
{
pointName = "";
pointLat = "";
pointLon = "";
op = "";
}
%>
// This next section creates the content of the frame.
<H2>Points of Interest</H2>
<HR>
<FORM METHOD="POST" NAME="pointForm" TARGET="_self"
ACTION="poi.asp">
<INPUT TYPE="hidden" NAME="op" VALUE="None">
<DIV ALIGN="left">
<P>
<LABEL FOR="fp1">Name<BR></LABEL>
<INPUT TYPE="text" NAME="pointName" VALUE="<%=pointName%>"
poi.asp
Example Code (
continued
)
Содержание 15606-011408-9300 - MAP R6.3 UPG
Страница 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Страница 6: ...vi ...
Страница 16: ...16 ...
Страница 30: ...30 ...
Страница 84: ...84 ...
Страница 134: ...134 ...
Страница 202: ...202 ...