Class: FillAttribute

ol.interaction. FillAttribute

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


new FillAttribute(options, properties)

Parameters:
Name Type Description
options *

extentol.interaction.Select options

Properties
Name Type Argument Description
active boolean

activate the interaction on start, default true

name string <optional>
cursor boolean | string

interaction cursor if false use default, default use a paint bucket cursor

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
*

getCursor()

Get the interaction cursor

Returns:

cursor

Type
string

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


setCursor(cursor)

Define the interaction cursor

Parameters:
Name Type Description
cursor string

CSS cursor