new Texture(options)
Add texture effects on maps or layers
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | * | Properties
 | 
Requires:
- module:ol.filter
Extends
Requires
- module:ol.filter
Methods
- 
    getActive()
- 
    
    Get filter active - Inherited From:
 Returns:- Type
- bool
 
- 
    getPattern(x, y)
- 
    
    Get translated pattern Parameters:Name Type Description xnumber offset ynumber offset 
- 
    postcompose()
- 
    
    Draw pattern over the map on postcompose 
- 
    setActive(b)
- 
    
    Activate / deactivate filter Parameters:Name Type Description bbool - Inherited From:
 
- 
    setFilter(options)
- 
    
    Set texture Parameters:Name Type Description options* PropertiesName Type Description imgImage | undefined Image object for the texture srcstring Image source URI scalenumber scale to draw the image. Default 1. rotatebool Whether to rotate the texture with the view (may cause animation lags on mobile or slow devices). Default is true. crossOriginnull | string | undefined The crossOrigin attribute for loaded images. 
 ol-ext
ol-ext