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!
This class allows you to choose different icons based on values in the data of a feature.
If you use this constructor, then you need to set the required properties manually.
None
IconValueStyle(String,IEnumerable<IconValueItem>)
This is the constructor for the class.
None
N/A
N/A
Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
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.
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.
GetLabelingCandidateCore(Feature,GeoCanvas)
This method determines whether the specified feature is a good candidate to be labeled, based on the labeling properties set.
This overridden method is called from the concrete public method Draw. In this method, we take the feature you passed in and determine if it is a candidate for labeling. If it is, then we will add it to the return collection. The algorithm to determine whether the label will draw is complex and determined by a number of properties and factors.
FilterFeatures(IEnumerable<Feature>,GeoCanvas)
N/A
N/A
FilterFeaturesCore(IEnumerable<Feature>,GeoCanvas)
N/A
N/A
AbbreviateText(Feature,GeoCanvas)
N/A
N/A
AbbreviateTextCore(Feature,GeoCanvas)
N/A
N/A
GetLabelingCandidates(Feature,GeoCanvas)
N/A
N/A
CheckDuplicate(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
N/A
N/A
CheckDuplicateCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
N/A
N/A
CheckOverlapping(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
N/A
N/A
CheckOverlappingCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
N/A
N/A
lD8=(PolygonShape,String,GeoCanvas)
N/A
N/A
N/A
N/A
N/A
OnFormatting(FormattingPositionStyleEventArgs)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
This property gets and sets the column name that will be used for the drawing and matching.
This column name will be used to draw the text on the icon (if necessary) and to also match the value in the IconStyleItem.
You should create your IconValueItems and place them in this collection for consideration.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Event Arguments:FormattedPositionStyleEventArgs
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.