The HeatMapLegend control displays minimum and maximum counts with image legend. It utilizes HTML Canvas to draw the legend image.
| ALKMaps. | The HeatMapLegend control displays minimum and maximum counts with image legend. |
| Properties | |
| imageLegendElement | For legend image color gradient |
| minValueElement | For minimum value |
| maxValueElement | For maximum value |
| header | Legend title header |
| body | Legend body |
| layerId | The layer that this control works with |
| visible | Determines this control is allowed to be visible or not. |
| Functions | |
| draw | Draw the control. |
| drawItems | Draw legend items. |
| updateMinMax | Updates minimum and maximum counts. |
| updateLegendGradient | Updates legend color gradient. |
| changeVisibility | Changes control’s visibility. |
Draw the control.
draw: function()
Draw legend items.
drawItems: function()
Updates minimum and maximum counts.
updateMinMax: function( min, max )
Updates legend color gradient.
updateLegendGradient: function( colorGradient )
Changes control’s visibility.
changeVisibility: function( show )