Related Topics |
---|
Renderers provide the framework for a layer's symbology. Every symbol must be inside a renderer.
<Renderer>
</Symbol>
</Renderer>
Renderers and symbols are included in each layer. In the following example, a SIMPLEPOLYGONSYMBOL is used to symbolize the countries. The symbol is inside a SIMPLERENDERER.
<LAYER type="featureclass" name="Countries" visible="true" id="1"> <DATASET name="countries" type="polygon" workspace="shp_ws-0" /> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL fillcolor="255,255,153"/> </SIMPLERENDERER> </LAYER> |
Many, but not all, renderers and symbols are available in Author. The following table lists all the renderers, which attributes are supported in Author, which attributes are not accessible, and which attributes are partially accessible.
The following table summarizes which renderers are available in Author and which ones must be added in a text or XML editor. If an attribute is partially supported, Author adds it to the map configuration file, but you do not have full access to all attribute values in Author.
Renderer | Attributes fully supported in Author | Attributes not supported in Author | Attributes partially supported in Author |
---|---|---|---|
EXACT for unique symbols maps. | All attributes are supported | ||
GROUPRENDERER: required when two or more renderers are used to describe a layer. | Fully supported (no attributes) | ||
OTHER for features and labels that do not fit in any RANGE or EXACT category. | Element not supported | ||
RANGE for graduated symbol maps. | label, lower, upper | equality | |
RASTER_RENDERER: Classifies pixel values in a raster layer. | Element not supported | ||
SCALEDEPENDENTRENDERER: allows you to change the symbology of a layer when a specified scale is met. | All attributes are supported | ||
SIMPLELABELRENDERER: labels the features in a layer using data from a specified field in the database. | field | featureweight, labelbufferratio, labelweight | howmanylabels, labelpriorities, linelabelposition, rotationalangles |
SIMPLERENDERER: provides the framework for drawing features in a layer using one symbol. | Fully supported (no attributes) | ||
VALUEMAPLABELRENDERER: applies label formats based on different classifications in a specified field in the database. | Supports only SHIELDSYMBOL | ||
VALUEMAPRENDERER: classifies features in a layer according to values in a specified field in the database. | All attributes are supported |
As with renderers, most symbols are available when using Author, some are available with some limitations, and some are not available at all. The following table provides a summary of which symbols are available or partially available when using Author and which ones must be added or modified in a text or XML editor.
Symbol | Attributes fully supported in Author | Attributes not supported in Author | Attributes partially supported in Author |
---|---|---|---|
HASHLINESYMBOL: a symbol used to denote railroads. | color | antialiasing, interval, overlap, transparency, type, width | linethickness, tickthickness |
RASTERFILLSYMBOL: a symbol for filling polygons using an image. | image, url | antialiasing, overlap, transparency | |
RASTERMARKERSYMBOL: a symbol for denoting points using an image. | image, url | antialiasing, hotspot, overlap, shadow, size, transparency, usecentroid | |
SHIELDSYMBOL: a symbol for denoting highway numbers. | font, fontcolor, fontsize, shadow, type | antialiasing, labelmode, midsize | fontstyle |
SIMPLELINESYMBOL: a symbol for denoting a line. | color, type, width | antialiasing, jointype, overlap | captype, transparency |
SIMPLEMARKERSYMBOL: a symbol for denoting a point. | color, type, width | antialiasing, outline, overlap, shadow, usecentroid | transparency |
SIMPLEPOLYGONSYMBOL: a symbol for filling a polygon. | boundary, boundarycolor, boundarytype, boundarywidth, fillcolor, filltype | antialiasing, boundaryjointype, fillinterval, overlap | boundarycaptype, boundarytransparency, filltransparency, transparency |
TEXTSYMBOL: a label used for text. | antialiasing, blockout, font, fontcolor, fontsize, glowing, shadow | interval, outline, printmode | fontstyle |
Several symbols and labels are not available in Author, but you can add them in a text or XML editor.
For more information on renderers and symbols, see Using Renderer Elements, which gives an explanation and examples of each renderer, including how to create complex symbols and labels.
If you are adding a new layer:
The following example uses VALUEMAPRENDERER. For more examples, see Using Renderer Elements.
<LAYER type="featureclass" name="Crime" visible="true" id="2"> <DATASET name="Crime" type="point" workspace="shp_ws-0" /> <VALUEMAPRENDERER lookupfield="CODE"> <EXACT value="1" label="Type 1"> <SIMPLEMARKERSYMBOL color="27,127,27" type="triangle" width="6" /> </EXACT> <EXACT value="2" label="Type 2"> <SIMPLEMARKERSYMBOL color="227,27,27" type="circle" width="10" /> </EXACT> <EXACT value="3" label="Type 3"> <TRUETYPEMARKERSYMBOL transparency="1.0" glowing="0,255,255" font="ESRI Cartography" fontstyle="bold" character="252" fontcolor="255,255,0" fontsize="16" /> </EXACT> <OTHER> <SIMPLEMARKERSYMBOL type="square" width="4" /> </OTHER> </VALUEMAPRENDERER> </LAYER> |
You can continue to open and save map configuration files in Author after adding or modifying renderers and symbols. The exception is when using RASTER_RENDERER. Once you have added this element, you should not open or save your map configuration file in Author. Your edits will be removed.