@JsType(isNative=true) public class ImageOverlay extends java.lang.Object implements ILayer
Modifier and Type | Method and Description |
---|---|
static L |
addTo(Map map)
Adds the overlay to the map.
|
static L |
bringToBack()
Brings the layer to the bottom of all overlays.
|
static L |
bringToFront()
Brings the layer to the top of all overlays.
|
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.
|
static L |
setOpacity(java.lang.Number opacity)
Sets the opacity of the overlay.
|
@JsMethod public static L addTo(Map map)
map
- the map@JsMethod public static L setOpacity(java.lang.Number opacity)
opacity
- the opacity@JsMethod public static L bringToFront()
@JsMethod public static L bringToBack()
@JsMethod public void onAdd(Map map)
ILayer