public class CircleMarker extends Circle
Constructor and Description |
---|
CircleMarker(LatLng latlng)
Instantiates a circle marker given a geographical point.
|
CircleMarker(LatLng latlng,
PathOptions options)
Instantiates a circle marker given a geographical point and an options
object.
|
Modifier and Type | Method and Description |
---|---|
CircleMarker |
addTo(Map map)
Adds the layer to the map.
|
CircleMarker |
bindPopup(Popup popup)
Binds a popup to a click on this marker.
|
CircleMarker |
bindPopup(Popup popup,
PopupOptions options)
Binds a popup with a particular popup configuration options to a click on
this marker.
|
CircleMarker |
bindPopup(String html)
Binds a popup with a particular HTML content to a click on this marker.
|
CircleMarker |
bringToBack()
Brings the layer to the top of all path layers.
|
CircleMarker |
bringToFront()
Returns the LatLngBounds of the Circle Marker.
|
CircleMarker |
closePopup()
Closes the bound popup of the marker if it's opened.
|
CircleMarker |
openPopup()
Opens the popup previously bound by the
bindPopup method. |
CircleMarker |
redraw()
Brings the layer to the bottom of all path layers.
|
CircleMarker |
setLatLng(LatLng latlng)
Changes the marker position to the given point.
|
CircleMarker |
setRadius(double radius)
Changes the marker radius.
|
CircleMarker |
setStyle(PathOptions options)
Changes the appearance of a CircleMarker based on the options in the
PathOptions object. |
CircleMarker |
unbindPopup()
Unbinds the popup previously bound to the marker with
bindPopup . |
addEventListener, addMouseListener, addPopupListener, clearAllEventListeners, getBounds, removeEventListener, removeMouseListener, removePopupListener
public CircleMarker(LatLng latlng)
latlng
- location of the markerpublic CircleMarker(LatLng latlng, PathOptions options)
latlng
- location of the markeroptions
- marker configuration optionspublic CircleMarker setLatLng(LatLng latlng)
public CircleMarker setRadius(double radius)
public CircleMarker addTo(Map map)
public CircleMarker setStyle(PathOptions options)
PathOptions
object.public CircleMarker bringToFront()
bringToFront
in class Circle
public CircleMarker bringToBack()
bringToBack
in class Circle
public CircleMarker redraw()
public CircleMarker bindPopup(String html)
openPopup
method.public CircleMarker bindPopup(Popup popup)
openPopup
method.public CircleMarker bindPopup(Popup popup, PopupOptions options)
openPopup
method.public CircleMarker unbindPopup()
bindPopup
.unbindPopup
in class Circle
public CircleMarker openPopup()
bindPopup
method.public CircleMarker closePopup()
closePopup
in class Circle
Copyright © 2017. All rights reserved.