TipWidgetBase.js
Summary
No overview generated for 'TipWidgetBase.js'
mapbuilder.loadScript(baseDir+"/widget/WidgetBaseXSL.js");
function TipWidgetBase(widgetNode, model) {
WidgetBaseXSL.apply(this, new Array(widgetNode, model));
var width = widgetNode.selectSingleNode('mb:width');
this.width = width ? width.firstChild.nodeValue : 200;
var height = widgetNode.selectSingleNode('mb:height');
this.height = height ? height.firstChild.nodeValue : 150;
var opacity = widgetNode.selectSingleNode('mb:opacity');
this.opacity = opacity ? opacity.firstChild.nodeValue : 1;
var backgroundColor = widgetNode.selectSingleNode('mb:backgroundColor');
this.backgroundColor = backgroundColor ? backgroundColor.firstChild.nodeValue : 'D0D0D0';
var border = widgetNode.selectSingleNode('mb:border');
this.border = border ? border.firstChild.nodeValue : '0px';
this.config = new Object({
model: model,
stylesheet: this.stylesheet,
width: this.width,
height: this.height,
opacity: this.opacity,
backgroundColor: this.backgroundColor,
border: this.border
});
}
Documentation generated by
JSDoc on Tue Aug 21 08:12:28 2007