How can I prevent my MapViewer from defaulting to 0,0 as the latitude and longitude of the first location?
The App works fine on my iPhone14Pro but on the iPhone 11 running 16.1 the map shows Cupertino and then if I try an map a point it goes to latitude and longitude 0,0 ?
It’s a bit convoluted but I ended up here because I was plotting from the current Latitude and Longitude but also wanted the the Tag, physical address and put a custom pin down
Var mylocations() As MapLocation
MyLocation.Start
Var mlc As MapLocation = New MapLocation(Mylat, Mylong)
mylocations = MapViewer1.LocationsFromQuery(mlc.Address)
Var lc As MapLocation
If myLocations.LastIndex <> -1 Then
lc = mylocations(mylocations.LastIndex)
End If
Var p As New Picture(40,60)
p.Graphics.DrawPicture(AdobeStock_494731209,0,0,p.Width,p.Height,0,0,AdobeStock_494731209.Width,AdobeStock_494731209.Height)
lc.Icon = p
locations.Add(lc)
MapViewer1.AddLocation(lc)
`