VisiOmatic web client

Class

EllipseMarker

Extends
  • leaflet.Path

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>
      10

      Length of the ellipse major axis in pixels.

    • minAxis number <optional>
      10

      Length of the ellipse minor axis in pixels.

    • posAngle number <optional>
      0

      Ellipse position angle in degrees (CCW from x axis).

    • fill boolean <optional>
      true

      Fill the ellipse?

Returns

  • EllipseMarker

    Instance of an ellipse marker.

Source

Methods

static

_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

static

getLatLng() → {leaflet.LatLng}

Return the world coordinates of the ellipse marker.

Returns

  • leaflet.LatLng

    World coordinates of the marker.

Source

static

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