IndoorMapView icon indicating copy to clipboard operation
IndoorMapView copied to clipboard

Touch position

Open ilkeryildirim opened this issue 6 years ago • 2 comments

Hi, thanks for this library. I have one question about this. I need to know the touch position on map view, I used motion event but it's returning to me touch position of the screen I just need map view touch position type of pixel how we can this?

ilkeryildirim avatar Dec 02 '19 08:12 ilkeryildirim

Do you want to return the map position on touching?

I have not read this project too long and forget some logic while MapView handling events, it will take some time to review the code and add this feature.

So if you find some interfaces are missing, feel free to fork the repo and new a pull request. Thank you very much ^_^

WideLee avatar Dec 03 '19 11:12 WideLee

I found a solution your MapView class. Solution is your transformToMapCoordinate function.It's triggering from onTouchEvent func. and viewCoordinate[0] variable giving to me latest touch x position and viewCoordinate[1] giving y. Maybe you can write new function about this I think it's gonna be easy.I will try. Sorry my Eng. and thank you for this library

ilkeryildirim avatar Dec 03 '19 14:12 ilkeryildirim