Description:
This sample renderer allows the user to display simple junctions based on the number of connected edges. The renderer
demonstrates how to create a custom renderer with an associated property page that can be included in the list of
available renderers in ArcMap. The code also demonstrates how to limit renderers to a specific set of feature classes
(in this case, simple junctions). Lastly, this sample creates a working entry for the rendered layer that appears in
the Table of Contents and will display in a legend.
Products: ArcView: VB6
Platforms: WindowsRequires: VB: An ArcMap session with at least one simple junction feature class loaded.
|
How to use:[VB]
- Register this sample's dll by compiling the sample or by using Regsvr32.exe.
- Use the Categories.exe program located in ArcInfo's bin directory
and add the ValenceRend component from this sample's DLL to the 'ESRI Renderer Property Pages' category.
- Close and re-start ArcMap.
- Add a simple junction feature class to ArcMap and open it's properties menu.
- Browse to the Symbology tab and select 'Network Renderers'. Click on one of the colors
to change it, or simply click 'OK'/'Apply' to use the renderer.
- Symbol properties can also be changed directly through the layer's entry in the Table
of Contents (TOC). Right click on one of the symbols to change it's color. Double click
to change other properties or select a different symbol.
- The TOC entry will also display on any legend that includes this layer.