Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
This is an old revision of the document!
<!– Class –> This class allows you to display information by drawing points on an area based on a value from the features data.
This class allows you to display information by drawing points on an area based on a value from the features data. The higher the value is in the data, the greater the number of points that are drawn. The points themselves are distributed randomly inside of the polygon.
You would use this style if you have areas (such as counties) and numeric data (such as the number of births in those counties). In this example, you could plot a point in each county to represent each birth. A county will show a higher density of points if it is smaller or if there are more births there.
When you have data values that are too large to represent by plotting an individual point for each, or data that is too sparse, you can set the PointToValueRatio. Setting this will control the ratio of points drawn to the value in the data. For example, if you have a value of 100 in the data and you have the ratio set to 1, then you will get 100 points drawn. A ratio of higher than 1 will draw more points than the data value; in our example, a ratio of 2 will draw 200 points. Conversely, a ratio of less than 1 will draw fewer points than the data value; in our example, a ratio of 0.5 would draw 50 points.
*System.Object ThinkGeo.MapSuite.Core.Style *ThinkGeo.MapSuite.Core.DotDensityStyle
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | This is the constructor for the class. | ||
![]() | String, Double, Int32, GeoColor | This is the constructor for the class. | |
![]() | String, Double, PointStyle | This is the constructor for the class. |
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Style | Create a copy of style using the deep clone process. | |
![]() | IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate> | Style | This method draws the features on the canvas you provided. |
![]() | IEnumerable<BaseShape>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate> | Style | This method draws the shapes on the canvas you provided. |
![]() | GeoCanvas, DrawingRectangleF | Style | This method draws a sample feature on the canvas you provided. |
![]() | GeoCanvas | Style | |
![]() | Object | Object | |
![]() | Object | ||
![]() | Style | This method returns the column data for each feature that is required for the style to properly draw. | |
![]() | Object | ||
![]() ![]() | Uri | Style | |
![]() ![]() | Stream | Style | |
![]() | Stream | Style | |
![]() | String | Style | |
![]() | Object |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Style | Create a copy of style using the deep clone process. The default implementation method uses serialization. | |
![]() | IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate> | Style(overriden) | This method draws the features on the canvas you provided. |
![]() | GeoCanvas, DrawingRectangleF | Style | This method draws a sample feature on the canvas you provided. |
![]() | Object | ||
![]() | Style(overriden) | This method returns the column data for each feature that is required for the style to properly draw. | |
![]() | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
![]() | Dictionary<String,Collection<Vertex» | The cachedPoints for the dotdensity style to speed it up. | |
![]() | String | This property gets and sets the column name that will be used for the density value. | |
![]() | PointStyle | This property gets and sets a custom point style. | |
![]() | Collection<String> | Style | |
![]() | Boolean | Style | This property gets and sets the active status of the style. |
![]() | String | Style | This property gets and set the name of the style. |
![]() | GeoColor | This property gets and sets the color of the density points. | |
![]() | Int32 | This property gets and sets the point size of the density points. | |
![]() | Double | This property gets and sets the ratio of points to value in the data. | |
![]() | Collection<String> | Style | This property gets the collection of fields that are required for the style. |
Name | Return | DeclaringType | Summary |
---|---|---|---|
![]() | Collection<String> | Style |
Name | Event Arguments | DeclaringType | Summary |
---|
This is the constructor for the class.
This is the default constructor.
This is the default constructor. If you use this constructor, you should set the values by the properties.
Name | Type | Description |
---|
This is the constructor for the class.
This constructor allows you to specify the column name, point-to-value ratio, point size and point color.
This constructor allows you to set everything you need to a standard scenario.
Name | Type | Description |
---|---|---|
columnName | String<!– System.String –> | This parameter is the name of the column in the FeatureSource that will supply the data. |
pointToValueRatio | Double<!– System.Double –> | This parameter controls the point-to-value ratio for the random dots. |
pointSize | Int32<!– System.Int32 –> | This parameter controls the size of each randomly placed point in the area. |
pointColor | GeoColor<!– ThinkGeo.MapSuite.Core.GeoColor –> | This parameter controls the color of each randomly placed point in the area. |
This is the constructor for the class.
This constructor allows you to pass in the column name, point-to-value ratio and a custom point style.
If you require a custom point symbol, this constructor allows you to set everything you need. Custom points can include bitmaps and points that require custom fill brushes.
Name | Type | Description |
---|---|---|
columnName | String<!– System.String –> | This parameter is the name of the column in the FeatureSource that will supply the data. |
pointToValueRatio | Double<!– System.Double –> | This parameter controls the point-to-value ratio for the random dots. |
customPointStyle | PointStyle<!– ThinkGeo.MapSuite.Core.PointStyle –> | This parameter represents a custom point you want to draw. |
Create a copy of style using the deep clone process.
The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within.
Return Type | Description |
---|---|
Style<!– ThinkGeo.MapSuite.Core.Style –> | A cloned style. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.Core.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.Core.Feature} –> | This parameter represents the features you want to draw on the canvas. |
canvas | GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –> | This parameter represents the canvas you want to draw the features on. |
labelsInThisLayer | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.SimpleCandidate} –> | The labels will be drawn in the current layer only. |
labelsInAllLayers | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.SimpleCandidate} –> | The labels will be drawn in all layers. |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
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.Core.BaseShape} –> | This parameter represents the shapes you want to draw on the canvas. |
canvas | GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –> | This parameter represents the canvas you want to draw the shapes on. |
labelsInThisLayer | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.SimpleCandidate} –> | The labels will be drawn in the current layer only. |
labelsInAllLayers | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.SimpleCandidate} –> | The labels will be drawn in all layers. |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
This method draws a sample feature on the canvas you provided.
This method is the concrete wrapper for the abstract method DrawSampleCore. In this method we draw a sample style on the canvas you provided. This is typically used to display a legend or other sample area.
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 |
---|---|---|
canvas | GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –> | This parameter represents the canvas you want to draw the features on. |
drawingExtent | DrawingRectangleF<!– ThinkGeo.MapSuite.Core.DrawingRectangleF –> |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
canvas | GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –> |
<!– ThinkGeo.MapSuite.Core.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.Core.Style –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
<!– static –>
Return Type | Description |
---|---|
Style<!– ThinkGeo.MapSuite.Core.Style –> |
Name | Type | Description |
---|---|---|
styleUri | Uri<!– System.Uri –> |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
<!– static –>
Return Type | Description |
---|---|
Style<!– ThinkGeo.MapSuite.Core.Style –> |
Name | Type | Description |
---|---|---|
styleStream | Stream<!– System.IO.Stream –> |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
stream | Stream<!– System.IO.Stream –> |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
filePathName | String<!– System.String –> |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Create a copy of style using the deep clone process. The default implementation method uses serialization.
The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within.
Return Type | Description |
---|---|
Style<!– ThinkGeo.MapSuite.Core.Style –> | A cloned style. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
This method draws the features on the canvas you provided.
This overridden 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 overriding this 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.Core.Feature} –> | This parameter represents the features you want to draw on the canvas. |
canvas | GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –> | This parameter represents the canvas you want to draw the features on. |
labelsInThisLayer | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.SimpleCandidate} –> | The labels will be drawn in the current layer only. |
labelsInAllLayers | Collection<SimpleCandidate><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.SimpleCandidate} –> | The labels will be drawn in all layers. |
<!– ThinkGeo.MapSuite.Core.Style(overriden) –> Go Back
This method draws a sample feature on the canvas you provided.
This virtual method is called from the concrete public method Draw. In this method, we draw a sample style on the canvas you provided. This is typically used to display a legend or other sample area.
When implementing this virtual method, consider the canvas size and draw the sample image appropriately. You should keep in mind that the sample typically shows up on a legend.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
canvas | GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –> | This parameter represents the canvas you want to draw the features on. |
drawingExtent | DrawingRectangleF<!– ThinkGeo.MapSuite.Core.DrawingRectangleF –> |
<!– ThinkGeo.MapSuite.Core.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 it needs. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.Core.Style(overriden) –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
The cachedPoints for the dotdensity style to speed it up.
Return Type |
---|
Dictionary<String,Collection<Vertex»<!– System.Collections.Generic.Dictionary{System.String,System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.Vertex}} –> |
<!– ThinkGeo.MapSuite.Core.DotDensityStyle –> Go Back
This property gets and sets the column name that will be used for the density value.
This value should represent a value in the FeatureSource that is numeric. It will be used in conjunction with the PointToValueRatio property to deterime how many points are drawn in the area.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.Core.DotDensityStyle –> Go Back
This property gets and sets a custom point style.
You will use this property when you want to specify a point style that is not just a simple colored dot. You may want to use a bitmap or take advantage of a custom fill brush.
Return Type |
---|
PointStyle<!– ThinkGeo.MapSuite.Core.PointStyle –> |
<!– ThinkGeo.MapSuite.Core.DotDensityStyle –> Go Back
Return Type |
---|
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> |
<!– ThinkGeo.MapSuite.Core.Style –> 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.Core.Style –> 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.Core.Style –> Go Back
This property gets and sets the color of the density points.
Return Type |
---|
GeoColor<!– ThinkGeo.MapSuite.Core.GeoColor –> |
<!– ThinkGeo.MapSuite.Core.DotDensityStyle –> Go Back
This property gets and sets the point size of the density points.
If you have sparse data, one way to better fill the area is to use larger point sizes. The opposite is also true; if you have lots of data, smaller point sizes look better.
Return Type |
---|
Int32<!– System.Int32 –> |
<!– ThinkGeo.MapSuite.Core.DotDensityStyle –> Go Back
This property gets and sets the ratio of points to value in the data.
This property controls the ratio of points on the screen to numeric value in the data. For example, if you have a value of 100 in the data and you have the ratio set to 1, then you will get 100 points drawn. A ratio of higher than 1 will draw more points than the data value; in our example, a ratio of 2 will draw 200 points. Conversely, a ratio of less than 1 will draw fewer points than the data value; in our example, a ratio of 0.5 would draw 50 points.
Return Type |
---|
Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.Core.DotDensityStyle –> 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.Core.Style –> Go Back
Return Type |
---|
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> |
<!– ThinkGeo.MapSuite.Core.Style –> Go Back
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.