Class Index | File Index

Classes


Class eniro.maps.InfoWindow


Extends eniro.maps.widget.Control.

Defined in: InfoWindow.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a InfoWindow from the given options object.
Field Summary
Field Attributes Field Name and Description
 
Window content as a DOM element (even if set as string).
Fields borrowed from class eniro.maps.widget.Control:
div, map
Method Summary
Method Attributes Method Name and Description
 
Close this window and remove it from the DOM.
 
Destroys this control instance releasing all references.
 
equals(other)
Compare this instance with another instance.
 
Returns the content set with #setContent().
 
Returns the position.
 
open(target)
Opens this InfoWindow on the given map or anchor.
 
setContent(content)
Sets the contents of this info window as either a string or dom element.
 
setPosition(latlng)
Sets the position.
Methods borrowed from class eniro.maps.widget.Control:
initialize, postinitialize, setMap
Event Summary
Event Attributes Event Name and Description
 
Click
 
Close
 
Mouseout
 
Mouseover
Class Detail
eniro.maps.InfoWindow(opts)
Creates a InfoWindow from the given options object.
Parameters:
{InfoWindowOptions} opts
options object.
Field Detail
content
Window content as a DOM element (even if set as string).
Method Detail
close()
Close this window and remove it from the DOM.

destroy()
Destroys this control instance releasing all references.

{boolean} equals(other)
Compare this instance with another instance.
Parameters:
{eniro.maps.InfoWindow} other
The instance to compare this instance to.
Returns:
{boolean} true If this instance is equal to the given one.

{String|Element} getContent()
Returns the content set with #setContent().
Returns:
{String|Element} the contents set previously. Type depends on what was set.

{eniro.maps.LatLng} getPosition()
Returns the position.
Returns:
{eniro.maps.LatLng} the position of the InfoWindow.

open(target)
Opens this InfoWindow on the given map or anchor.
Parameters:
{eniro.maps.Map|eniro.maps.Marker} target
The target for the InfoWindow which can either be a map or an anchor (already positioned on a map).

setContent(content)
Sets the contents of this info window as either a string or dom element.
Parameters:
{String|Element} content
The content to show in the window set as either a dom element or string.

setPosition(latlng)
Sets the position.
Parameters:
{eniro.maps.LatLng} latlng
the position to place the InfoWindow at. Must be specified to make InfoWindow appear.
Event Detail
click()
Click
eniro.maps.event(infoWindow, 'click', listener);

close()
Close
eniro.maps.event(infoWindow, 'close', listener);

mouseout()
Mouseout
eniro.maps.event(infoWindow, 'mouseout', listener);

mouseover()
Mouseover
eniro.maps.event(infoWindow, 'mouseover', listener);

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Mar 30 2020 12:10:03 GMT+0200 (CEST)