Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"getValueAtLatLng" works at out of the workspace area. #5

Open
s9eenk opened this issue Aug 21, 2017 · 2 comments
Open

"getValueAtLatLng" works at out of the workspace area. #5

s9eenk opened this issue Aug 21, 2017 · 2 comments
Assignees
Labels

Comments

@s9eenk
Copy link

s9eenk commented Aug 21, 2017

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.

@stuartmatthews
Copy link
Owner

stuartmatthews commented Aug 25, 2017

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 stuartmatthews self-assigned this Aug 25, 2017
@rohith231
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants