PROBLEM

Problem with legend display when two VALUEMAPRENDERERs with same value but different lookupfield are used

Last Published: April 25, 2020

Description

In an Image Service, only one legend entry shows on a Legend Image in an HTML Viewer if the EXACT 'value' attributes for two VALUEMAPRENDERERs are the same, but the VALUEMAPRENDERER 'lookupfield' is different.

<GROUPRENDERER>
<VALUEMAPRENDERER lookupfield="POP90_SQMI">
<EXACT value="30" label="1990 Population">
</VALUEMAPRENDERER>

<VALUEMAPRENDERER lookupfield="STATE_FIPS">
<EXACT value="30" label="State FIPS">
</VALUEMAPRENDERER>
</GROUPRENDERER>

Cause

This is a problem when there are two VALUEMAPRENDERERs inside a GROUPRENDERER. In this scenario, the VALUMAPRENDERERs have a different lookup table but the value for EXACT is the same. The ArcIMS Spatial Server keeps track of only the first EXACT value even though there are two VALUEMAPRENDERERs. This leads to one, instead of two entries in the legend.

Solution or Workaround

This issue is known limit with ArcIMS. To ensure all features listed in the various VALUEMAPRENDERERs show in the legend, the EXACT values must be different.

<GROUPRENDERER>
<VALUEMAPRENDERER lookupfield="POP90_SQMI">
<EXACT value="30" label="1990 Population">
</VALUEMAPRENDERER>

<VALUEMAPRENDERER lookupfield="STATE_FIPS">
<EXACT value="31" label="State FIPS">
</VALUEMAPRENDERER>
</GROUPRENDERER>

If the values must be the same, two layers will need to be added to the map configuration file with separate VALUEMAPRENDERERs.

    Article ID:000004846

    Software:
    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic