Thanks for fixing that Star-Dust, I have run some tests (B4xPages B4a and B4j program attached) and this is what I think is happening:
B4a:
Moving Circles:
It appears that when creating a circle, the assignment to it's position is direct. i.e.
CircleLatLng = PassedLatLng.
This means that when a global variable is passed from code, that global is effectively hijacked, and when the circle is subsequently moved, the value of the global passed is changed to match.
Mode1 - Circle initialized with a global variable:
Testing Markers in isolation appears to work, as the Marker initialization requires separate Lat/Lng variables to be passed and doesn't accept a LatLng object. However, when the marker is moved, it reports it's current location as it's initial location and not it's actual location. Even though the marker moved.
In the Mode1 Testing I am using the same global variable to try to move the circle and marker back to, and hence they fail as it has been updated by the first move of a circle.
Mode2 - Local variables created and passed to the initialization of both objects:
This fixes things for the Circle, Circle and Marker move, but the Marker still suffers from the same misreporting of it's position.
One more thing I noticed is that when calling:
wait for (SelectedMarker.GetTitle) COMPLETE (MarkerTitle As String)
Log("MT " & MarkerTitle)
The returned value contains quotes. - in B4j it doesn't
B4j:
As with B4a
Thanks for you patience and consideration.