I was using in B4A (GoogleMapsExtras) a parameter to offset the anchor point of a marker because I need it centered on the bitmap.
How can I obtain this in B4I ?
'Sets the icon anchor. Both values should be between 0 to 1.
Public Sub SetGroundAnchor(Marker As Marker, X As Double, Y As Double)
Dim m As NativeObject = Marker
m.RunMethod("setGroundAnchor:", Array(m.MakePoint(X, Y)))
End Sub
Thank you so much, Erel.
Would be much interesting to know, if not so difficult, where did you look into to find the function and implement it in b4i.
It seems easy to add a sub to call an existing method and maybe there are other useful functions in googlemap.
Public Sub SetInfoWindowAnchor(Marker As Marker, X As Double, Y As Double)
Dim m As NativeObject = Marker
m.RunMethod("setInfoWindowAnchor:", Array(m.MakePoint(X, Y)))
End Sub
Is it correct?
But all the rest is over my capabilities...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.