web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get the coordinates of...
Power Apps
Unanswered

Get the coordinates of a click/touch event

(2) ShareShare
ReportReport
Posted on by 192

Hi,

 

How can I get the location of a click/touch event?  I would like to know where the user clicks on an image from a coordinate standpoint (x, y), not via a hot spot that could be handled by having a control on the hot spots.

Is there a way to get to the mouse-click/press/selcted coordinates?

Thank you,

 

Olivier

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi Olivier,

     

    It seems that we can get the Coordinate standpoint(X,Y) of an image, but we are not able to get the Coordinate Standpoint(X,Y) of where we click on the image.

     

    About this issue, you could submit an idea at PowerApps Ideas Forum:
    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Best regards,
    Mabel Mao

  • Verified answer
    rgruian Profile Picture
    on at

    This is not currently supported in PowerApps.

  • LucianB Profile Picture
    83 on at

    Hi Radu,

    I hope you can help me with this weird error - please see attached picture. This occures when I try to save coordinates in a backend SQL server (Office 365). Fields for latitude and longitude are defined as numeric, floating (variable decimals) so I don't think this may be the issue.

    Can you look into this for me, as I am not able to go forward with my app...Smiley Sad

    ts_20161107_093940.jpg

  • Olivier Profile Picture
    192 on at

    Hi LucianB,

    You might want to post this as a new post as it doesn't really fit in this thread, and Radu will probably not see your post.

    Best of luck,

    Olivier

  • LucianB Profile Picture
    83 on at

    Thanks Olivier, will do!

  • LozzieD Profile Picture
    203 on at

    Depending on the granularity of the image and x, y co-ordinates you need, you could try placing a grid of transparent rectangles infront of the image, with an onselect in each rectangle that returns the grid reference.

     

    Not sure what the max number of controls is and what the performance limitations will be.

     

    Try making the rectangles one pixel in size and see what happens! 🙂

  • Ewtm Profile Picture
    16 on at

    Hi Guys,

    I also ran into the problem of needing to know the coordinates of a mouseclick.

    I tried LozzieD's solution. And in this case it works :-).

    I made a grid of 40x40 squares of 20x20pixels each. That made 1600 controls (all little buttons).

     

    The solution works, but the 1600 controls irritate Powerapps a bit. Suddenly Powerapps functions like 'move forward' and 'move backward' did not work anymore. A video I included didn't play. Long story short; I wouldn't recommend this solution. Unless it's a one-time app (as it was in my case).

     

     

  • MichelH Profile Picture
    401 on at

    Microsoft can capture these coordinates in their framework and make them available in the onselect event handler without too much effort on their end.

     

    It might be a good idea to add your support to all ideas that suggest these sorts of features.

     

    E.g.: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/A-Control-element-that-returns-X-and-Y-coordinates-of-touch-or/idi-p/8718 

  • prudhvimunagala Profile Picture
    42 on at

    Does this supported now ?

  • Verified answer
    GregLi Profile Picture
    on at

    This is still not supported.  If an image map is the effect you are looking for, it can be somewhat simulated with a 2D grid built out of galleries and overlaying an image.  

    Please vote for this idea at: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/A-Control-element-that-returns-X-and-Y-coordinates-of-touch-or/idi-p/8718

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard