Exports the default locationCount utility method as mapp.ui.utils.locationCount().

Methods

(inner) locationCount(layer) → {Integer}

Returns a number representing the amount of locations that pass the filter.

Parameters:
NameTypeDescription
layerlayer
Properties
NameTypeAttributesDescription
layer.keyString

The layers' identifier.

layer.filterObject

The filter currently active on the layer.

layer.mapviewObject

The mapview associated to the layer.

layer.queryparamsObject<optional>

The query parameters that are being used on the layer.

Returns:

The number of locations that pass the filter.

Type: 
Integer