VALUEMAPRENDERER | Examples |
<VALUEMAPRENDERER | Attribute
Description Table |
lookupfield ="string"
> (m) <EXACT... /> <OTHER... /> (m) <RANGE... /> </VALUEMAPRENDERER > | |
Bold: Attribute or child element is
required. (m): Child element can be used multiple times. |
Attribute | Usage | Back to Top |
---|---|---|
lookupfield | Name of field used to specify ranges
for RANGE or exact values for
EXACT. The field can be in
the layer table or in a joined table.
|
Example 1: When using EXACT. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> <SCREEN dpi="96" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="<path to WORLD ESRIDATA>"/> </WORKSPACES> <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> </MAP> </CONFIG> </ARCXML> |
Example 2: When using RANGE. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> <SCREEN dpi="96" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="<path to WORLD ESRIDATA>"/> </WORKSPACES> <LAYER type="featureclass" name="Countries" visible="true" id="1"> <DATASET name="CNTRY94" type="polygon" workspace="shp_ws-0" /> <VALUEMAPRENDERER lookupfield="AREA"> <RANGE lower="0.0" upper="1000000.0" label="Small"> <GRADIENTFILLSYMBOL type="horizontal" startcolor="255,0,0" finishcolor="0,255,0" overlap="true" /> </RANGE> <RANGE lower="1000000.001" upper="3000000.000" label="Medium"> <SIMPLEPOLYGONSYMBOL filltype="cross" fillinterval="4" fillcolor="255,146,0" /> </RANGE> <RANGE lower="3000000.001" upper="10000000" label="Large"> <SIMPLEPOLYGONSYMBOL filltype="bdiagonal" fillinterval="6" fillcolor="255,37,0" /> </RANGE> <OTHER> <SIMPLEPOLYGONSYMBOL filltype="solid" fillcolor="128,128,128" /> </OTHER> </VALUEMAPRENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |
Example 3: When creating a complex symbol for "Freeway". | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> <SCREEN dpi="96" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-73.933" miny="40.795" maxx="-73.911" maxy="40.811" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="<path to data>"/> </WORKSPACES> <LAYER type="featureclass" name="nyc_roads" visible="true" id="4" maxscale="1:35000"> <DATASET name="nyc_roads" type="line" workspace="shp_ws-0" /> <GROUPRENDERER> <VALUEMAPRENDERER lookupfield="ROAD_TYPE"> <EXACT value="Freeway"> <SIMPLELINESYMBOL type="solid" width="9" captype="square" jointype="round" color="0,0,0" /> </EXACT> <EXACT value="Street"> <SIMPLELINESYMBOL type="solid" width="8" captype="square" jointype="round" color="0,0,255" /> </EXACT> <OTHER> <SIMPLELINESYMBOL type="solid" width="1" captype="round" jointype="round" color="0,0,255" /> </OTHER> </VALUEMAPRENDERER> <VALUEMAPRENDERER lookupfield="ROAD_TYPE"> <EXACT value="Freeway"> <SIMPLELINESYMBOL type="solid" width="7" captype="square" jointype="round" color="255,0,0" /> </EXACT> </VALUEMAPRENDERER> <VALUEMAPRENDERER lookupfield="ROAD_TYPE"> <EXACT value="Freeway"> <SIMPLELINESYMBOL type="solid" width="3" captype="square" jointype="round" color="0,0,0" /> </EXACT> </VALUEMAPRENDERER> <VALUEMAPRENDERER lookupfield="ROAD_TYPE"> <EXACT value="Freeway"> <SIMPLELINESYMBOL type="solid" width="1" captype="round" jointype="round" color="255,255,255" /> </EXACT> </VALUEMAPRENDERER> </GROUPRENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |