ZipcodePolygonRenderer Class |
Namespace: Telogis.GeoBase.ZipCodes
The ZipcodePolygonRenderer type exposes the following members.
Name | Description | |
---|---|---|
ZipcodePolygonRenderer | Initializes a new instance of the ZipcodePolygonRenderer class |
Name | Description | |
---|---|---|
BackgroundColor |
Sets the background color, usually transparent.
| |
BorderPen |
Sets the ZipCode polygon border style.
| |
FillColor |
Sets the ZipCode polygon fill color.
| |
Font |
Sets the font.
| |
FontColor |
Sets the font color.
| |
HaloColor |
Sets the color of the text glow.
| |
HaloWidth |
Sets the size of the text halo.
| |
RequiredRendermodes |
Specifies which stages of rendering this renderer should be called.
| |
ShowLabels |
Set to true to display labels.
|
Name | Description | |
---|---|---|
ClearFilter |
Clears filters that are applied to the renderer.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FilterZipCodes(ListString) |
Only renders the ZipCodes in the given list, a maximum of 200 zipCodes can be filtered.
This replaces any existing filter.
| |
FilterZipCodes(ZipCodeType) |
Only render ZipCodes with the specified ZipCodeType.
This replaces any existing filter.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Render |
Called when this item should render itself on the map.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
public MyForm() { InitializeComponent(); // Use a multirepository to ensure that we use the same repository for // custom data that we use for the map data. SimpleRepository usa = new SimpleRepository(@"..\Data\USA.gbfs"); SimpleRepository customData = new SimpleRepository(@"..\Data\MyCustomData.gbfs"); MultiRepository mr = new MultiRepository(); mr.AddRepository(usa); mr.AddRepository(customData); // set our current thread to use our MultiRepository Repository.CurrentThreadRepository = mr; // Create a ZipcodePolygonRenderer to draw the custom data on top of the map data ZipcodePolygonRenderer renderer = new ZipCodePolygonRenderer(); // Set the style of the zipcode polygons by setting the renderer parameters. renderer.RequiredRendermodes = RenderMode.Labelling; renderer.BorderPen = Pens.Gold; // Apply the renderer to the map. mapCtrl1.Renderer = renderer; }