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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Place a dot at X Y coo...
Power Apps
Answered

Place a dot at X Y coordinates on an image

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I'm hacking together a very rudimentary PowerApp that shows the location of a meeting room in our building.

 

I have a SharePoint list that contains the meeting rooms called "Lokaler"

 

sharepoint list.png

 

The app consists of:

Image:

 

First(Gallery8.Selected.Attachments).Value

 

Text input (search field):

 

" "

 

Gallery: 

 

Sort(Filter(Lokaler, StartsWith(Lokale, TextInput1.Text) || StartsWith(Nummer, TextInput1.Text)),Sal,Ascending)

 

 

 

 

Currently when you click on a gallery item, it displays the attached image from the list item, in the SharePoint list.

 

To make it easier to maintain I would like to change the functionality to instead read the X and Y coordinates from the list item and draw a red circle at those coordinates.

 

Is this possible?

 

Here is what the app looks like:

 

Anmærkning 2021-10-12 094025.png

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,941 Most Valuable Professional on at

    Hi @EDHN_DKMA ,

    Assuming your image is "free standing" on the page, you just need to refer to its X and Y coordinates in the X and Y of the dot (I assume a circle icon)

    ImageControlName.X + YourPositionNumber

    and the same for the Y

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • EDHN_DKMA Profile Picture
    11 on at

    Hi @WarrenBelz 

    So in the properties of the circle icon, what do I have to write, so that the circle's position changes based on the gallery selection?

     

    To the list items I have not added a column called "X-Koordinat" and "Y-Koordinat".

     

    I imagine the function for the red dot icon something like the thing below - I just don't know how to express it properly in code.

     

     

    SetPosition(Gallery8.Selected.X-Koordinat,Gallery8.Selected.Y-Koordinat)

     

     

  • Verified answer
    EDHN_DKMA Profile Picture
    11 on at

    Aaah! @WarrenBelz thanks. You set me on the right path. Here is the solution.

     

    Inside the Advanced Properties of the dot, I was able to type in, right in the X field:

    Gallery8.Selected.'X-Koordinat'

     

    It just worked. So great! Thanks!

  • WarrenBelz Profile Picture
    154,941 Most Valuable Professional on at

    Hi @EDHN_DKMA ,

    Yes, that would do it.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard