Last updated

API / geotoolkit / scene / RestrictScaleStrategy / RestrictScaleStrategy

Class: RestrictScaleStrategy

scene.RestrictScaleStrategy.RestrictScaleStrategy

Strategy for restriction scaling on transformation

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
enabledbooleanEnable flag
maxscalenumberMaximum absolute scale restriction [1; +Infinity]
minscalenumberMinimum absolute scale restriction [0; 1]

Contents

Constructors

new RestrictScaleStrategy(options)

new RestrictScaleStrategy(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

ScaleScrollStrategy.constructor

Methods

adjustTransformation

adjustTransformation(model, newTr): Transformation

Adjusts input transformation

Parameters

Name Type Description
modelAbstractNodemodel
newTrTransformationtransformation to adjust

Returns

Transformation

adjusted transformation

Inherited from

ScaleScrollStrategy.adjustTransformation


getClassName

getClassName(): string

Returns

string

Inherited from

ScaleScrollStrategy.getClassName


getMaxScale

getMaxScale(): number

Returns max scale

Returns

number


getMinScale

getMinScale(): number

Returns min scale

Returns

number


getProperties

getProperties(): OptionsOut

Gets properties

Returns

OptionsOut

properties

Overrides

ScaleScrollStrategy.getProperties


isEnabled

isEnabled(): boolean

Returns enable state

Returns

boolean

enable state

Inherited from

ScaleScrollStrategy.isEnabled


setEnabled

setEnabled(enabled): RestrictScaleStrategy

Set enable state

Parameters

Name Type Description
enabledbooleansets the enabled state

Returns

RestrictScaleStrategy

this

Inherited from

ScaleScrollStrategy.setEnabled


setMaxScale

setMaxScale(scale): RestrictScaleStrategy

Set max scale

Parameters

Name Type
scalenumber

Returns

RestrictScaleStrategy

this


setMinScale

setMinScale(scale): RestrictScaleStrategy

Set min scale

Parameters

Name Type
scalenumber

Returns

RestrictScaleStrategy

this


setProperties

setProperties(properties): RestrictScaleStrategy

Sets the projection properties

Parameters

Name Type Description
propertiesOptionsproperties

Returns

RestrictScaleStrategy

this

Overrides

ScaleScrollStrategy.setProperties


getClassName

Static getClassName(): string

Returns

string

Inherited from

ScaleScrollStrategy.getClassName