ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
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 gradient style is a new style with the concept of GradientBrush. By specifying the LowerValue and its color, as well as the UpperValue and its color, we can set the color of each feature based on a column value using linear interpolation.
*System.Object ThinkGeo.MapSuite.WindowsPhoneCore.Style *ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
GradientStyle | String, Double, GeoSolidBrush, Double, GeoSolidBrush | This constructor creates a new instance by passing the ColumnName (which it will get the data from) as well as the lowerValue and its corresponding SolidBrush, and the upperValue and its corresponding SolidBrush. | |
GradientStyle | String, Double, GeoSolidBrush, Double, GeoSolidBrush, Double, GeoSolidBrush | This constructor creates a new instance by passing the ColumnName (which it will get the data from) as well as the lowerValue and its corresponding SolidBrush, the upperValue and its corresponding SolidBrush, and the NoDataValue and its corresponding SolidBrush. |
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
Draw | IEnumerable<BaseShape>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate> | Style | This method draws the shapes on the canvas you provided. |
Draw | IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate> | Style | This method draws the features on the canvas you provided. |
DrawSample | GeoCanvas, DrawingRectangleF | Style | |
Equals | Object | Object | |
GetHashCode | Object | ||
GetRequiredColumnNames | Style | This method returns the column data for each feature that is required for the style to properly draw. | |
GetType | Object | ||
ToString | Object |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
DrawCore | IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate> | Style(overriden) | This method draws the features on the canvas you provided. |
DrawSampleCore | GeoCanvas, DrawingRectangleF | Style | |
Finalize | Object | ||
GetRequiredColumnNamesCore | Style(overriden) | This method returns the column data for each feature that is required for the style to properly draw. | |
MemberwiseClone | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
ColumnName | String | This property gets and sets the column name used in the style. | |
IsActive | Boolean | Style | This property gets and sets the active status of the style. |
LowerGeoSolidBrush | GeoSolidBrush | This property gets and sets the solid brush that is used for the style's lower value. | |
LowerValue | Double | This property gets and sets the lower value used in the style. | |
Name | String | Style | This property gets and set the name of the style. |
NoDataSolidBrush | GeoSolidBrush | This property gets and sets the solid brush that is used for the style's NoDataValue. | |
NoDataValue | Double | This property gets and sets the no data value used in the style. | |
RequiredColumnNames | Collection<String> | Style | This property gets the collection of fields that are required for the style. |
UpperGeoSolidBrush | GeoSolidBrush | This property gets and sets the solid brush that is used for the style's upper value. | |
UpperValue | Double | This property gets and sets the upper value used in the style. |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
This constructor creates a new instance by passing the ColumnName (which it will get the data from) as well as the lowerValue and its corresponding SolidBrush, and the upperValue and its corresponding SolidBrush.
In this constructor, the NoDataValue defaults to -9999 and the NoDataBrush color is transparent.
Name | Type | Description |
---|---|---|
columnName | String<!– System.String –> | |
lowerValue | Double<!– System.Double –> | |
lowerGeoSolidBrush | GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> | |
upperValue | Double<!– System.Double –> | |
upperGeoSolidBrush | GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> |
This constructor creates a new instance by passing the ColumnName (which it will get the data from) as well as the lowerValue and its corresponding SolidBrush, the upperValue and its corresponding SolidBrush, and the NoDataValue and its corresponding SolidBrush.
Name | Type | Description |
---|---|---|
columnName | String<!– System.String –> | |
lowerValue | Double<!– System.Double –> | |
lowerGeoSolidBrush | GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> | |
upperValue | Double<!– System.Double –> | |
upperGeoSolidBrush | GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> | |
noDataValue | Double<!– System.Double –> | |
noDataSolidBrush | GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> |
This method draws the shapes on the canvas you provided.
This method is the concrete wrapper for the abstract method DrawCore. In this method, we take the shapes you passed in and draw them on the canvas you provided. Each style (based on its properties) may draw each shape differently.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
shapes | IEnumerable<BaseShape><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape} –> | This parameter represents the shapes you want to draw on the canvas. |
canvas | GeoCanvas<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoCanvas –> | This parameter represents the canvas you want to draw the shapes on. |
labelsInThisLayer | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.SimpleCandidate} –> | The labels will be drawn in the current layer only. |
labelsInAllLayers | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.SimpleCandidate} –> | The labels will be drawn in all layers. |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
This method draws the features on the canvas you provided.
This method is the concrete wrapper for the abstract method DrawCore. In this method, we take the features you passed in and draw them on the canvas you provided. Each style (based on its properties) may draw each feature differently.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
features | IEnumerable<Feature><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.WindowsPhoneCore.Feature} –> | This parameter represents the features you want to draw on the canvas. |
canvas | GeoCanvas<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoCanvas –> | This parameter represents the canvas you want to draw the features on. |
labelsInThisLayer | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.SimpleCandidate} –> | The labels will be drawn in the current layer only. |
labelsInAllLayers | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.SimpleCandidate} –> | The labels will be drawn in all layers. |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
canvas | GeoCanvas<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoCanvas –> | |
drawingExtent | DrawingRectangleF<!– ThinkGeo.MapSuite.WindowsPhoneCore.DrawingRectangleF –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
Return Type | Description |
---|---|
Boolean<!– System.Boolean –> |
Name | Type | Description |
---|---|---|
obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method returns the column data for each feature that is required for the style to properly draw.
This method is the concrete wrapper for the abstract method GetRequiredColumnNamesCore. 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.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
Return Type | Description |
---|---|
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> | This method returns a collection of column names that the style needs. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method draws the features on the canvas you provided.
This virtual method is called from the concrete public method Draw. In this method, we take the features you passed in and draw them on the canvas you provided. Each style (based on its properties) may draw each feature differently.
When implementing this virtual 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.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
features | IEnumerable<Feature><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.WindowsPhoneCore.Feature} –> | This parameter represents the features you want to draw on the canvas. |
canvas | GeoCanvas<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoCanvas –> | This parameter represents the canvas you want to draw the features on. |
labelsInThisLayer | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.SimpleCandidate} –> | The labels will be drawn in the current layer only. |
labelsInAllLayers | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.SimpleCandidate} –> | The labels will be drawn in all layers. |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style(overriden) –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
canvas | GeoCanvas<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoCanvas –> | |
drawingExtent | DrawingRectangleF<!– ThinkGeo.MapSuite.WindowsPhoneCore.DrawingRectangleF –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method returns the column data for each feature that is required for the style to properly draw.
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.
Return Type | Description |
---|---|
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> | This method returns a collection of column names that the style needs. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style(overriden) –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This property gets and sets the column name used in the style.
None.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle –> Go Back
This property gets and sets the active status of the style.
If the style is not active then it will not draw.
Return Type |
---|
Boolean<!– System.Boolean –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
This property gets and sets the solid brush that is used for the style's lower value.
None.
Return Type |
---|
GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle –> Go Back
This property gets and sets the lower value used in the style.
None.
Return Type |
---|
Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle –> Go Back
This property gets and set the name of the style.
This name is not used by the system; it is only for the developer. However, it can be used if you generate your own legend.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
This property gets and sets the solid brush that is used for the style's NoDataValue.
None.
Return Type |
---|
GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle –> Go Back
This property gets and sets the no data value used in the style.
None.
Return Type |
---|
Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle –> Go Back
This property gets the collection of fields that are required for the style.
This property gets the collection of fields that are required for the style. These are in addition to any other columns you specify in styles that inherit from this one. For example, if you have use a ValueStyle and it requires a column name for the value comparison, then that column does not need to be in this collection. You only use the RequiredColumnNames for columns you need beyond those required by specific inherited styles.
Return Type |
---|
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.Style –> Go Back
This property gets and sets the solid brush that is used for the style's upper value.
None.
Return Type |
---|
GeoSolidBrush<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeoSolidBrush –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle –> Go Back
This property gets and sets the upper value used in the style.
None.
Return Type |
---|
Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.GradientStyle –> Go Back