@JsType(isNative=true)
public interface IControl
Modifier and Type | Method and Description |
---|---|
HTMLElement |
onAdd(Map map)
Should contain code that creates all the neccessary DOM elements for the control, adds listeners on relevant map events, and returns the element containing the control.
|
void |
onRemove(Map map)
Optional, should contain all clean up code (e.g.
|
HTMLElement onAdd(Map map)
map
- the mapvoid onRemove(Map map)
map
- the map