created addHeatRampLegend and addTransparencyRampLegend