Getting the InfoWindow binding object in the Google Maps API v3

In the Google Maps API v3, InfoWindow can be bound to a binding using the open method. Is there any way to get this anchor object?

- Amr

+3
source share
1 answer

I do not think this is possible, or at least not convenient, in the current API. The obvious parameters would be: (a) to keep track of what information the InfoWindow goes with, which binding it is to, or (b) call getPosition()in InfoWindow and find an anchor that returns the same value when called getPosition(). Note that (b) will be problematic if you have multiple anchor / marker objects in one place.

+3

Source: https://habr.com/ru/post/1776722/


All Articles