...
Code Block |
---|
| xml |
---|
| xml |
---|
title | Refine and alter the entities |
---|
linenumbers | true |
---|
|
<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 |
---|
language | xml |
---|
title | Changing the highlight styles |
---|
linenumbers | true |
---|
|
<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> |