0

I want to get the position of a google maps info window as to be Seen in the following image so I can set floating button on that position for clicking to perform some task.

enter image description here

I want to set floating button position after showing popup info in particular position.

Please don't refer this answer i'll already apply this but sometimes not perform right way.

Community
  • 1
  • 1
Chirag.T
  • 746
  • 1
  • 6
  • 18

1 Answers1

0

Upon checking the MarkerOptions, there is no class that can get the location of the infowindow. The closest we can get is getInfoWindowAnchorU and getInfoWindowAnchorV.

getInfoWindowAnchorU ()

Horizontal distance, normalized to [0, 1], of the info window anchor from the left edge.

getInfoWindowAnchorV ()

Vertical distance, normalized to [0, 1], of the info window anchor from the top edge.

Also, it was advised in this link:

You are advised not to place interactive components — such as buttons, checkboxes, or text inputs — within your custom info window.

Hope it helps!

adjuremods
  • 2,938
  • 2
  • 12
  • 17