Versions Compared

Key

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

...

Name

Type

Required

Description

id

string

yes

The unique entity id for this entity

minScale

number

no

Min zoom scale for this entity to be reported for

maxScale

number

no

Max zoom scale for this entity to be reported for

isDefault

boolean

no

Set this entity as the default

Highlight

NameTypeDescription
vectorvectorThe styling for polygon and line based entities
markermarkerThe styling for point based entities

Vector

NameTypeDescription
strokeColorstringThe colour for the outline
strokeOpacityfloatThe opacity for the outline
strokeWidthintegerThe width of the outline
fillColorstringThe colour of the fill
fillOpacityfloatThe opacity of the fill

Marker

NameTypeDescription
iconstringA URL pointing to the icon to use
widthintThe width of the icon
heightintThe height of the icon
offsetxintThe x offset for the hotspot within the icon
offsetyintThe y offset for the hotspot within the icon
Note

See Client Views Data for other i18n options

...

Code Block
xml
xml
titleRefine and alter the entities
linenumberstrue
<view id="com.cohga.html.client.map.spatialIdentify">
        <entity id="property" maxScale="12000"/>
        <entity id="road" isDefault="true"/>
        <entity id="suburb" minScale="25000"/>
</view>
Code Block
languagexml
titleChanging the highlight styles
<view id="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>
</view>