<feature>
This tag creates a field in the board for storing feature data (points, line strings, or polygons). The field is rendered as a button or link that can be used to open the map, and <eocfield> can be used on display views for default rendering.
Attribute | Allowed Values | Requirements | View Type | Description |
---|---|---|---|---|
address-field | %fieldname | Optional | Input | Name of the field that contains an address. If the address is separated into several fields you can list them by using commas and no spaces. This tag is useful for automatically geocoding the address upon opening the map. The attribute can be called address or address-field. |
autopopulate | address, lat-long, device | Optional | Input | Automatically populates the feature with data from the address field, data from the latitude and longitude fields, or the device's GPS location. |
icon-field | %fieldname or expression | Optional |
Display Input |
Specifies the field that indicates the icon for this feature, or contains an expression that includes the icon-field-list attribute to define the icon to use for the feature. |
icon-field-list | %listname | Optional |
Display Input |
When included in the icon-field attribute's expression, specifies the icon to use for the feature. |
icon-mode | (icon, label, none) icon | Optional | Display | Specifies the type of icon or label that appears with the feature on the map. If you specify none, no icon or label appears with the feature, but a tooltip appears when the user points to the feature. |
label-field | %fieldname | Optional | Input | Specifies the field that will provide the label for this feature. |
latitude-field | %fieldname | Optional | Input | Specifies the field that provides the latitude of the feature when autopopulate is used. |
locate | boolean | Optional | Input | If set to true, the user location will be automatically found when the view is opened. |
longitude-field | %fieldname | Optional | Input | Specifies the field that provides the longitude of the feature when autopopulate is used. |
map | %mapname | Optional |
Display Input |
Specifies the map that should be used; defined by the administrators in the Mapping Manager. |
name | CDATA | Required |
Display Input |
Name of the feature field. |
shape | point, linestring, polygon, circle | Optional | Input | Specifies the default feature type when opening from an input view. May be changed by the user after opening the map. |
status-field | %fieldname or expression | Optional |
Display Input |
Specifies the field that indicates the status for this feature, which is often a list with colors and icons assigned, or contains an expression using the status-field-list attribute to determine the feature's icon and color. |
status-field-list | %listname | Optional |
Display Input |
When included in the status-field attribute's expression, specifies the list indicating the feature's icon and color. |
target | %embedmap id | Optional | Display | Results in panning/zooming to the record when clicked. Used with the <embedmap> tag; value should be the embedmap ID. |
time-field | %fieldname | Optional | Display |
Specifies the field that contains the time data to be used by the Time Slider widget on maps used on the board. This field must contain time data. SeeView Data On a Timeline on Maps for details. |
tools | none, all | Optional | Input | If set to none, the only drawing tool visible on the edit page is the feature type specified in the shape attribute. If the tool attribute is not used or is set to all, all drawing features are available to the user. |
type | (button, link) button | Optional |
Display Input |
Specifies how the tag renders; either as a button or link. |
Example
<feature name="location" icon-mode="label" status-field="status" address-field="address"
shape="point" tools="none" type="link" class="webeoc-link">
<i class="icon-map"></i>Map
</feature>
Four attributes of the <feature> tag allow you to separate the icon and status for board features on a map. To accomplish this:
-
Define an expression in the status-field attribute. Then use the status-field-list attribute to determine the feature's color.
-
Define an expression in the icon-field attribute. Then use the icon-field-list attribute to determine the feature's icon.
When these attributes are used in this way, the icon-field expression determines the feature's icon and the status-field expression determines its color.
There are several options for geocoding information that can be entered into WebEOC Nexus. You can use addresses, latitude and longitude, or the current device's location.