136
|
Chapter 7
Applications
Overview
This chapter provides examples of how you might use the Autodesk
MapGuide Viewer API to create real-world applications. Be sure to also visit
the Autodesk MapGuide Web site at
www.autodesk.com/mapguide
for addi-
tional information about Autodesk MapGuide development, including demo
applications, real customer sites, and other developer resources.
When you have finished reviewing the following examples, be sure to read
Chapter 6, “Using Reports to Query and Update Data Sources,” which
provides more information about creating custom reports and server-side
scripts that enable users to dynamically update attribute data sources. This
technique is illustrated in the Municipal Application, which begins on page
140.
Custom Redlining Application
Redlining applications allow a user to add annotations to a drawing or map
without using the original authoring application or modifying the original
document. You can use the Autodesk MapGuide Viewer API to create a
custom redlining application that allows users to mark up a map using the
Autodesk MapGuide Viewer. The user’s markups are saved to a special layer
type called a client redline layer. Client markups can be printed or saved
(along with the rest of the map) to an MWF.
You can make your application as sophisticated as your needs warrant, but
the basic process for creating a redlining application is simple.
To create a custom redline application
1
Use the
MGMap.createLayer
method to create the redline layer, or, if the
layer already exists, you can access it with the
MGMap.getMapLayer
method.
2
Use the
MGMapLayer.createMapObject
method to add an empty red-
line object to the layer.
3
Use the
MGMapObject
add methods to add one or more primitives to the
redline object (primitives are the individual symbols, polylines, polygons,
or text blocks that make up a redline object). You can add a single primi-
tive or combine several primitives to create a complex object. For exam-
ple, you might create a complex object consisting of an arrow and a text
callout.
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 ...