Autodesk 15607-010000-5000A User Manual

Page of 180
Accessing Maps and MWF Files from Buzzsaw
|
65
Sample URL Parameter Entry
If the HTML that references an Autodesk MapGuide MWF looks like this:
<HTML>
<BODY>
<OBJECT ID=”map” WIDTH=100%, HEIGHT=80%
CLASSID=”CLSID:62789780-B744-11D0-986B-00609731A21D”
CODEBASE=”ftp://ftp.autodesk.com/pub/mapguide/viewer/
mgaxctrl.cab#Version=6,5,0,0:>
<PARAM NAME=”URL” VALUE=”http://calpc161/mapguide/
demo.mwf?Lat=0&Lon=0&MapWidth=5000&Units=M”>
</OBJECT>
</BODY>
</HTML>
where the Autodesk MapGuide URL parameters are specified as part of the 
URL, an error would result, and the above would have to be re-written as 
shown in the following code sample:
<HTML>
<BODY>
<OBJECT ID=”map” WIDTH=100%, HEIGHT=80%
CLASSID=”CLSID:62789780-B744-11D0-986B-00609731A21D”
CODEBASE=”ftp://ftp.autodesk.com/pub/mapguide/viewer/
mgaxctrl.cab#Version=6,5,0,0:>
<PARAM NAME=”URL” VALUE=”http://calpc161/mapguide/demo.mwf>
<PARAM NAME=”Lat” VALUE=0>
<PARAM NAME=”Lon” VALUE=0>
<PARAM NAME=”MapWidth” VALUE=5000>
<PARAM NAME=”Units” VALUE=”M”>
</OBJECT>
</BODY>
</HTML>
Note  For HTML coding as required for referencing a MWF, see the sample 
HTML code in the following section, “Avoiding Buzzsaw Interface Authentica-
tion.” Also, note that the version number following the ActiveX control refer-
ence in the preceding code sample is for illustration purposes only.