@JsType(isNative=true)
public interface ILayer
Modifier and Type | Method and Description |
---|---|
void |
onAdd(Map map)
Should contain code that creates DOM elements for the overlay, adds them to map panes where they should belong and puts listeners on relevant map events.
|
void |
onRemove(Map map)
Should contain all clean up code that removes the overlay's elements from the DOM and removes listeners previously added in onAdd.
|
void onAdd(Map map)
map
- the mapvoid onRemove(Map map)
map
- the map