Class: MMap.Window
Window where HTML contents are displayed
Extends:
MMap.OverlayView
Method: constructor
Constructor in window
Syntax:
var myWindow = new MMap.Window(options);
Arguments:
- options - (mixed) Option in window
Options:
- className - (string) Style applied to window (class name of CSS)
- title - (string) Content set to title of window
- content - (string|element) Content displayed in window
- position - (LatLng) Coordinates position of window
- zIndex - (number) The order of displaying window
- visible - (boolean) State of display of window
- active - (boolean) Active state of window
- onOpen - (function) When the window is opened, it is generated.
- onClose - (function) When the window is shut, it is generated.
- onVisibleChanged - (function) When the display of the window changes, it is generated.
- onZIndexChanged - (function) When the order of displaying the window changes, it is generated.
- onPositionChanged - (function) When the display coordinates of the window are changed, it is generated.
- onTitleChanged - (function) When the title of the window changes, it is generated.
- onContentChanged - (function) When the content of the window changes, it is generated.
Method: draw
It draws in the window again.
Syntax:
window.draw();
Method: refresh
The window is updated and the display is updated.
Syntax:
window.refresh();
Method: open
The window is opened.
Syntax:
window.open(map, marker);
Arguments:
- map - (Map) Map where window is displayed
- anchor - (marker) Marker object
Method: close
The window is shut.
Syntax:
window.close();
Method: isOpen
The opening of the window is acquired.
Syntax:
window.isOpen();
Returns:
(boolean) The window is opened for true.
Method: getZIndex
The order of the display of the window is acquired.
Syntax:
var index = window.getZIndex();
Returns:
(number) The order of display
Method: setZIndex
The order of the display of the window is set.
Syntax:
window.setZIndex(100);
Arguments:
- index - (number) The order of display
Returns:
(window) Window object(MMap.Window)
Method: getPosition
Coordinates to which the window is displayed are acquired.
Syntax:
var latlng = window.getPosition();
Returns:
(LatLng) Coordinates
Method: setPosition
Coordinates that display the window are set.
Syntax:
window.setPosition(latlng);
Arguments:
- position - (LatLng) Displayed coordinates
Returns:
(window) Window object(MMap.Window)
Method: getTitle
The title displayed in the window is acquired.
Syntax:
window.getTitle();
Returns:
(string) Title
Method: setTitle
The title displayed in the window is specified.
Syntax:
window.setTitle('Title');
Arguments:
- title - (string) Title of window
Returns:
(window) Window object(MMap.Window)
Method: getContent
Specified contents are acquired.
Syntax:
var content = window.getContent();
Returns:
(string) Contents
Method: setContent
Contents specified for the window are displayed.
Syntax:
window.setContent('Content');
Arguments:
- content - (string|element) Contents displayed in window
Returns:
(window) Window object(MMap.Window)
Method: setActive
The window is made active.
Syntax:
window.setActive(true);
Arguments:
- value - (boolean) When true is specified, the window is made active.
Returns:
(window) Window object(MMap.Window)