class TInfoWindow

TInfoWindow can be attached to a marker by attachMarker(), and use open() to open it.

Constructor Description
TInfoWindow() Construct a new TInfoWindow object.

Methods

Method Return Value Description
attachMarker(marker: TMarker, anchor?:TPoint,
shadowAnchor?:TPoint)
None Attach marker to the infowindow.
detachMarker() TMarker Detach InfoWindow from the marker.
setContent(htmlContent: String, isMaximized: Boolean,
onLoad: Function)
None Sets html contents in info window.
setSize(width: Integer, height: Integer,
isMaximized: Boolean)
None Set the size of info window.
setMaximized(isMaximized : Boolean) None Set the info window in a maximized or minimized mode. Set by true/false.
isMaximized() Boolean Return true if the info window is maximized.
showResizeControl() None Show the top right resize controls.
hideResizeControl() None Hide the top right resize controls.
showShadow() None Show the shadow.
hideShadow() None Hide the shadow.
open() None Open the infowindow.
close() None Close the infowindow.

Events

Event Description
close(infoWindow:TInfoWindow) Fired when closing infowindow.
resize(infoWindow:TInfoWindow, isMaximized:Boolean) Fired when resizing infowindow.
load(infoWindow:TInfoWindow) Fired after setContent() is called.