API / geotoolkit / scene / RestrictScaleStrategy / RestrictScaleStrategy
scene.RestrictScaleStrategy.RestrictScaleStrategy
Strategy for restriction scaling on transformation
↳
RestrictScaleStrategy
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
enabled | boolean | Enable flag |
maxscale | number | Maximum absolute scale restriction [1; +Infinity] |
minscale | number | Minimum absolute scale restriction [0; 1] |
Constructors
• new RestrictScaleStrategy(options?)
| Name | Type |
|---|---|
Optional options | Options |
ScaleScrollStrategy.constructor
Methods
▸ adjustTransformation(model, newTr): Transformation
Adjusts input transformation
| Name | Type | Description |
|---|---|---|
model | AbstractNode | model |
newTr | Transformation | transformation to adjust |
adjusted transformation
ScaleScrollStrategy.adjustTransformation
▸ getClassName(): string
string
ScaleScrollStrategy.getClassName
▸ getMaxScale(): number
Returns max scale
number
▸ getMinScale(): number
Returns min scale
number
▸ getProperties(): OptionsOut
Gets properties
properties
ScaleScrollStrategy.getProperties
▸ isEnabled(): boolean
Returns enable state
boolean
enable state
▸ setEnabled(enabled): RestrictScaleStrategy
Set enable state
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
this
ScaleScrollStrategy.setEnabled
▸ setMaxScale(scale): RestrictScaleStrategy
Set max scale
| Name | Type |
|---|---|
scale | number |
this
▸ setMinScale(scale): RestrictScaleStrategy
Set min scale
| Name | Type |
|---|---|
scale | number |
this
▸ setProperties(properties): RestrictScaleStrategy
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | Options | properties |
this
ScaleScrollStrategy.setProperties
▸ Static getClassName(): string
string