[]
        
(Showing Draft Content)

C1.Win.FlexReport.CustomFields.Maps.C1Mapper

C1Mapper Class

Provides functionality that allows to use the C1.Win.Map.C1Map control to generate maps in reports.

Inheritance
C1Mapper
Namespace: C1.Win.FlexReport.CustomFields.Maps
Assembly: C1.Win.FlexReport.CustomFields.4.8.dll
Syntax
public class C1Mapper
Remarks

TODO:

  • allow to specify keys for tile sources that require it (CloudMadeMapsSource);
  • ?

Constructors

Name Description
C1Mapper(IMapperOwner)

Initializes a new instance of the C1Mapper class.

Properties

Name Description
Height

Gets or sets the height of C1.Win.Map.C1Map.

Width

Gets or sets the width of C1.Win.Map.C1Map.

Methods

Name Description
AddBoundingPoint(double, double)

Creates a new bounding box using the given coordinates.

ClearMarks()

Clears all previously added marks and lines. (Does not affect KML layers.)

DistancePix(double, double, double, double)

Calculates screen distance (in 96dpi pixels) between two points.

DoCenterAndZoom()

Centers and zooms the map based on owner settings (including auto zoom/center).

DrawLine(string, double, double, double, double, Color, DashStyle, double)

Adds a line to the lines layer.

DrawLine(string, double, double, double, double, Color, Color, DashStyle, double)

Adds a line to the lines layer.

DrawPoint(string, double, double, string, Font, Color, MarkerShape, double, Color, Color)

Adds a point.

GetImage(bool, double, double)

Gets a System.Drawing.Image representing the current map.

HideShowTools()

Sets visibility of the standard C1Maps tools (scale, pan and zoom) based on owner's settings.

RefreshImage(bool)

Gets image representing the current map, with the previous data.

ResetBoundingPoints()

Reset bounding rectangle to its default value.

UpdateKmlLayer(string, Stream, AddingKmlItemDelegate)

Adds a layer created from the specified KML stream.

Events

Name Description
TileLoaded

Occurs when the tile images is downloaded.