/layer/featureHover

Methods

(inner) featureHover(feature, layer)

The featureHover method will send an xhr request for the provided feature argument. The returned string value will be displayed in an infotip element in the feature layer mapview.

Parameters:
NameTypeDescription
featureobject
layerlayer

A decorated mapp layer object.

Properties
NameTypeDescription
feature.propertiesobject

The feature properties object.

Properties
NameTypeDescription
countnumber

The number of features at the feature coordinates.

idstring

The feature id.

layer.mapviewobject

The mapp mapview object.

layer.style.hoverobject

The hover style object.

Properties
NameTypeDescription
displayboolean

Whether to display hover infotips.

fieldstring

The field name to use for the hover label.

renderfunction

A function to render the hover infotip content.