BpControl Reference
Introduction
new BpControl()
Code:
var control = new BpControl(html?,size?,anchor?,className?);
map.addControl(control);
Remarks:
Notes:
- Aside from handling the boring stuff for you, this control makes the
map manage the positioning of the html
during window resizing, etc.
- If you want to be able to call control.get/setClassName(),
you'll need to pass a className to the contructor.
- The control will be hidden by default.
Call control.show() to show it.
- BpControls are not printable or selectable.
Examples:
get/setClassName()
Code:
var className = control.getClassName();
control.setClassName(className);
Remarks:
Notes:
- If you want to be able to call control.get/setClassName(),
you'll need to pass a className to the contructor.
Examples:
getDiv()
Code:
var div = control.getDiv();
Remarks:
getDivId()
Code:
var id = control.getDivId();
Remarks:
get/setContent()
Code:
var msg = control.getContent();
control.setContent(msg);
Remarks:
Examples:
hide()
Code:
control.hide();
Remarks:
Examples:
show()
Code:
control.show();
Remarks:
Examples:
|