Forum Xamarin.Forms

How do I put points on image and get coordinates of those points ?

logn5logn5 Member ✭✭

Hello everyone. Currently I'm working on project in Xamarin Forms but all I care is that app works on Android devices. User have to be able to mark his position on map (map is loaded as .jpg image) by tapping on it, or eventually by moving point by clicking on buttons. I have no idea how to do that since i did not find any NuGet that allows me to get tap coordinates (Mr. Gestures might do that but as far as I know it is not free). Image does not take whole screen so point (0,0) of image is not same as (0,0) of screen. I would be grateful for any tips or suggestions and I hope for quick response. Thanks in advance.

Best Answer


  • logn5logn5 Member ✭✭

    Actually, is it possible to do same thing with ScrollView ? Thing is, my image might not fit, and when clicking upper left corner of ImageView i always get (X,Y) = (0,0), even if Image is scrolled. I implemented custom renderer, its same as the renderer You wrote, but it rarely respondes to tapping. I think that its because of nested Image. Is there way to solve it ?

  • logn5logn5 Member ✭✭

    Im stupid. Nesting Image inside of ScrollView is exacly what I need. Thanks for help LandLu.

Sign In or Register to comment.