User Tools

Site Tools


thinkgeo.mapsuite.mvcedition.markerclassbreak

This is an old revision of the document!


ThinkGeo.MapSuite.MvcEdition.MarkerClassBreak

<!– Class –> Represents a break with a value and style defined.

Remarks

Marker class breaks are used in the ClassBreakMarkerStyle. They allow you to display markers differently depending on ranges of data in the FeatureSource.

How marker class breaks work:

You add a number of MarkerClassBreak objects to the ClassBreaks collection. The numeric values of the breaks are important and you must place the breaks in numerical order. For example, break 0 must be added before break 100. In each ClassBreak, you specify the marker styles that will be applied to markers. Also, in the ClassBreakMarkerStyle.ColumnName property, you specify the name of the column where we will find the data used to compare the breaks. The column needs to be a numeric type.

When we proceed to draw the style, we look through the ClassBreaks and select the ClassBreak that is where the features column data is greater than and closest to the break value.

Example:

Feature Value = 42

ClassBreak1.Value = 0 ClassBreak2.Value = 20 ClassBreak3.Value = 40 ClassBreak4.Value = 60

In this case, the break closest to the feature value without exceeding it is ClassBreak3(40). If the feature value had been less than zero, nothing would have been drawn. If the feature value were 1000, then ClassBreak4 would draw.

If you wanted to represent a value that is less than zero, you could do that as shown in the sample below.

Feature Value = -1

ClassBreak1.Value = Double.Min ClassBreak2.Value = 0 ClassBreak3.Value = 20 ClassBreak4.Value = 40

In this example, the first marker class break would be used.

Your features should be point-based, such as a cities.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodMarkerClassBreak Initialize a new instance of the MarkerClassBreak class.
Public MethodMarkerClassBreak Double Initialize a new instance of the MarkerClassBreak class using the value specified.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyCustomMarkerStyle MarkerStyle Gets or sets the style that could be any type of MarkerStyle.
Public PropertyDefaultMarkerStyle PointMarkerStyle Gets or sets the style that is applied to the markers if the CustomMarkerStyle is not defined.
Public PropertyValue Double Gets or sets the break value.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

MarkerClassBreak()

Initialize a new instance of the MarkerClassBreak class.

Overloads

Initialize a new instance of the MarkerClassBreak class.

Remarks

If you use this default constructor, then you should set the properties manually.

Parameters

Name Type Description

Go Back

MarkerClassBreak(Double)

Initialize a new instance of the MarkerClassBreak class using the value specified.

Overloads

Initialize a new instance of the MarkerClassBreak class.

Parameters

Name Type Description
value Double<!– System.Double –> A double value that is compared to the column value to determine whether to apply the specified style to markers.

Go Back

Protected Constructors

Public Methods

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

CustomMarkerStyle

Gets or sets the style that could be any type of MarkerStyle.

Remarks

The <strong>CustomMarkerStyle</strong> could be any type of <strong>MarkerStyle</strong>. This style has a higher priority than the <strong>DefaultMarkerStyle</strong>. This means that if you defined both <strong>DefaultMarkerStyle</strong> and <strong>CustomMarkerStyle</strong>, the <strong>CustomMarkerStyle</strong> will be used.

Return Value

Return Type
MarkerStyle<!– ThinkGeo.MapSuite.MvcEdition.MarkerStyle –>

<!– ThinkGeo.MapSuite.MvcEdition.MarkerClassBreak –> Go Back

DefaultMarkerStyle

Gets or sets the style that is applied to the markers if the CustomMarkerStyle is not defined.

Return Value

Return Type
PointMarkerStyle<!– ThinkGeo.MapSuite.MvcEdition.PointMarkerStyle –>

<!– ThinkGeo.MapSuite.MvcEdition.MarkerClassBreak –> Go Back

Value

Gets or sets the break value.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.MvcEdition.MarkerClassBreak –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.mvcedition.markerclassbreak.1440040131.txt.gz · Last modified: 2015/09/21 03:34 (external edit)