Geometry
- class EllipseMarker(latlng, options)
Create a new ellipse marker.
- Arguments:
latlng (leaflet.LatLng) -- World coordinates of the center of the marker.
options (object) -- Options.
options.majAxis (number) -- Length of the ellipse major axis in pixels.
options.minAxis (number) -- Length of the ellipse minor axis in pixels.
options.posAngle (number) -- Ellipse position angle in degrees (CCW from x axis).
options.fill (boolean) -- Fill the ellipse?
- Returns:
EllipseMarker -- Instance of an ellipse marker.
- static EllipseMarker._containsPoint(p)
Test if the marker contains the given point.
- Arguments:
p (leaflet.Point) -- Coordinates of the point.
- Returns:
boolean -- True if the marker contains the point, false otherwise.
- static EllipseMarker._project()
Project the marker to pixel coordinates.
- static EllipseMarker._update()
Update the marker.
- static EllipseMarker._updateBounds()
Project the boundaries of the marker.
- static EllipseMarker._updatePath()
Update the rendering of the marker.
- static EllipseMarker.getLatLng()
Return the world coordinates of the ellipse marker.
- Returns:
leaflet.LatLng -- World coordinates of the marker.
- static EllipseMarker.getParams()
Set/update the shape parameters of the ellipse marker.
- Returns:
ellipseShape -- Ellipse shape parameters.
- static EllipseMarker.setLatLng(latlng)
Set/update the world coordinates of the ellipse marker.
- Arguments:
latlng (leaflet.LatLng) -- World coordinates of the marker.
- Returns:
EllipseMarker -- this.
- static EllipseMarker.setParams(ellipseParams)
Set/update the shape parameters of the ellipse marker.
- Arguments:
ellipseParams (ellipseShape) -- Ellipse shape parameters.
- Returns:
EllipseMarker -- this.
- ellipseMarker(latlng, options)
Instantiate an ellipse marker.
- Arguments:
latlng (leaflet.LatLng) -- World coordinates of the center of the marker.
options (object) -- Options: see {@link EllipseMarker}.
- Returns:
EllipseMarker -- Instance of an ellipse marker.
Examples:
... const marker = ellipseMarker(latLng(30.0, 24.0), { majAxis: 24.7, minAxis: 12.1, posAngle: 47.3 });
- class Ellipse(latlng, options)
Create a new ellipse marker with a shape that scales with zooming.
- Arguments:
latlng (leaflet.LatLng) -- World coordinates of the center of the marker.
options (object) -- Options.
options.fill (boolean) -- Fill the ellipse?
- Returns:
Ellipse -- Instance of an ellipse.
- static Ellipse._project()
Project the marker to pixel coordinates.
- static Ellipse.getBounds()
Get the bounds of the ellipse in world coordinates.
- Returns:
leaflet.LatLngBounds -- Boundary box in world coordinates.
- ellipse(latlng, options)
Instantiate an ellipse marker with a shape that scales with zooming.
- Arguments:
latlng (leaflet.LatLng) -- World coordinates of the center of the marker.
options (object) -- Options: see {@link Ellipse}.
- Returns:
Ellipse -- Instance of an ellipse marker.
Examples:
... const marker = ellipse(latLng(30.0, 24.0), { majAxis: 4.3, minAxis: 2.1, posAngle: 47.3 });