Add copyright
This commit is contained in:
parent
2936d1730c
commit
08c901d510
2 changed files with 27 additions and 1 deletions
|
@ -132,4 +132,25 @@ var CheckBoxPanel = ControlPanel.extend({
|
||||||
isChecked: function() {
|
isChecked: function() {
|
||||||
return this.checkBox.attr('checked');
|
return this.checkBox.attr('checked');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copyright
|
||||||
|
*/
|
||||||
|
var CopyrightPanel = ControlPanel.extend({
|
||||||
|
init: function(options) {
|
||||||
|
this._super(options);
|
||||||
|
this.initCopyRight();
|
||||||
|
},
|
||||||
|
initCopyRight: function() {
|
||||||
|
var me = this;
|
||||||
|
var html = me.options.html;
|
||||||
|
var copyright = $("<div />").css("padding", "0px 5px 2px 5px").css("font-size", "75%").css("text-align", "center");
|
||||||
|
if (html) {
|
||||||
|
copyright.html(html);
|
||||||
|
}
|
||||||
|
me.copyright = copyright;
|
||||||
|
|
||||||
|
me.getDiv().append(copyright);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
@ -29,6 +29,11 @@ function createScimapType(map, mapName) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var sciMapType = new google.maps.ImageMapType(sciMapTypeOptions);
|
var sciMapType = new google.maps.ImageMapType(sciMapTypeOptions);
|
||||||
|
new CopyrightPanel ({
|
||||||
|
map: map,
|
||||||
|
controlPositions: google.maps.ControlPosition.BOTTOM_RIGHT,
|
||||||
|
html: '© 2008 The Regents of the University of California and <a href="http://cns.iu.edu" >CNS.IU.EDU</a>'
|
||||||
|
});
|
||||||
map.mapTypes.set(mapName, sciMapType);
|
map.mapTypes.set(mapName, sciMapType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue