| Info Windows | |
| MQA. | Constructs a InfoWindow object. |
| Functions | |
| hide | Hides the info window if it is currently visible . |
| show | Makes the info window visible if it is currently hidden. |
| isHidden | Returns true if the info window is hidden. |
| getMaxWidth | Returns the maxwidth of the infowindow set by the user. |
| setMaxWidth | Sets the maximum width allowed for the infowindow. |
| getMinWidth | Returns the minwidth of the infowindow set by the user. |
| setMinWidth | Sets the minimum width allowed for the infowindow. |
| getTitleBackgroundColor | Returns the current user-defined background color of the title section of the InfoWindow. |
| setTitleBackgroundColor | Sets the background color of the title section of the InfoWindow |
Constructs a InfoWindow object.
The InfoWindow is created along with a MQA.TileMap. It is generally not necessary to instantiate it manually.
| map | MQA.TileMap The map to contain the InfoWindow. |
| Functions | |
| hide | Hides the info window if it is currently visible . |
| show | Makes the info window visible if it is currently hidden. |
| isHidden | Returns true if the info window is hidden. |
| getMaxWidth | Returns the maxwidth of the infowindow set by the user. |
| setMaxWidth | Sets the maximum width allowed for the infowindow. |
| getMinWidth | Returns the minwidth of the infowindow set by the user. |
| setMinWidth | Sets the minimum width allowed for the infowindow. |
| getTitleBackgroundColor | Returns the current user-defined background color of the title section of the InfoWindow. |
| setTitleBackgroundColor | Sets the background color of the title section of the InfoWindow |
Sets the maximum width allowed for the infowindow. If user doesn’t set the property, the default value will be (current mapwidth - 50 px).
Max width cannot be less that min width. If user tries to set maxwidth less that minwidth, maxwidth will be set to minwidth value. If maxwidth is set same as minwidth, infowindow width will be constant and infowindow will not get resized dynamically.
| width | (int) The maxwidth of infowindow in pixels |
n/a
Sets the minimum width allowed for the infowindow. If user doesn’t set the property, the default value will be 60 pixels. minwidth cannot be greater than maxwidth. If user tried to set minwidth greater than maxwidth, minwidth will be set to maxwidth value. If minwidth is set same as maxwidth, infowindow width will be constant and infowindow will not get resized dynamically.
| width | (int) The minwidth of infowindow in pixels |
n/a
Returns the current user-defined background color of the title section of the InfoWindow. Note that if the functions returns “null”, then the color has NOT been set by the user and the InfoWindow will use the default color specified in the style sheet.
none
string (hex color)