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