LegendHtml and OpacitySlider

LegendHtml and OpacitySlider

LegendHTML and OpacitySlider Simple Example

LegendHTML and OpacitySlider Simple Example

LegendHTML and OpacitySlider Simple Example

AMAZONES - Biodiversity

AMAZONES - Biodiversity

Map publishing customization

Map publishing customization

AreaCategorical and GetLegend.

AreaCategorical and GetLegend.

AreaIntegral and SummedArea

AreaIntegral and SummedArea

LegendHtml and OpacitySlider are by default visible only inside layer description panel, but they can be added to any arbitrary place using the ‘legendHtml’ and the OpacitySlider. The legendHtml add a representation of the map legends, and the OpacitySlider add a tool to change the map opacity.

Usage legend html: “\{\{legendHtml\}\}” Usage opacity slider: “\{\{opacityslider\}\}”

Mappia API

 
 

setQueryGlobalProperties: {Function}({{globalProperties}}) && {{QUERY_DESCRIPTION}}

A function that allows to define custom global functions that can be used in order to define properties or even inside the functions callbacks.
globalProperties: {Object} The object that all his functions will became globals, each property can be a value or a object or evan a function.
PS: All properties defined here are added to the global scope and are removed when the query is changed.
@param QUERY_DESCRIPTION {Array{ConfigLayer} } Array of layers in the query.
Usage: ExtjsUtils.QUERY.setQueryGlobalProperties({globalCount: 0}) && QUERY_DESCRIPTION

Defaults to undefined
 

beforeCalc: {Function}({{inputs}})

Function called before each expression calculation.
Ps: Maps even without 'expression' function will call the 'beforeCalc' function on an input update.
Ps2: This function is called synchronously and the context is the map layer.
Usage: beforeCalc: function(inputs){}

Defaults to null