Versions Compared

Key

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

...

Code Block
xml
xml
titleRefine and alter the entities
linenumberstrue
<item action="com.cohga.html.client.map.spatialIdentify">
        <entity id="property" maxScale="12000"/>
        <entity id="road" isDefault="true"/>
        <entity id="suburb" minScale="25000"/>
</item>

Note that prior to Weave 2.5.18 there is a bug that stopped the following example from working, and from 2.5.18 on-ward the highlight section can be added to the map view anyway which allows it to be set once and applied to all the tools that highlight an entity so it doesn't need to be set for each tool individually.

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>