Page 1 of 1

Map Widget Coordinates Stay at 0,0

Posted: Sun Aug 09, 2020 2:19 pm
by JereMiami
Question on the Map Widget.

If I have the centerCoordinates for the Map Widget set at a specific location BEFORE I test it on my android device, it works as it should. CenterCoordiantes are correct. Span is correct, and thus, region is correct.

Now, if I test if I test it on my android device with the centerCoordiantes set at 0,0 (or, well anywhere), and try to change them on the android device AFTER, with a button, it does not change from the preset centerCoordinates and I'm stuck off the coast of Africa.

What should I be doing to get the centerCoordinates to change while ON the android device?

Code on "Button:"
on mouseUp

...//other stuff to get tLat & tLng
put tLat & "," & tLng into tCoordinates

set the centerCoordinates of widget "Map" to tCoordinates
put tCoordinates into tMarkerData["coordinates"]
put "AwesomeSauce" into tMarkerData["title"]
put tMarkerData into tMarkers["Awesome"]
set the markers of widget "Map" to tMarkers
set the span of widget "Map" to ".01,.01"

Re: Map Widget Coordinates Stay at 0,0

Posted: Sun Aug 09, 2020 2:41 pm
by JereMiami
Region. It's region that changes it. Nevermind!