Constructor
new MultiLayerSlider(props)
The constructor.
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | The properties. |
Extends
- React.Component
Methods
formatTip(value) → {String}
Formats the tip for the slider.
Parameters:
Name | Type | Description |
---|---|---|
value |
Number | the slider value |
Returns:
the formatted tip value
- Type
- String
getLayerIndexForSliderValue(value) → {Number}
Gets the matching index of the layer array for a given slider value
Parameters:
Name | Type | Description |
---|---|---|
value |
Number | the current slider value |
Returns:
The layer array index
- Type
- Number
getMarks() → {Object}
Creates the marks used with the slider based on the layers names.
Returns:
The marks object
- Type
- Object
getOpacityForValue(value) → {Number}
Gets the opacity for a given slider value
Parameters:
Name | Type | Description |
---|---|---|
value |
Number | The current slider value |
Returns:
The opacity
- Type
- Number
render()
The render function.
valueUpdated(value)
Called when the value of the slider changed.
Parameters:
Name | Type | Description |
---|---|---|
value |
Number | the new value |