VisiOmatic web client

Class

PIX

Extends

new PIX(header, optionsopt) → {PIX}

Pixel (identity) projection.

Parameters

  • header object

    JSON representation of the image header.

  • options projParam <optional>

    Projection options: see Projection.

Returns

  • PIX

    Instance of a PIX projection.

Source

Methods

static

project(latlng) → {leaflet.Point}

Project "world" pixel coordinates to (image) pixel coordinates (identity).

Parameters

  • latlng leaflet.LatLng

    "World" pixel coordinates.

Returns

  • leaflet.Point

    Pixel (image) coordinates.

Source

static

unproject(pnt) → {leaflet.LatLng}

De-project (image) pixel coordinates to "world" pixel coordinates (identity).

Parameters

  • pnt leaflet.Point

    Pixel (image) coordinates.

Returns

  • leaflet.LatLng

    "World" pixel coordinates.

Source