Class: FillAttribute

ol.interaction. FillAttribute


new FillAttribute(options, properties)

A Select interaction to fill feature's properties on click.

Parameters:
Name Type Description
options *

extentol.interaction.Select options

Properties
Name Type Description
active boolean

activate the interaction on start, default true

cursor boolean

use a paint bucket cursor, default true

properties *

The properties as key/value

Fires:
  • event:setattributestart
  • event:setattributeend

Extends

  • ol.interaction.Interaction

Methods


fill(features, properties)

Fill feature attributes

Parameters:
Name Type Description
features Array.<ol.Feature>

The features to modify

properties *

The properties as key/value


getAttribute(key)

Get an attribute

Parameters:
Name Type Description
key string
Returns:

val

Type
*

getAttributes()

get attributes

Returns:

The properties as key/value

Type
*

setActive(active)

Activate the interaction

Parameters:
Name Type Description
active boolean

setAttribute(key, val)

Set an attribute

Parameters:
Name Type Description
key string
val *

setAttributes(properties)

Set attributes

Parameters:
Name Type Description
properties *

The properties as key/value