Installing Viewers on Client Machines
|
27
Installing Viewers on Client Machines
If users accessing your Web site don’t have an Autodesk MapGuide Viewer
installed on their system, they need to download one in order to view the
map you have displayed in the Web page. You can include code in your
HTML file that automatically detects whether or not the user has Autodesk
MapGuide Viewer, and then either downloads it automatically or prompts
the user to download it themselves.
To install the Autodesk MapGuide Viewer ActiveX Control
1
To install the latest version of Autodesk MapGuide Viewer ActiveX Con-
trol for Internet Explorer users, include the
CODEBASE
parameter to access
the ActiveX Control cabinet file,
mgaxctrl.cab
, in the HTML page that spec-
ifies your map. This parameter detects whether the latest version of the
Autodesk MapGuide Viewer ActiveX Control is installed. If the user does
not have the ActiveX Control or has an older version, the latest version
will be installed automatically.
In the following example, the
CODEBASE
parameter references the
mgaxctrl.cab
file located on the Autodesk MapGuide FTP site. Alterna-
tively, you can copy this file to your Web server and reference the file
there. You can find a copy of this file in the
\ActiveXCab
folder on the
Autodesk MapGuide CD:
<OBJECT ID="map" WIDTH=300 HEIGHT=200
CLASSID="CLSID:62789780-B744-11D0-986B-00609731A21D"
CODEBASE="ftp://adeskftp.autodesk.com/webpub/mapguide/ver6/
mgaxctrl.cab#Version=6,0,x,x">
<PARAM NAME="URL"
VALUE="http://www.mapguide.com/maps/usa.mwf">
<EMBED SRC="http://www.mapguide.com/maps/usa.mwf"
NAME="map" WIDTH=300 HEIGHT=200
PLUGINSPAGE="<www.autodesk.com/mapguideviewerdownload>">
</OBJECT>
Note that in your applications, you should change the release (
#Version
)
number from
6,0,x,x
to the actual release number of Autodesk
MapGuide you are using. You can find the release number using the Help
➤
Help About menu command in the user interface or the
MGMap.aboutDlg
method.
Summary of Contents for 15606-011408-9300 - MAP R6.3 UPG
Page 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Page 6: ...vi ...
Page 16: ...16 ...
Page 30: ...30 ...
Page 84: ...84 ...
Page 134: ...134 ...
Page 202: ...202 ...