Info Windows

Summary
Info Windows
MQA.InfoWindowConstructs a InfoWindow object.
Functions
hideHides the info window if it is currently visible .
showMakes the info window visible if it is currently hidden.
isHiddenReturns true if the info window is hidden.
getMaxWidthReturns the maxwidth of the infowindow set by the user.
setMaxWidthSets the maximum width allowed for the infowindow.
getMinWidthReturns the minwidth of the infowindow set by the user.
setMinWidthSets the minimum width allowed for the infowindow.
getTitleBackgroundColorReturns the current user-defined background color of the title section of the InfoWindow.
setTitleBackgroundColorSets the background color of the title section of the InfoWindow

MQA.InfoWindow

Constructs a InfoWindow object.

The InfoWindow is created along with a MQA.TileMap.  It is generally not necessary to instantiate it manually.

Parameters

mapMQA.TileMap The map to contain the InfoWindow.
Summary
Functions
hideHides the info window if it is currently visible .
showMakes the info window visible if it is currently hidden.
isHiddenReturns true if the info window is hidden.
getMaxWidthReturns the maxwidth of the infowindow set by the user.
setMaxWidthSets the maximum width allowed for the infowindow.
getMinWidthReturns the minwidth of the infowindow set by the user.
setMinWidthSets the minimum width allowed for the infowindow.
getTitleBackgroundColorReturns the current user-defined background color of the title section of the InfoWindow.
setTitleBackgroundColorSets the background color of the title section of the InfoWindow

Functions

hide

Hides the info window if it is currently visible .

Parameters

none

Returns

n/a

See Also

show

show

Makes the info window visible if it is currently hidden.

Parameters

none

Returns

n/a

See Also

hide

isHidden

Returns true if the info window is hidden.

Parameters

none

Returns

boolean

getMaxWidth

Returns the maxwidth of the infowindow set by the user.  If user does not set any maxwidth, the default maxwidth(current mapwidth - 50 px) will be returned.

Parameters

none

Returns

int

See Also

setMaxWidth, setMinWidth, getMinWidth

setMaxWidth

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.

Parameters

width(int) The maxwidth of infowindow in pixels

Returns

n/a

See Also

getMaxWidth, setMinWidth, getMinWidth

getMinWidth

Returns the minwidth of the infowindow set by the user.  If user does not set any minwidth value, the default minwidth(60px) will be returned.

Parameters

none

Returns

int

See Also

setMinWidth, setMaxWidth, getMaxWidth

setMinWidth

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.

Parameters

width(int) The minwidth of infowindow in pixels

Returns

n/a

See Also

getMinWidth, setMaxWidth, getMaxWidth

getTitleBackgroundColor

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.

Parameters

none

Returns

string (hex color)

See Also

setTitleBackgroundColor

setTitleBackgroundColor

Sets the background color of the title section of the InfoWindow

Parameters

color(string) The new color to use (eg “#CC7788” or “blue”).  To use the default color specified in .css, use empty string (“”).

Returns

n/a

See Also

getTitleBackgroundColor

Constructs an MQA.TileMap object.
Makes the info window visible if it is currently hidden.
Hides the info window if it is currently visible .
Sets the maximum width allowed for the infowindow.
Sets the minimum width allowed for the infowindow.
Returns the minwidth of the infowindow set by the user.
Returns the maxwidth of the infowindow set by the user.
Sets the background color of the title section of the InfoWindow
Returns the current user-defined background color of the title section of the InfoWindow.
Close