leaflet-geotiff
leaflet-geotiff copied to clipboard
"getValueAtLatLng" works at out of the workspace area.
Hi Stuart, Wondering, how come the click returns a value when clicked out of the workspace area (out of the bounding extents of raster map) . I mean the 'click' returns a value when it's clicked on Google map also. Somewhat confused... Please help me in this regard.
It looks like this is caused by lack of range checking when calculating the row and column of the clicked point then calculating the data index as y*this.raster.width+x
.
This is a bug to be fixed. It should not affect the values retrieved when clicking inside the raster.
How can i change the lat lng to different location it is inbuilt location in austraila