Articles and Tutorials
GSControl
A control that belongs to a map. This class is abstract and should not be used directly. All custom map controls should subclass GSControl in the following way:
GSUtil.extend(GSCompactZoomControl, GSControl);
function GSCompactZoomControl(zoomAnchor) {
var params = ["name", document.createElement("div")];
GSCompactZoomControl.baseConstructor.apply(this, params);
}
| Constructor Summary | |
| GSControl (name, control) | |
| Method Summary | |
| void | finalize() Called by the map when this control is removed so that it do any clean up necessary |
| void | render() Adds this zoom control to its container |
| void | setContainer(container) Sets the containing HTMLElement for this control |
| Constructor Detail |
GSControl
GSControl(name, control)-
- name - a unique identifier for the map control
- control - the HTML element that represents the zoom control
Parameters:
| Method Detail |
finalize
void finalize()- Called by the map when this control is removed so that it do any clean up necessary
render
void render()- Adds this zoom control to its container
setContainer
void setContainer(container)- Sets the containing HTMLElement for this control
-
- container - the HTMLElement that should be used as the container for this control
Parameters:

