Table of Contents

Class FleeBooleanStyle

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll
[Obsolete("This class is removed because its dependency https://www.nuget.org/packages/Jint/2.11.58 is not compatible with .NET Standard 2.1 so not working cross platforms. If you only want to use this feature on Windows please use the class <https://gitlab.com/thinkgeo/public/thinkgeo-desktop-maps/-/blob/master/samples/wpf/HowDoISample/Samples/CreatingStyles/FleeBooleanStyle/FleeBooleanStyle.cs> instead.")]
public class FleeBooleanStyle : Style
Inheritance
FleeBooleanStyle
Inherited Members

Constructors

FleeBooleanStyle()

Initializes a new instance of the FleeBooleanStyle class.

public FleeBooleanStyle()

Remarks

This is the default constructor for the style and should be called by inherited classes.

See Also

FleeBooleanStyle(string)

Initializes a new instance of the FleeBooleanStyle class.

public FleeBooleanStyle(string fleeExpression)

Parameters

fleeExpression string

The flee expression.

See Also

Properties

ColumnVariables

Gets the column variables.

public Collection<string> ColumnVariables { get; }

Property Value

Collection<string>

The column variables.

See Also

CustomFalseStyles

Gets the custom false styles.

public Collection<Style> CustomFalseStyles { get; }

Property Value

Collection<Style>

The custom false styles.

See Also

CustomTrueStyles

Gets the custom true styles.

public Collection<Style> CustomTrueStyles { get; }

Property Value

Collection<Style>

The custom true styles.

See Also

FleeExpression

Gets or sets the flee expression.

public string FleeExpression { get; set; }

Property Value

string

The flee expression.

See Also

StaticTypes

Gets the static types.

public Collection<Type> StaticTypes { get; }

Property Value

Collection<Type>

The static types.

See Also

UserVariables

Gets the user variables.

public Dictionary<string, object> UserVariables { get; }

Property Value

Dictionary<string, object>

The user variables.

See Also

Methods

DrawCore(IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate>)

This method draws the features on the view you provided.

protected override void DrawCore(IEnumerable<Feature> features, GeoCanvas canvas, Collection<SimpleCandidate> labelsInThisLayer, Collection<SimpleCandidate> labelsInAllLayers)

Parameters

features IEnumerable<Feature>

This parameter represents the features you want to draw on the view.

canvas GeoCanvas

This parameter represents the view you want to draw the features on.

labelsInThisLayer Collection<SimpleCandidate>

The labels will be drawn in the current layer only.

labelsInAllLayers Collection<SimpleCandidate>

The labels will be drawn in all layers.

Remarks

This abstract method is called from the concrete public method Draw. In this method, we take the features you passed in and draw them on the view you provided. Each style (based on its properties) may draw each feature differently.


When implementing this abstract method, consider each feature and its column data values. You can use the full power of the GeoCanvas to do the drawing. If you need column data for a feature, be sure to override the GetRequiredColumnNamesCore and add the columns you need to the collection. In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection.

See Also

GetRequiredColumnNamesCore()

This method returns the column data for each feature that is required for the style to properly draw.

protected override Collection<string> GetRequiredColumnNamesCore()

Returns

Collection<string>

This method returns a collection of column names that the style needs.

Remarks

This abstract method is called from the concrete public method GetRequiredFieldNames. In this method, we return the column names that are required for the style to draw the feature properly. For example, if you have a style that colors areas blue when a certain column value is over 100, then you need to be sure you include that column name. This will ensure that the column data is returned to you in the feature when it is ready to draw.

In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore we read that property and add it to the collection.

See Also

See Also