Map Display for the Java Edition
|
25
To display your map with Autodesk MapGuide Viewer, Java Edition
1
Start with the standard HTML
<APPLET>
tag.
2
Set the
CODE
parameter to the path to the
MGMapApplet.class
file in the
com.autodesk.mgjava
package. This package is where the API for Autodesk
MapGuide Viewer, Java Edition resides. You can find this package in the
mgjava.jar
archive file, which contains all Autodesk MapGuide Viewer,
Java Edition class files for Windows, Macintosh, or Solaris systems. There
is also an
mgjava.cab
file for Windows only. To download these files,
choose Help
➤
Contents
➤
Plug-In/Java Edition Downloads in the
Autodesk MapGuide Viewer API Help
. The
MGMapApplet
object provided by
the
MGMapApplet.class
file implements the
MGMap
object interface for
Autodesk MapGuide Viewer, Java Edition. Setting the
CODE
parameter to
MGApplet
instantiates Autodesk MapGuide Viewer, Java Edition.
3
Set the
VALUE
parameter to the URL of your Autodesk MapGuide Server
and the path to the MWF file for the map. For example:
<HTML>
<HEAD>
<TITLE> Autodesk MapGuide Viewer, Java Edition Example</TITLE>
</HEAD>
<BODY>
<CENTER>
<H2>Simple Invocation of Installed Autodesk MapGuide
Applet</H2>
<APPLET WIDTH=300 HEIGHT=200 ALIGN="baseline"
CODE="com/autodesk/mgjava/MGMapApplet.class">
<PARAM NAME="mwfURL"
VALUE="http://www.mapguide.com/maps/usa.mwf">
</APPLET>
</CENTER>
</BODY>
</HTML>
Содержание 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 ...