Pitney Bowes MapXtreme User Manual

Page 603

Advertising
background image

Appendix J: Migrating to MapXtreme

Comparing MapXtreme’s Object Model to MapX

MapXtreme v7.1

610

Developer Guide

Map

Map has now been separated into two entities: Map and MapControl.

MapControl contains functionality applicable to the
System.Windows.Forms.Control; an object that can be embedded in a
WinForm.

Map contains the actual mapping functionality, regardless of how it is being
viewed (whether it is a WinForm or an export.)

The following is a list of properties/methods in the former Map class and how
they are being handled in the MapXtreme model:

Annotations: Obsolete.

CenterX/Y: Map.Center

ConvertCoord: DisplayTransform.ToDisplay(),
DisplayTransform.FromDisplay()

CreateCustomTool: Inherit from MapTool or any of the Custom* tools
available that provide marquee-line drawing capabilities using the mouse.

CurrentTool: MapTools.LeftButtonTool, MapTools.MiddleButtonTool,
MapTools.RightButtonTool. You can access MapTools through the
MapControl.MapTools property.

Datasets: Obsolete. Tables are accessible through the MICatalog.

Dataset: Obsolete.

DatasetGeoField: Obsolete. See Map.Dataset.

DatasetTheme: Obsolete. See Map.Dataset.

DefaultStyle

DisplayCoordSys: Map.GetDisplayCoordSys().

Distance: CoordSys.Distance().

DynamicSelectionSupport:
MapTools.DynamicSelectionModeSelectMapTool.DynamicSelectionEnabl
ed

EditableLabels

ExportMap: MapExport class that allows exporting a map with a wide-
range of options.

ExportSelection: MapExport.ExportSelection

FeatureEditMode enums:

miEditModeFeature -> MapTools.NodeMode = false

miEditModeNode -> MapTools.NodeMode = true

miMoveDuplicateNodes -> MapTools.MoveDuplicateNodes

miDeleteDuplicateNodes -> MapTools.DeleteDuplicateNodes

miEditModeAddNode -> MapTools.AddNodeMode

FeatureFactory: FeatureProcessor

GeoDictionary: Geodictionary

Geoset: Obsolete.

MapX 5.0

MapXtreme

Advertising