GeoExt

Table Of Contents

Previous topic

GeoExt.LayerOpacitySlider

Next topic

GeoExt.LegendPanel

GeoExt.LegendImage

Extends
xtype
gx_legendimage
class GeoExt.LegendImage(config)
Show a legend image in a BoxComponent and make sure load errors are dealt with.

Config Options

Configuration properties in addition to those listed for Ext.BoxComponent.

defaultImgSrc
String Path to image that will be used if the legend image fails to load. Default is Ext.BLANK_IMAGE_URL.
imgCls
String Optional css class to apply to img tag
url
String The url of the image to load

Public Methods

Public methods in addition to those listed for Ext.BoxComponent.

LegendImage.setUrl()
Parameter:urlString The new URL.

Sets the url of the legend image.