new FillAttribute(options, properties)
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
* | extentol.interaction.Select options Properties
|
||||||||||||||||
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