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 / OnMapClick in Interact...
Power Apps
Answered

OnMapClick in Interactive map control stopped working

(3) ShareShare
ReportReport
Posted on by 10
I have successfully created an app using the Interactive Map control and used the OnMapClick feature to capture the latitude and longitude of a clicked point so that a pin can be added to the map.
The app was working fine, however it suddenly is not recognising the latitude and longitude as legitimate and highlighting these as errors. eg. if I add a label to show the latitude of the clicked point  using:  map1.ClickedLocation.Latitude  the word Latitude is underlined red and it gives the error as "Name isn't valid. 'Latitude' isn't recognized."
ClickedLocation does show up as an autocomplete option, but Latitude and Longitude used to also show in the autocomplete but now they do not appear. 
The problem is also occurring now another environment and I have tried re-adding a map, starting with a new app, starting in another solution but they all have the same problem. Seems to be tenant wide.
What should I try to restore this function?
 
The problem started after I opened the app on another computer and said it was being edited by another user. I clicked the button to "take control". Could this have caused some kind of corruption?  
have tried removing and reinstating the spatial services connector but it seems to be something else. The map functions normally showing the pins located correctly from the gallery table but the click on map function is broken. This was ocnfirmed when I tested the app on a tablet.
Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at
    Can confirm that this is not an issue specific to you.
     
    Across all tenants I have access to, interactive map control no longer returns a record for Map.ClickedLocation.
     
    Reproduction steps:
     
    1) Create new app, insert map control, save and publish.
     
    2) Run Monitor on published app, click map control once app loads
     
     
    We can see that the result is that the function fails silently in the background, with an undefined object attempting to be parsed
     
    Cheers,
    Sancho
  • Verified answer
    MD-21021242-0 Profile Picture
    10 on at
    Having worked through Powerapps Support I have identified this as a known issue due to an update released last thursday.
    The workaround presented is to go into Powerapps Studio Setting and under Support - Authoring Version change this to an earlier version.
    This worked for me.  I assume the problem will be corrected in a future update.
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at
    Hi,
     
    Quick further update to this - there is now a message in the Power Platform Admin centre regarding the loss of the outputs here that you can follow to see when it is resolved: Canvas Controls Broken Object Output- Barcode Reader, Text Recognizer, Map & custom PCFs | Power Platform admin center
     
    Cheers,
    Sancho

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard