View tools, Select tools, View tools select tools – Pitney Bowes MapXtreme User Manual

Page 142

Advertising
background image

Chapter 7: Desktop Applications, Controls, Dialogs, and Tools

MapXtreme Desktop Tools API

MapXtreme v7.1

142

Developer Guide

View Tools

The View tools (ZoomMapTool, CenterMapTool, and PanMapTool) change the view of the map
accordingly to the tool being used. These tools are part of the default tool collection. If you begin
building your desktop applications with a MapXtreme template, these tools will appear on the default
toolbar.

The LabelMapTool allows you to label features on the map. This tool is not included in the default
tool collection. on the MapForm template. To add it to the MapControl, first add a ToolStrip from the
Visual Studio Toolbox, right-click on the context menu item LabelToolStripButton.

To add it. click on the Collections ... button under the Buttons property of the MapToolBar.

Select Tools

The Select family of tools (SelectMapTool, SelectPointMapTool, SelectPolygonMapTool,
SelectRadiusMapTool, SelectRectMapTool, and SelectRegionMapTool) select points and regions
that fall within the geometric object shaped by the use of these tools. For example, the
SelectRectMapTool selects objects that fall within the rectangle. SelectMapTool is the abstract base
class that the other select tools derive from.

L

MapXtreme does not support the intersection of an object with a polyline, hence there is no
select polyline tool.

The SelectPointMapTool can be used to rotate objects.

A SelectNode mode allows individual points to be moved, added, or removed from objects. See

Editing a FeatureGeometry with the Select Tool on page 157

for an example.

Advertising