Functions | Properties
Map interaction
Map modules

Functions

void AxMap.LockWindow (MapWinGIS.tkLockMode LockMode)
 Locks the window so that any changes will not be displayed until it is unlocked.
void AxMap.ZoomIn (double Percent)
 Zooms the display in by the given factor.
void AxMap.ZoomOut (double Percent)
 Zooms the display out by the specified factor.
void AxMap.ZoomToLayer (int LayerHandle)
 Zooms the map display to the specified layer.
void AxMap.ZoomToMaxExtents ()
 Zooms the map to the maximum extents of all loaded layers.
void AxMap.ZoomToMaxVisibleExtents ()
 Zooms the map to the maximum extents of all loaded visible layers.
int AxMap.ZoomToPrev ()
 Zooms the map view to the previous extents if there are previous extents in the extents history.
void AxMap.ZoomToShape (int LayerHandle, int Shape)
 Zooms the map display to the specified shape in the shapefile contained by the specified layer.

Properties

bool AxMap.DisableWaitCursor [get, set]
 Gets or sets a boolean value which indicates whether a wait cursor will be displayed on map redraw.
MapWinGIS.tkLockMode AxMap.IsLocked [get, set]
 Checks to see if the map is currently locked or not.
double AxMap.MouseWheelSpeed [get, set]
 Gets or sets the speed of zooming with mouse wheel.
bool AxMap.SendMouseDown [get, set]
 Gets or sets whether the map sends mouse down events.
bool AxMap.SendMouseMove [get, set]
 Gets or sets whether the map sends mouse move events.
bool AxMap.SendMouseUp [get, set]
 Gets or sets whether the map sends mouse up events.
bool AxMap.SendOnDrawBackBuffer [get, set]
 Gets or sets a boolean value which indicates whether the map sends on draw back buffer events.
bool AxMap.SendSelectBoxDrag [get, set]
 Gets or sets whether the map sends the SelectBoxDrag event.
bool AxMap.SendSelectBoxFinal [get, set]
 Gets or sets whether the map sends the SelectBoxFinal event.
bool AxMap.TrapRMouseDown [get, set]
 Gets or sets a boolean value which can affect the displaying of the context menus in client code by the right click.
double AxMap.ZoomPercent [get, set]
 Gets or sets the factor by which to zoom the view of the map in or out.

Detailed Description

Here is a list of properties and methods which affect the way a user interacts with the map. This module is a part of the documentation of AxMap class.

dot_inline_dotgraph_6.png

Graph description


Function Documentation

Locks the window so that any changes will not be displayed until it is unlocked.

This is very useful if you are making a large number of changes at once and don't want the map to be redrawn between each change. The changes of drawing options in the auxillary classes (Shapefile, Labels, etc) won't cause the redraw of the map even if it's not locked.

Parameters:
LockModeThe state of the lock mode.
Examples:
AddLayers.cs, ShapefileToDrawingLayer.cs, and SortLayers.cs.
void AxMap.ZoomIn ( double  Percent)

Zooms the display in by the given factor.

Parameters:
PercentThe factor to zoom in by.
void AxMap.ZoomOut ( double  Percent)

Zooms the display out by the specified factor.

Parameters:
PercentThe factor to zoom out by.
void AxMap.ZoomToLayer ( int  LayerHandle)

Zooms the map display to the specified layer.

Parameters:
LayerHandleThe handle of the layer to zoom to.
Examples:
CreatePolygonShapefile.cs, and PolygonsWithHoles.cs.

Zooms the map to the maximum extents of all loaded layers.

Layers which are not visible are still used to compute maximum extents.

Examples:
IntersectionLength.cs, Segmentation.cs, and SelectByDistance.cs.

Zooms the map to the maximum extents of all loaded visible layers.

Layers which are not visible are not used to compute maximum extents.

Zooms the map view to the previous extents if there are previous extents in the extents history.

Returns:
Returns the number of extents left in the extents history after zooming to previous extents.
void AxMap.ZoomToShape ( int  LayerHandle,
int  Shape 
)

Zooms the map display to the specified shape in the shapefile contained by the specified layer.

Parameters:
LayerHandleThe handle of the layer containing the shape to zoom to.
ShapeThe index of the shape to zoom to.
Examples:
ZoomToValues.cs.

Properties

bool AxMap.DisableWaitCursor [get, set]

Gets or sets a boolean value which indicates whether a wait cursor will be displayed on map redraw.

Examples:
Tracking.cs.

Checks to see if the map is currently locked or not.

double AxMap.MouseWheelSpeed [get, set]

Gets or sets the speed of zooming with mouse wheel.

The default values is 0.5. The values in 0.1 - 10.0 range are accepted. The value 1.0 will turn off the zooming by mouse wheel.

bool AxMap.SendMouseDown [get, set]

Gets or sets whether the map sends mouse down events.

Examples:
EditAttributes.cs, LabelSelection.cs, MarkPoints.cs, RemoveShape.cs, and ZoomToValues.cs.
bool AxMap.SendMouseMove [get, set]

Gets or sets whether the map sends mouse move events.

Examples:
ToolTip.cs.
bool AxMap.SendMouseUp [get, set]

Gets or sets whether the map sends mouse up events.

bool AxMap.SendOnDrawBackBuffer [get, set]

Gets or sets a boolean value which indicates whether the map sends on draw back buffer events.

bool AxMap.SendSelectBoxDrag [get, set]

Gets or sets whether the map sends the SelectBoxDrag event.

bool AxMap.SendSelectBoxFinal [get, set]

Gets or sets whether the map sends the SelectBoxFinal event.

Examples:
LabelSelection.cs, and SelectBox.cs.
bool AxMap.TrapRMouseDown [get, set]

Gets or sets a boolean value which can affect the displaying of the context menus in client code by the right click.

double AxMap.ZoomPercent [get, set]

Gets or sets the factor by which to zoom the view of the map in or out.

 All Classes Files Functions Enumerations Properties