You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
It seems that InfoWindow anchoring needs some extra work. Our current setup doesn't match how Google maps was setup. This will require some extra code to not break current exposed logic for GL based annotations.
I was able to get the old InfoWindow logic working with the newer anchoring. This is currently introducing some unneeded overhead but this can only be resolved if we implement anchoring of GL based markers (else we would have a breaking API change for users using the GL based annotations).
Here you see a screenshot with anchoring in action:
bottom left has infoWindowAnchor(1.0f, 1.0f)
center has infoWindowAnchor(0.5f, 0.0f) (default value)
Activity
tobrun commentedon May 24, 2016
Note that Google maps also exposes this for InfoWindow
tobrun commentedon May 24, 2016
At this point we are exposing:
This should be replaced with Anchor API instead:
This is how Google exposes this in their javadoc:
tobrun commentedon May 24, 2016
This is how the default implementation works:

Note that the default values for
u = 0.5andv = 1.0are used.This results in anchoring the annotation to the bottom center.
tobrun commentedon May 24, 2016
This is the result for
u = 0andv = 0aka topleft:This is the result for
u = 1andv = 1aka bottomright:This is the result for
u = 0.5andv = 0.5aka center:This is the result for
u = 0andv = 0.5:tobrun commentedon May 24, 2016
It seems that InfoWindow anchoring needs some extra work. Our current setup doesn't match how Google maps was setup. This will require some extra code to not break current exposed logic for GL based annotations.
tobrun commentedon May 25, 2016
I was able to get the old InfoWindow logic working with the newer anchoring. This is currently introducing some unneeded overhead but this can only be resolved if we implement anchoring of GL based markers (else we would have a breaking API change for users using the GL based annotations).
Here you see a screenshot with anchoring in action:
infoWindowAnchor(1.0f, 1.0f)infoWindowAnchor(0.5f, 0.0f)(default value)infowWindowAnchor(0.0f, 0.0f)