Google Maps Interface

Info Window-Related Methods

An info window is a text bubble that can be displayed at a given location or connected to a marker.

Below is a list of the info window-related methods supported by the PxPlus Google Maps Extended Control.

Method

Description

closeInfoWindow(iw_id)

Closes the info window with the specified identifier.

getInfoWindowContent$(iw_id)

Returns the text content of the info window with the specified identifier.

getInfoWindowLatitude(iw_id)

Returns the latitude in degrees of the info window with the specified identifier.

getInfoWindowLongitude(iw_id)

Returns the longitude in degrees of the info window with the specified identifier.

getInfoWindowPosition$(iw_id)

Returns a comma-separated string specifying the latitude and longitude (in degrees) of the info window with the specified identifier.

setInfoWindowContent(iw_id, content$)

Sets the content to be displayed in the specified info window. This can be a plain-text string or a string containing HTML.

setInfoWindowPosition(iw_id, lat, lng)

Moves the info window with the specified identifier to the indicated latitude and longitude.

showInfoWindow(lat, lng, content$ [,zIndex, disableAutoPan])

showInfoWindow(markerid, contents$ [,zIndex, disableAutoPan])

Displays an info window with the given content at the specified latitude and longitude, or at the marker with the specified identifier. Returns a numeric identifier to be used when referencing the info window in info window-related methods.

Optional arguments include:

zIndex

Info windows are displayed in order of their zIndex, with higher values displaying in front of info windows with lower values. By default, info windows with lower latitudes take precedence.

disableAutoPan

Disables the default auto-pan behaviour that makes the info window fully visible when it is initially displayed.