new EllipseMarker(latlng, optionsopt) → {EllipseMarker}
Create a new ellipse marker.
Parameters
-
latlng
leaflet.LatLng
World coordinates of the center of the marker.
-
options
object
<optional>
Options.
Properties
-
majAxis
number
<optional>
10Length of the ellipse major axis in pixels.
-
minAxis
number
<optional>
10Length of the ellipse minor axis in pixels.
-
posAngle
number
<optional>
0Ellipse position angle in degrees (CCW from x axis).
-
fill
boolean
<optional>
trueFill the ellipse?
-
majAxis
Returns
-
EllipseMarker
Instance of an ellipse marker.
Source
Methods
_containsPoint(p) → {boolean}
Test if the marker contains the given point.
Parameters
-
p
leaflet.Point
Coordinates of the point.
Returns
-
boolean
True if the marker contains the point, false otherwise.
Source
_project()
Project the marker to pixel coordinates.
Source
_update()
Update the marker.
Source
_updateBounds()
Project the boundaries of the marker.
Source
_updatePath()
Update the rendering of the marker.
Source
getLatLng() → {leaflet.LatLng}
Return the world coordinates of the ellipse marker.
Returns
-
leaflet.LatLng
World coordinates of the marker.
Source
getParams() → {ellipseShape}
Set/update the shape parameters of the ellipse marker.
Returns
-
ellipseShape
Ellipse shape parameters.
Source
setLatLng(latlng) → {EllipseMarker}
Set/update the world coordinates of the ellipse marker.
Parameters
-
latlng
leaflet.LatLng
World coordinates of the marker.
Returns
-
EllipseMarker
this.
Source
setParams(ellipseParams) → {EllipseMarker}
Set/update the shape parameters of the ellipse marker.
Parameters
-
ellipseParams
ellipseShape
Ellipse shape parameters.
Returns
-
EllipseMarker
this.