VisiOmatic web client

Class

Coords

Extends
  • leaflet.Control

new Coords(optionsopt) → {Coords}

Create a new coordinate display/control interface.

Parameters

  • options object <optional>

    Options.

    Properties

    • title string <optional>
      'Center coordinates. Click to change'

      Title of the control.

    • position 'bottomleft' | 'bottomright' | 'topleft' | 'topright' <optional>
      'topright'

      Position of the coordinate display.

    • coordinates Array.<coordinate> <optional>

      Coordinate settings for every instance of coordinates.

    • centerQueryKey string <optional>
      'center'

      Web query key for map centering.

    • fovQueryKey string <optional>
      'fov'

      Web query key for setting the Field of View.

    • sesameURL string <optional>
      'https://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame'

      URL for Sesame queries.

Returns

  • Coords

    Instance of a coordinate display/control interface.

Source

Methods

privatestatic

_checkVisiomatic(e)

Check that the layer being loaded is a VisiOmatic layer.

Parameters

  • e leaflet.LayerEvent

    Leaflet layer event object.

Source

privatestatic

_getCoordinates(self, httpRequest)

Move map to the sky coordinates resolved by Sesame service.

Parameters

  • self object

    Calling control object (this).

  • httpRequest object

    HTTP request.

Source

privatestatic

_onDrag(e)

Update coordinates when the map is being dragged.

Parameters

  • e leaflet.LayerEvent

    Leaflet layer event object.

Source

static

onRemove(mapopt)

Remove map dragging event when the coordinate display/control is removed.

Parameters

  • map leaflet.map <optional>

    The parent map.

Source

static

panTo(str)

Move map to a given source or coordinate position.

Parameters

  • str string

    Source name or coordinates.

Source