Options
All
  • Public
  • Public/Protected
  • All
Menu

InfoWindowOptions object used to define the properties that can be set on a InfoWindow.

Hierarchy

  • InfoWindowOptions

Index

Properties

ariaLabel?: null | string

AriaLabel to assign to the InfoWindow.

content?: null | string | Element | Text

Content to display in the InfoWindow. This can be an HTML element, a plain-text string, or a string containing HTML. The InfoWindow will be sized according to the content. To set an explicit size for the content, set content to be a HTML element with that size.

disableAutoPan?: null | boolean

Disable panning the map to make the InfoWindow fully visible when it opens.

defaultvalue

false

maxWidth?: null | number

Maximum width of the InfoWindow, regardless of content's width. This value is only considered if it is set before a call to open(). To change the maximum width when changing content, call close(), setOptions(), and then open().

minWidth?: null | number

Minimum width of the InfoWindow, regardless of the content's width. When using this property, it is strongly recommended to set the minWidth to a value less than the width of the map (in pixels). This value is only considered if it is set before a call to open(). To change the minimum width when changing content, call close(), setOptions(), and then open().

pixelOffset?: null | Size

The offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored. If an InfoWindow is opened with an anchor, the pixelOffset will be calculated from the anchor's anchorPoint property.

position?: null | LatLng | LatLngLiteral

The LatLng at which to display this InfoWindow. If the InfoWindow is opened with an anchor, the anchor's position will be used instead.

zIndex?: null | number

All InfoWindows are displayed on the map in order of their zIndex, with higher values displaying in front of InfoWindows with lower values. By default, InfoWindows are displayed according to their latitude, with InfoWindows of lower latitudes appearing in front of InfoWindows at higher latitudes. InfoWindows are always displayed in front of markers.

Generated using TypeDoc