Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 11.2 KB

infowindow.md

File metadata and controls

38 lines (31 loc) · 11.2 KB

Supported Google APIs - InfoWindow

Methods Description Notes
close Closes this InfoWindow by removing it from the DOM structure.
focus Sets focus on this InfoWindow.
getContent The content of this InfoWindow. Google Location Services will return the same as what was previously set as the content (string or Element or Text). Amazon Location Services will return the HTMLElement behind the InfoWindow object.
getPosition The LatLng position of this InfoWindow.
open Opens this InfoWindow on the given map. StreetViewPanorama option is not supported by Amazon Location Services.
setContent The content to be displayed by this InfoWindow.
setOptions Sets the InfoWindowOptions of the InfoWindow. Amazon Location Services supports minWidth, maxWidth, ariaLabel, content, and position InfoWindowOptions.
setPosition The LatLng position at which to display this InfoWindow.
addListener Adds the given listener function to the given event name.
Events Description Notes
close This event is fired whenever the InfoWindow closes.
closeClick This event is fired when the close button was clicked.
Properties Description Notes
ariaLabel AriaLabel to assign to the InfoWindow.
content Content to display in the InfoWindow.
maxWidth Maximum width of the InfoWindow, regardless of content's width.
minWidth Minimum width of the InfoWindow, regardless of the content's width.
position The LatLng at which to display this InfoWindow. If the InfoWindow is opened with an anchor, the anchor's position will be used instead.
Properties Description Notes
anchor The anchor to which this InfoWindow will be positioned.
map The map on which to render this InfoWindow. StreetViewPanorama option is not supported by Amazon Location Services.
shouldFocus Whether or not focus should be moved inside the InfoWindow when it is opened.