Trying to get latitude and longitude with WebLocation

I am sure I am missing something really simple here. I added a WebLocation to the page, have a button.Pressed is set to Location1.Start, and in Location1.LocationChanged, I have two labels to show the lat/long:

lblLat.Text = latitude.ToText
lblLong.Text = longitude.ToText

Though, it does not seem to be firing. Am I missing something?

Why not use Location1.Request in your button? Or do you really want to monitor changes in location, in which case it sounds like the device hasn’t moved.

1 Like

Ah that was it. I didn’t know the difference between .Request and .Start. Thanks Tim!

1 Like