Versions Compared

Key

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

...

Code Block
languagexml
titleChanging the highlight styles
linenumberstrue
<item action="com.cohga.html.client.map.spatialIdentify">
        <highlight>
                <marker>
                        <icon>resources/images/markers/w-marker-red.png</icon>
                        <width>24</width>
                        <height>30</height>
                        <offsetx>-8</offsetx>
                        <offsety>-28</offsety>
                </marker>
                <vector>
                        <strokeWidth>3</strokeWidth>
                        <strokeColor xsd:type="xsd:string">#d27316</strokeColor>
                        <strokeOpacity>0.75</strokeOpacity>
                        <fillColor>red</fillColor>
                        <fillOpacity>0.25</fillOpacity>
                </vector>
        </highlight>
</item>

You can also change the tool which is used when identifying features on the map.  By default the tool used is a circle. Valid options are

  • DragCircle (default)
  • DragRectangle

  • Polyline

  • Polygon

  • Point

e.g. to change the tool to a DragRectangle

Code Block
languagexml
titleChanging the map action
linenumberstrue
<item action="com.cohga.html.client.map.spatialIdentify">
        <mapAction>DragRectangle</mapAction>
</item>