User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.valueitem

ThinkGeo.MapSuite.WindowsPhoneCore.ValueItem

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> This class represents a single value to match and styles to draw.

Remarks

Value Style:

The ValueStyle allows you to match data in the FeatureSource against a value string. If the value matches, then we will use the style defined in that item to do the drawing. For example, let's say you have some data that contains states, and each state is categorized as either a high, medium or low pollution state. Based on the string values of “High”, Medium“ and “Low”, we can match on these. If a feature's data for the column matched the string “High”, then we would use the high ValueItem's styles to draw that feature. This can be applied to all kinds of things, such as road classifications, etc.

This can be somewhat slow because we have to match data from the FeatureSource. If performance is key, then instead of using the ValueStyle, we recommend that you create a set custom index for your layer, one index with only “High” elements, one for “Medium” and so on. Then load each as a separate layer. In this way, you would only have one data set, but multiple indexes. This is the fastest way if you are working with Shape Files. If you are working with spatial databases, then we suggest creating a view to segment out each category.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodValueItem This is a constructor for the class.
Public MethodValueItem String, AreaStyle This is a constructor for the class.
Public MethodValueItem String, LineStyle This is a constructor for the class.
Public MethodValueItem String, PointStyle This is a constructor for the class.
Public MethodValueItem String, TextStyle This is a constructor for the class.
Public MethodValueItem String, Collection<Style> This is a constructor for the class.

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 PropertyCustomStyles Collection<Style> This property gets the collection of custom styles.
Public PropertyDefaultAreaStyle AreaStyle This property gets and sets the default AreaStyle. You should use this style if your features are area-based.
Public PropertyDefaultLineStyle LineStyle This property gets and sets the default LineStyle. You should use this style if your features are line-based.
Public PropertyDefaultPointStyle PointStyle This property gets and sets the default PointStyle. You should use this style if your features are point-based.
Public PropertyDefaultTextStyle TextStyle This property gets and sets the default TextStyle. You should use this style if your features are text-based (such as labels).
Public PropertyValue String This property gets and sets the value that we use to match with the feature data. If the value matches, we use the style for this item.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

ValueItem()

This is a constructor for the class.

Overloads

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

Remarks

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

Parameters

Name Type Description

Go Back

ValueItem(String, AreaStyle)

This is a constructor for the class.

Overloads

This constructor allows you to specify an AreaStyle you want to use. You should use this if the features you are drawing are area-based. Alternatively, you can set the properties of the DefaultAreaSytle directly on the class.

Remarks

It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultAreaStyle.

Parameters

Name Type Description
value String<!– System.String –> This parameter is the value that will match with the data specified for the feature.
areaStyle AreaStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.AreaStyle –> This parameter is the style you want to draw with if the value matches.

Go Back

ValueItem(String, LineStyle)

This is a constructor for the class.

Overloads

This constructor allows you to specify a LineStyle you want to use. You should use this if the features you are drawing are line-based. Alternatively, you can set the properties of the DefaultLineSytle directly on the class.

Remarks

It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultLineStyle.

Parameters

Name Type Description
value String<!– System.String –> This parameter is the value that will match with the data specified for the feature.
lineStyle LineStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.LineStyle –> This parameter is the style you want to draw with if the value matches.

Go Back

ValueItem(String, PointStyle)

This is a constructor for the class.

Overloads

This constructor allows you to specify a PointStyle you want to use. You should use this if the features you are drawing are point based. Alternatively, you can set the properties of the DefaultPointSytle directly on the class.

Remarks

It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultPointStyle.

Parameters

Name Type Description
value String<!– System.String –> This parameter is the value that will match with the data specified for the feature.
pointStyle PointStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointStyle –> This parameter is the style you want to draw with if the value matches.

Go Back

ValueItem(String, TextStyle)

This is a constructor for the class.

Overloads

This constructor allows you to specify a TextStyle you want to use. You should use this if the features you are drawing are text based. Alternatively, you can set the properties of the DefaultTextSytle directly on the class.

Remarks

It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultTextStyle.

Parameters

Name Type Description
value String<!– System.String –> This parameter is the value that will match with the data specified for the feature.
textStyle TextStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.TextStyle –> This parameter is the style you want to draw with if the value matches.

Go Back

ValueItem(String, Collection<Style>)

This is a constructor for the class.

Overloads

This constructor allows you to specify a group of CustomStyles you want to use. You can add the potential AreaStyle, LineStyle, or PointStyle to the CustomStyles to draw areas, lines and points separately.

Parameters

Name Type Description
value String<!– System.String –> This parameter is the value that will match with the data specified for the feature.
customStyles Collection<Style><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Style} –> This parameter represents the styles you want to draw with if the value matches.

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

CustomStyles

This property gets the collection of custom styles.

Remarks

The custom styles allow you to use styles other than the default style properties of the class. In this way, you can use a DotDensityStyle or any other style in the API.

Return Value

Return Type
Collection<Style><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Style} –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ValueItem –> Go Back

DefaultAreaStyle

This property gets and sets the default AreaStyle. You should use this style if your features are area-based.

Remarks

The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.

Return Value

Return Type
AreaStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.AreaStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ValueItem –> Go Back

DefaultLineStyle

This property gets and sets the default LineStyle. You should use this style if your features are line-based.

Remarks

The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.

Return Value

Return Type
LineStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.LineStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ValueItem –> Go Back

DefaultPointStyle

This property gets and sets the default PointStyle. You should use this style if your features are point-based.

Remarks

The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.

Return Value

Return Type
PointStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ValueItem –> Go Back

DefaultTextStyle

This property gets and sets the default TextStyle. You should use this style if your features are text-based (such as labels).

Remarks

The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.

Return Value

Return Type
TextStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.TextStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ValueItem –> Go Back

Value

This property gets and sets the value that we use to match with the feature data. If the value matches, we use the style for this item.

Remarks

The value must match exactly. If more complex matching is required, we suggest you use the RegexStyle. The RegexStyle enables you to use regular expressions, which are very powerful for fuzzy matching.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ValueItem –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.windowsphonecore.valueitem.txt · Last modified: 2017/03/16 21:59 (external edit)