cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

"Invalid use of "." " when using Location.Longitude/Latitude

Hello,

 

I'm following the instructions here: https://powerusers.microsoft.com/t5/General-Discussion/Google-map-and-pin-in-PowerApps/td-p/3209/pag... and can create the map and such without issue. I even have Location.Latitude and Location.Longitude working in the google map URL:

 

"https://maps.googleapis.com/maps/api/staticmap?center=" & Location.Latitude & "," & Location.Longitude & "&zoom=18&size=600x600&key=<myAPIKey>=color:red%7Clabel:A%7C"

 

However, when I try to use Location.Latitude or Location.Longitude in a function, Intellisense does not correctly highlight the function. I get the error "Invalid use of "." pointing me to the period between Location and Latitude/Longitude. 

 

Anyone else having this issue? It worked fine THE FIRST TIME I typed the function. Now won't work. 


Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: "Invalid use of "." " when using Location.Longitude/Latitude

AHA! Figured it out... 

 

The Location function cannot be called from a button inside a form Card. If button is outside the card, not problem. If INSIDE the card, the error appears. 

View solution in original post

1 REPLY 1
Super User
Super User

Re: "Invalid use of "." " when using Location.Longitude/Latitude

AHA! Figured it out... 

 

The Location function cannot be called from a button inside a form Card. If button is outside the card, not problem. If INSIDE the card, the error appears. 

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,264)