[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit3d](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d) / [scene](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3) / [surface](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#surface) / [contour](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#contour) / [MajorMinorStrategy](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy) / MajorMinorStrategy

# Class: MajorMinorStrategy

[contour](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#contour).[MajorMinorStrategy](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy).MajorMinorStrategy

A contour's class that controls the drawing of major and minor isolines.

<br>
MajorStep variable indicates the elevation step between two adjacent major isoline, i.e. 500 feet.
MinorIncrement variable indicates the minor isoline increments between two adjacent major isoline, i.e. 3 increments.
<br>
For example, <br>
________________  major 800 ft <br>
----------------  minor        <br>
----------------  minor        <br>
________________  major 300 ft <br>

## Table of contents

Constructors
- [new MajorMinorStrategy(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy.md#new majorminorstrategy(options))


Methods
| [clone](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#clone) | [equals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#equals) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#getclassname) |
|  --- | --- | --- |
| [getOptions](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#getoptions) | [getProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#getproperties) | [setMajorStep](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#setmajorstep) |
| [setMinorIncrement](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#setminorincrement) | [setOptions](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#setoptions) | [setProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#setproperties) |
| [stringify](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#stringify) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy#getclassname-1) |


Css Properties
| Name  | Type  | Description |
|  --- | --- | --- |
| `contour` | [`Contour`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.contour.contour#css-props) |  |
| `contour-textureoptions` | [`TextureOptions`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#surface-1#abstractsurface#abstractsurface#textureoptions) | Transformation options to use on the diffuse color texture.<br>
(No effect if option.texture has not been set yet) |
| `contour-textureoptions-clipoutofrange` | `boolean` | If enabled, the textured area will be limited to the texture size.<br>
By default is true (to allow OpenGL texture repeating outside of range, this need to be set to false) |
| `contour-textureoptions-coordinatemode` | [`TextureCoordinateMode`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3.surface-1.textureconstants#texturecoordinatemode) | The texture coordinate mapping type.<br>
Determine how the texture size, offset and rotation are interpreted.<br>
Default is TextureCoordinateMode.Local |
| `contour-textureoptions-enable` | `boolean` | Enable or disable (show or hide) the texture, for convenience |
| `contour-textureoptions-fliphorizontal` | `boolean` | Mirror the texture on its own horizontal axis (U axis in UV mapping terms) |
| `contour-textureoptions-flipvertical` | `boolean` | Mirror the texture on its own vertical axis (V axis in UV mapping terms) |
| `contour-textureoptions-opacity` | `number` | The texture opacity, default is 1.0 (opaque) |
| `contour-textureoptions-rotation` | `number` | The texture rotation around the origin point, in radian.<br>
Default value is 0 |
| `majorstep` | `number` | The step between each major Isoline, in elevation unit.
When set, the major isolines will attempt to generate on elevations multiples of majorstep.
ex: if (majorstep=100, zmin=899, zmax=1202) major isolines will generate at [900, 1000, 1100, 1200] |
| `minorincrement` | `number` | The number of increments between each major isoline, which will be separated by minor isolines.
The number of minor isolines generated between each major isoline will be (minorincrement - 1).
For example, minorincrement=2 will split the space between two major isoline in 2, separated by 1 minor Isoline.
Minimum accepted value is 1 |


## Contents

Constructors
#### new MajorMinorStrategy(options)

• **new MajorMinorStrategy**(`options?`)

#### Parameters

| Name  | Type  |
|  --- | --- |
| `Optional` `options` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy#options) |


Methods
#### clone

▸ **clone**(): [`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

Clone this strategy

#### Returns

[`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

this

#### equals

▸ **equals**(`strategy`): `boolean`

Check if the strategy equals this strategy

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `strategy` | [`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy) | the strategy to test |


#### Returns

`boolean`

bool

#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### getOptions

▸ **getOptions**(): `Required`<[`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy#optionsbase)&gt;

Get options

#### Returns

`Required`<[`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy#optionsbase)&gt;

#### getProperties

▸ **getProperties**(): `Required`<[`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy#optionsbase)&gt;

Get options

#### Returns

`Required`<[`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy#optionsbase)&gt;

#### setMajorStep

▸ **setMajorStep**(`step`): [`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

Set step for major isoline

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `step` | `number` | the steps for major isoline in elevation unit |


#### Returns

[`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

this

#### setMinorIncrement

▸ **setMinorIncrement**(`step`): [`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

Set step for minor isoline

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `step` | `number` | the increment for minor isoline in quantity unit |


#### Returns

[`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

this

#### setOptions

▸ **setOptions**(`options`): [`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

Set options

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `options` | [`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy#optionsbase) | the option for MajorMinorStrategy |


#### Returns

[`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

this

#### setProperties

▸ **setProperties**(`options?`): [`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

Set options

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `options` | [`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#majorminorstrategy#optionsbase) | the option for MajorMinorStrategy |


#### Returns

[`MajorMinorStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.surface-1.contour-1.majorminorstrategy.majorminorstrategy)

this

#### stringify

▸ **stringify**(): `string`

Return the options in string

#### Returns

`string`

stringify

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`