Add support to set the 'title' property of a control such that it will
be displayed when hovering over the control in a control.panel via its panel_div. r=me (Closes #822) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -46,7 +46,17 @@
|
||||
t.ok(!toolControl.active && anotherToolControl.active && toggleControl.active,
|
||||
"activated the other tool control, the first one is inactive and the toggle control still active.");
|
||||
}
|
||||
|
||||
function test_02_Control_Panel_titles (t) {
|
||||
t.plan(2);
|
||||
var panel = new OpenLayers.Control.Panel();
|
||||
var toolControl = new OpenLayers.Control.ZoomBox({
|
||||
title:"Zoom box: Selecting it you can zoom on an area by clicking and dragging."
|
||||
});
|
||||
panel.addControls([toolControl]);
|
||||
t.eq(panel.controls.length, 1, "added a control to the panel");
|
||||
t.eq(panel.controls[0].title, toolControl.panel_div.title, "the title is correctly set");
|
||||
}
|
||||
|
||||
function test_Control_Panel_getBy(t) {
|
||||
|
||||
var panel = {
|
||||
|
||||
Reference in New Issue
Block a user