leaflet-geotiff icon indicating copy to clipboard operation
leaflet-geotiff copied to clipboard

"getValueAtLatLng" works at out of the workspace area.

Open s9eenk opened this issue 7 years ago • 2 comments

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.

s9eenk avatar Aug 21 '17 10:08 s9eenk

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.

stuartmatthews avatar Aug 25 '17 06:08 stuartmatthews

How can i change the lat lng to different location it is inbuilt location in austraila

rohith231 avatar Aug 30 '20 18:08 rohith231