- Module created
- Ol7 Compatibility
- Updated dependencies
- Improved sampledArea polygons (to avoid crashing on extrelarges polygons)
- Added function to allow configure the number of
samples
andsampleSizeArea
on each measurement - Added jest, configured some tests
- Added "type" module attribute to package.json
- Removed index.js
- Updated dependencies
- Improved rollup and ts configs
- Added ".js" extension on imports to work better with webpack 5 default's config
- Lib is builded with es2017 target (downgraded from esnext)
- Removed babel deps
- Added header to dist files
- Fixed EventTypes
- Added
smooth
option - Added reload on
change:calculateZMethod
- Replaced
Coordinate
type withCoordinatesXYZ
andCoordinatesXY
- Some minor type improvements
- Converted some methods to private
- Fixed small bug preventing
smooth
being applied - Added
error
event
- Added
tilesResolution
options that allows to configure the resolution of the tiles used for the elevation data calculations - Added param
silent
to multiple setters methods
- Added GeoTIFF support
- Removed manual cache of tiles
- Added
bands
option
- Fixed bug with polygon samples
- Improved warning messages on wrong resolutions, and use fallback
- Fixed deepObjectAssign function mutating the defaults options (preventing running two instances with different configs)
- Fixed type event, from
change:resolution
tochange:tilesResolution
- Added public methods:
getBands
,getTilesResolution
,getNoDataValue
,getSmooth
,getSampleSizeArea
,getSamples
- Replaced dependency
Axios
with nativefetch
- Added option
timeout
- Added param
customOptions
to thegetElevationValues
method, allowing to change the quality/resolution at each reading - Added helper methods
getMaxTilesResolution
andgetCurrentViewResolution
- Added event
load
- Improved
readFromImage
class to avoid some retiterated function calls on loops
- Improved README
- If request is cancelled/overwrited, return
null
as response
- Added missing question mark to check if variable is
null
- Wrong z values now returns
undefined
instead of0
- Added example
- Fixed example urls
- Added retry function to wait until raster sources are loaded
- Added some missing dev dependencies
- Updated to Ol8
- If enabled,
noData
values are now returned asundefined
instead of0
- Fixed uncaught error that happened when
getFeatureInfo
responded with no features/empty values, now they return asundefined