stuartmatthews / leaflet-geotiff

Leaflet plugin for displaying geoTIFF raster data
MIT License
174 stars 76 forks source link

add ability to initialize with either a geotiff object or an arraybuffer directly alongwith URL #2

Open monemihir opened 7 years ago

monemihir commented 7 years ago

Atm the llibrary only allows passing in an url and options.

What do I do if I already have a parsed geotiff object or arraybuffer?

There seems to be a _parseTIFF function however, this can't be used since initialization fails if there is no URL.

Suggest making URL an optional parameter and then throwing the error in the draw phase if proper initialization was not done.