public final class ImageOverlay extends ILayer
Constructor and Description |
---|
ImageOverlay(String imageUrl,
LatLngBounds bounds)
Instantiates an image overlay object given the URL of the image and the
geographical bounds it is tied to.
|
ImageOverlay(String imageUrl,
LatLngBounds bounds,
ImageOverlayOptions options)
Instantiates an image overlay object given the URL of the image and the
geographical bounds it is tied to.
|
Modifier and Type | Method and Description |
---|---|
ImageOverlay |
addTo(Map map)
Adds the layer to the map.
|
ImageOverlay |
bindPopup(Popup popup)
Binds a given popup object to the overlay.
|
ImageOverlay |
bindPopup(Popup popup,
PopupOptions options)
Binds a given popup object with the given options to the overlay.
|
ImageOverlay |
bindPopup(String html)
Binds a popup with a particular HTML content to a click on this overlay.
|
ImageOverlay |
bringToBack()
Brings the layer to the bottom of all path layers.
|
ImageOverlay |
bringToFront()
Brings the layer to the top of all path layers.
|
ImageOverlay |
closePopup()
Closes the overlay's bound popup if it is opened.
|
ImageOverlay |
openPopup()
Opens the popup previously bound by the
bindPopup method. |
ImageOverlay |
setOpacity(double opacity)
Sets the opacity of the overlay.
|
ImageOverlay |
setUrl(String imageUrl)
Changes the URL of the image.
|
ImageOverlay |
unbindPopup()
Unbinds the popup previously bound to the overlay with
bindPopup . |
public ImageOverlay(String imageUrl, LatLngBounds bounds)
imageUrl
- URL of the imagebounds
- geographical boundspublic ImageOverlay(String imageUrl, LatLngBounds bounds, ImageOverlayOptions options)
imageUrl
- URL of the imagebounds
- geographical boundsoptions
- overlayer configuration optionspublic ImageOverlay addTo(Map map)
map
- The mappublic ImageOverlay setOpacity(double opacity)
opacity
- opacity of the overlaypublic ImageOverlay setUrl(String imageUrl)
imageUrl
- URL of the imagepublic ImageOverlay bringToFront()
public ImageOverlay bringToBack()
public ImageOverlay bindPopup(String html)
html
- poup HTML contentpublic ImageOverlay bindPopup(Popup popup)
popup
- popup objectpublic ImageOverlay bindPopup(Popup popup, PopupOptions options)
popup
- popup objectoptions
- popup configuration objectpublic ImageOverlay unbindPopup()
bindPopup
.public ImageOverlay openPopup()
bindPopup
method.public ImageOverlay closePopup()
Copyright © 2017. All rights reserved.