new ImageLookup( src, onInit ) → {ImageLookup}

Description
Creates a ImageLookup object
Parameters
Name Type Description
src String path to image file
onInit function Callback fired once imageLookup is initialized
Returns

Members


isLoaded :boolean

Description
Has the image been loaded

ctx :Object

Description
2d canvas context to render image to

canvas :HTMLCanvasElement

Description
HTMLCanvasElement to render to

image :HTMLImageElement

Description
HTMLImageElement to load image to

getIdFromLatLon

Description
Samples a target lat,lon pair to get id (e.g. the red channel)
Parameters
Name Type Description
lat number target latitude
lon number target longitude
Returns
id of target