These are the components:
Button1
Map1
Location Sensor1
Marker1
The code is as follows:
1)
[When Button1.click]
|do [set (Marker1).Latitude to {{Sensor1.Latitude]
|[set (Marker1).Longitude to {{Sensor1.Longitude]
| [Call (Map1).PanTo]
| | Latitude{{Sensor1.Latitude]
| | Longitude{{Sensor1.Longitude]
| | Zoom{{ 5 ]
------------------------------------------------------ ---------]
And it is showing me i live in the middle of the sea near Africa. And i don't live there. I tried everything from Allowing app Locations to Replacing the Sensor 1
Yes, it sometimes shows my location there too. It might take a while for the LocationSensor to load. If the LocationSensor is still loading, it will return values of 0, 0, and No location available for Latitude, Longitude and CurrentAddress respectively.