Click or drag to resize

ZipcodePolygonRenderer Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Allows zipcode polygons to be rendered on a map.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.ZipCodesZipcodePolygonRenderer

Namespace:  Telogis.GeoBase.ZipCodes
Assembly:  geobase.net (in geobase.net.dll) Version: 4.83.0.0
Syntax
public class ZipcodePolygonRenderer : IMapRenderer

The ZipcodePolygonRenderer type exposes the following members.

Constructors
  NameDescription
Public methodZipcodePolygonRenderer
Initializes a new instance of the ZipcodePolygonRenderer class
Top
Properties
  NameDescription
Public propertyBackgroundColor
Sets the background color, usually transparent.
Public propertyBorderPen
Sets the ZipCode polygon border style.
Public propertyFillColor
Sets the ZipCode polygon fill color.
Public propertyFont
Sets the font.
Public propertyFontColor
Sets the font color.
Public propertyHaloColor
Sets the color of the text glow.
Public propertyHaloWidth
Sets the size of the text halo.
Public propertyRequiredRendermodes
Specifies which stages of rendering this renderer should be called.
Public propertyShowLabels
Set to true to display labels.
Top
Methods
  NameDescription
Public methodClearFilter
Clears filters that are applied to the renderer.
Public methodEquals (Inherited from Object.)
Public methodFilterZipCodes(ListString)
Only renders the ZipCodes in the given list, a maximum of 200 zipCodes can be filtered. This replaces any existing filter.
Public methodFilterZipCodes(ZipCodeType)
Only render ZipCodes with the specified ZipCodeType. This replaces any existing filter.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRender
Called when this item should render itself on the map.
Public methodToString (Inherited from Object.)
Top
Examples
In this example, a zipcode renderer is used to draw custom map data on top of a map that uses the default map style for rendering the other map features.
C#
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;
}
See Also