Pitney Bowes MapXtreme User Manual

Page 82

Advertising
background image

Chapter 5: Web Applications, Controls, and Tools

MapXtreme Web Controls and Tools

MapXtreme v7.1

82

Developer Guide

LegendControl

The LegendControl allows you to display a legend for a given
MapControl. The legend that is returned is a non-interactive image. The
default export format is .GIF.

The legend to display can be specified at design time using its
LegendAlias or its index in the map's legend list. This can also be set
using JavaScript on the page. JavaScript can also be used to show and
hide the legend. You can arrange for the legend to be scrollable.

Both thematic and cartographic legends are supported in the
LegendControl.

The Legend Control web sample application supports this control. It
demonstrates how to create and use a customized LegendControl
based on our current web control architecture, and how to create a
theme and display a legend by sending requests to the server using
JavaScript without needing to refresh the whole page. For more
information, see the MapXtreme Learning Resources browser on your
Program menu or from the MapInfo website under Support & Training.
Expand the Learning Resources link and click on Sample Applications.

Map Tools

Description

CenterTool

Allows you to recenter the map by clicking on the map.

DistanceTool

Allows you to get the distance between two or more points by clicking
on the map.

NavigationTools

Allow you to pan the map by fixed directions: North, South, East, West,
NorthEast, NorthWest, SouthEast, and SouthWest.

PanTool

Allows you to reposition the map within its window by dragging in any
direction.

PointSelectionTool

Allows you to select a feature (nearest to the point) when clicked on the
map.

PolygonSelectionTool

Allows you to select all features whose centroids lie within the polygon.
The selection area is drawn on the map using mouse clicks
representing the nodes of the polygon. A double click closes/ends the
polygon.

RadiusSelectionTool

Allows you to select all features whose centroids lie within the radius.
The radius is drawn on the map using mouse clicks representing the
center and boundary of the circle. The selection radius is drawn on the
map using a click and drag operation.

RectangleSelectionTool Allows you to select all features whose centroids lie within the rectangle.

The rectangle selection area is drawn on the map using a click and drag
operation.

Advertising