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 featuresArray.<ol.Feature> The features to modify
properties* The properties as key/value
-
getAttribute(key)
-
Get an attribute
Parameters:
Name Type Description keystring 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 activeboolean -
setAttribute(key, val)
-
Set an attribute
Parameters:
Name Type Description keystring 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 cursorstring CSS cursor