Working on learning maps...
We have a map control 'Map1'. I'm just working on getting the clicked location. Doesn't appear to work. Tried a few things, searched a ton for what I might be missing. Coming up blank.
I have this code in the OnSelect of Map1; added the notification trying to check if anything looks to be happening.
ClearCollect(
colLocation,
{
LocLat:Map1.ClickedLocation.Latitude,
LocLong: Map1.ClickedLocation.Longitude
}
);
Notify("Clicked: " & First(colLocation).LocLat,NotificationType.Success,2000)
Then I have a label trying to display the lat long, this is in the Text property
"Latitude: " & First(colLocation).LocLat & " Longitude: " & First(colLocation).LocLong
Thank you
Thanks for the reply. This works on my PC when I'm editing but when i publish it doesn't work on my devices. Never encountered an issue like this.
What I have typed there...
In the 'Text' property:
Map1.ClickedLocation.Latitude & "," & Map1.ClickedLocation.Longitude
It works fine. It wasn't at first, and then started working. I honestly think there are some issues with updates... like the app and what is on the server vs what you're dealing with can vary and so the code sometimes falls over. Just my opinion. Anyway, that works.
LMK if you need help
did you ever figure this out? I have a map control that works on desktop but not on tablet or mobile. Just can't get anything to trigger when i click my icons
Well, I had tried this before and it did not work, now it does...
In the 'Text' property:
Map1.ClickedLocation.Latitude & "," & Map1.ClickedLocation.Longitude
So if anyone can inform me why the aforementioned attempts fail, that would be great.
It seems like sometimes reloading the page a few times is all I need.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional