new PIX(header, optionsopt) → {PIX}
Pixel (identity) projection.
Parameters
-
header
objectJSON representation of the image header.
-
options
projParam<optional>
Projection options: see
Projection.
Returns
-
PIXInstance of a PIX projection.
Source
Methods
privatestatic
_projInit()
Initialize a pixel (identity) projection.
Source
static
project(latlng) → {leaflet.Point}
Project "world" pixel coordinates to (image) pixel coordinates (identity).
Parameters
-
latlng
leaflet.LatLng"World" pixel coordinates.
Returns
-
leaflet.PointPixel (image) coordinates.
Source
static
unproject(pnt) → {leaflet.LatLng}
De-project (image) pixel coordinates to "world" pixel coordinates (identity).
Parameters
-
pnt
leaflet.PointPixel (image) coordinates.
Returns
-
leaflet.LatLng"World" pixel coordinates.