AMAZONES - Hydrologic services

AMAZONES - Hydrologic services

View the hydrologic services provided by the Amazon forest and calculate the losses accordingly to each product value. See http://amazones.info/.

Mappia API

 
 

getId: () => {String}

Returns the id of this component or automatically generates and returns an id if not defined yet view detailed documentation Ext.Component.getId().
Usage: Ext.Component.getId()

Defaults to undefined
 

getValue: {Function}({{column}}, {{line}}) => {String}

Get a value by the matrix index and column.
@param column {Number} Column index (First index is 0).
@param line {Number} Line index (First index is 0).
@return {String} Get the cell value.
Usage: inputs.id['loadjson'](0,0)

Defaults to undefined
 

columnNameToInd: {Function}({{columnName}}) => {Numeric}

Get the index of a column with the 'columnName' name.
@param columnName {String} Column name to search for.
@return {Number} When it exists returns the column index, otherwise -1.
Usage: inputs.id['loadjson']('total_ha')

Defaults to undefined
 

setValue: {function}({{column}}, {{line}}, {{value}})

Change a cell value by its cell index.

@param column {Numeric} Column index.
@param line {Numeric} Line index to change (ignore the header information when it exists).
@param value {*} New value to replace the older value.
Usage: inputs.id['loadjson'].setValue(2,2, 'myValue')

Defaults to undefined
 

getLines: {Function}({{columns}}, {{values}}, {{includeHeader}})

Get all lines that 'column' has the value equals to 'value'.

PS: To use the 'column' as index, it must be numeric, when the 'column' is a text the index is searched on header by its name.
PS: To filter multiple column each value and index one must be added to the 'columns' and 'values' arrays.
Ex: ([1,4,2], ["FIRST_COLUMN_VALUE","FORTH_COLUMN_VALUE", SECOND_COLUMN_VALUE])

@param columns {Array} (Optional) Array of indexes/names of the filtered columns.
@param values {Array} {Opcional) Array of values to match each column.
@returns {Array} If the parameters 'column' and 'value' aren't defined return all lines, otherwise returns only the matched lines.
Usage: (inputs.id['id'].getLines([1,2,4], [20, 'blue', false], false);)

Defaults to undefined
 

plugins.tip: {String}

Shows a tooltip with any html content with the value while dragging.
Usage: |plugins=tip=Filter {0}% of total cells|

Defaults to undefined
 

minValue: {Numeric}

Defines the minimum acceptable value to slider.
Usage: |minValue=0|

Defaults to undefined
 

maxValue: {Numeric}

Defines the maximum acceptable value to slider.
Usage: |maxValue=0|

Defaults to undefined
 

value: {Numeric}

Defines the initial value to slider with only one thumb.
Usage: |value=0|

Defaults to undefined
 

values: {Array}

Property to use two or more thumbs, each value is the initial thumb value
@type {Array} Array of initial values.
Usage: |values=[0,100]|

Defaults to undefined
 

backgroundColors: {Array}

Array of colors of background slider values, to define background slider color based in slider value.
The values are defined from most to minimum with two properties each:
- color: {String} CSS color definition for the current interval. i.e. 'red','black','#FF0000', '#000000'.
- startValue: {Numeric} If defined define the initial value which above will apply this color, otherwise use theminimum slider value as default.

Ex.:
backgroundColors: [
{
// Define background color to red when slider has value above 75.
color: "red",
startValue: 75
},
{
// Define background color starting from value 0.
// That results two intervals, from 0 to 75 as blue, and from 76 to 100 as red.
color: "blue",
startValue: 0
}
]
Usage: |backgroundColors=[{color:'red',startValue:75},{color:'blue'}]|

Defaults to undefined
 

changeLayers: {Array{Object} }

Change a internal layer in a given index by another.

PS: Its highly recommended to pass multiple configuration in a array, avoid call this function multiple
times in the same callback.
@param newConfig {Array|Object} One or more layers configurations with a property 'index' indicating the replacing layer.
Each config object must contain at least the following properties:
[{name: 'MAP_FULL_NAME', styles: 'MAP_STYLE', index: 'MAP_INDEX_TO_CHANGE'}, ... ]
@param force {Boolean} Force redraw even if no change is done when the layer is the same.
Usage: (layer.changeLayers({name:'CSR:estados', index:1} ))

Defaults to undefined
 

text: {String}

The label text content.
Usage: |text=content|

Defaults to undefined