Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • visible: Controls if the layer is automatically visible. When false the user has to switch on the layer manually. By default the layer becomes automatically visible.
  • usedBySelectByMapItemTool: Controls if the layer is used by the "Select by map item tool" in the FEWS explorer to easily select all locations in a polygon.
  • selectByMapItemLocationRelation: When this element is specified an location relation is used to find locations at the map instead of the polygon border.

  • selectByMapItemAttributeEqualsWhen this element is specified a (multivalued) location attribute is used to find locations at the map instead of the polygon border.

  • label: Label that is displayed at the map. Labels are decluttered so not all labels will be visibile when zooming out. Note that by default the <labelsVisible> element of the <geoMap> is set to false. If you wish to display labels with the locations in a shape layer, you must set <labelsVisible> to true.
  • tooltip : information that is displayed when the user is moving the mouse cursor over a shape. To see this information turn on the 'Information' button. 
  • lineColor : color of the line
  • fillColor : color of the area
  • opaquenessPercentage: percentage of opaqueness.
  • lineWidth : width of the line
  • pointSize or pointIconId: allow size adjustment of points in a shape-layer, resp. displays an icon (as defined in LocationIcons.xml) at the points in the shape-layer (Notice: add filename extension!)
  • classBreaksAttributeName : name of a shape attribute (dbase column name) which is to be used to determine the class breaks.
  • classBreaks : used to define class breaks for the shape-layer. The fill color can depend on the value of a shape attribute. When the shape attribute is of type text, e.g. country name, add a class break for every country with a label that equals the country name. For the lower values use 1, 2, 3, ... etc

An example for color classification based on attributes is shown below. Notice that all possible values need to be included.

Code Block
languagexml
titleExample config for classification based on shape attribute
<esriShapeLayer id="WS Indonesia">
                <file>ws_indonesia</file>
                <geoDatum>WGS 1984</geoDatum>
                <visible>true</visible>
                <toolTip>%WS%</toolTip>
                <lineColor>gray</lineColor>
                <classBreaksAttributeName>Balai</classBreaksAttributeName>
                <classBreaks>
                    <break lowerValue="0" label="BWS Sulawesi II" color="aquamarine1"/>
                    <break lowerValue="1" label="BWS Papua" color="purple2"/>
                    <break lowerValue="2" label="BWS Maluku" color="red1"/>
                </classBreaks>
            </esriShapeLayer>


Since 2017.02 several label formatting elements are supported:

...