| Basic Examples |
|
These examples show you how to use the Autodesk MapGuide Viewer API. They are not meant to be complete applications, but instead serve to illustrate how the API works. Please feel free to reuse and modify any of the sample code. For advanced examples, click here.
Note: Most of these examples reference data on the Autodesk MapGuide Web site, so you will need Internet access to run them and, of course, you will need to download and install Autodesk MapGuide Viewer on your system.
|
This example demonstrates how to embed the Autodesk MapGuide Viewer in a simple Web page. Users can use the buttons below the map to load different maps into the Autodesk MapGuide Viewer and display the About Autodesk MapGuide dialog box. |
|
|
This example demonstrates the use of the Autodesk MapGuide Viewer in a multi-frame HTML page. The Autodesk MapGuide Viewer is in its own frame, and is specified to grow or shrink as the window is resized. Users can use buttons in another frame to load different maps into the Autodesk MapGuide Viewer and display the Preferences and About Autodesk MapGuide dialog boxes. |
|
|
This example shows another approach to interface design. It provides the same API functionality as the Simple Frameset example, but uses JavaScript HREFs and an HTML table to create a different look. Note that the map legend and status bar have been suppressed. |
|
|
This example demonstrates Viewer navigation techniques. Users can use buttons in the lower frame to pan and zoom and controls in the side frame to scroll the map and zoom to predefined locations. |
|
|
This example demonstrates selection techniques with the Autodesk MapGuide Viewer. A list box to the right of the map shows the United States. When users select states from the list box, they are selected on the map. Users can use additional controls to display the names and keys of selected states, clear the display, and select features by radius. |
|
|
This file contains short JavaScript and HTML examples that you use in your own applications. |