new Transform(options)
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | any | Properties
 | 
Fires:
- (event:select|rotatestart|rotating|rotateend|translatestart|translating|translateend|scalestart|scaling|scaleend)
Extends
- ol.interaction.Pointer
Members
- 
    Cursors
- 
    
    Cursors for transform 
- 
    style
- 
    
    Style for handles 
Methods
- 
    drawSketch_(draw)
- 
    
    Draw transform sketch Parameters:Name Type Description drawboolean only the center 
- 
    getCenter()
- 
    
    Get the rotation center Returns:- Type
- ol.coordinate | undefined
 
- 
    getFeatures()
- 
    
    Get the features that are selected for transform Returns:ol.Collection 
- 
    getGeometryRotateToZero_(f, clone, rotated)
- 
    
    Rotate feature from map view rotation Parameters:Name Type Description fol.Feature the feature cloneboolean clone resulting geom rotatedol.geom.Geometry geometry 
- 
    handleUpEvent_(evt)
- 
    
    
    
    
    
        Parameters:Name Type Description evtol.MapBrowserEvent Map browser event. Returns:falseto stop the drag sequence.- Type
- boolean
 
- 
    select(feature, add)
- 
    
    Select a feature to transform Parameters:Name Type Description featureol.Feature the feature to transform addboolean true to add the feature to the selection, default false 
- 
    setActive(b)
- 
    
    Activate/deactivate interaction Parameters:Name Type Description bbool 
- 
    setCenter(c)
- 
    
    Set the rotation center Parameters:Name Type Description col.coordinate | undefined the center point, default center on the objet 
- 
    setDefaultStyle( [options] [, stroke] [, fill] [, pointStroke] [, pointFill])
- 
    
    Set default sketch style Parameters:Name Type Argument Description optionsObject <optional> 
 strokeol.style.Stroke <optional> 
 stroke style for selection rectangle, default red dash fillol.style.Fill <optional> 
 fill style for selection rectangle, default red pointStrokeol.style.Stroke <optional> 
 stroke style for handles, default red pointFillol.style.Fill <optional> 
 fill style for handles, default white 
- 
    setMap(map)
- 
    
    Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass nullto just remove the interaction from the current map.Parameters:Name Type Description mapol.Map Map. 
- 
    setPointRadius( [pointRadius])
- 
    
    Set the point radius to calculate handles on points Parameters:Name Type Argument Default Description pointRadiusnumber | Array.<number> | function <optional> 
 0 radius for points or a function that takes a feature and returns the radius (or [radiusX, radiusY]). If not null show handles to transform the points 
- 
    setSelection(features)
- 
    
    Update the selection collection. Parameters:Name Type Description featuresol.Collection.<ol.Feature> the features to transform 
- 
    setStyle(style, olstyle)
- 
    
    Set sketch style. Parameters:Name Type Description stylestyle Style name: 'default','translate','rotate','rotate0','scale','scale1','scale2','scale3','scalev','scaleh1','scalev2','scaleh3' olstyleol.style.Style | Array.<ol.style.Style>