I have a mapping app in B4A that gets screen locations from a Google Map projection like this:
B4X:
Dim curprj As Projection
curprj=gmapx.GetProjection(gmap)
'get screen coords for cloc
Dim clocx,clocy As Int
clocx=curprj.ToScreenLocation(cloc).X
clocy=curprj.ToScreenLocation(cloc).Y
Now I'm trying to do this in B4i. I'm using the GoogleMapsExtra class and have added Erel's code from this post to give me the .GetProjection method. I can now write:
B4X:
Dim curprj As NativeObject
curprj=gmapx.GetProjection
How do I now get screen coordinates from this projection, as in B4A?