Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: InfoWindowLite

dojo.require("esri.dijit.InfoWindowLite")

Description

(Added at v3.5)
Creates a new InfoWindowLite object.

Samples

Search for samples that use this class.

Class hierarchy

esri/dijit.InfoWindowBase
|_esri/dijit.InfoWindowLite

Constructors

NameSummary
new esri.dijit.InfoWindowLite(params, srcNodeRef)Create a new InfoWindowLite.

CSS

esri/dijit/InfoWindowLite | Download source

Properties

NameTypeSummary
anchorStringPlacement of the InfoWindow with respect to the graphic.
coordsPointThe anchor point of the InfoWindowLite in screen coordinates.
domNodeObjectThe reference to a DOM node where the info window is constructed.
fixedAnchorStringAlways display the info window using the specified anchor.
isShowingBooleanDetermines whether the InfoWindowLite is currently shown on the map.

Methods

NameReturn typeSummary
destroyDijits()NoneHelper method.
hide()NoneHides the InfoWindow.
move(point)NoneMoves the InfoWindow to the specified screen point.
place(value, parentNode)NoneHelper method.
resize(width, height)NoneResizes the InfoWindowLite to the specified height and width in pixels.
setContent(content)NoneSets the content in the InfoWindow.
setFixedAnchor(anchor)NoneSet the fixed location of the InfoWindowLite anchor.
setMap(map)NoneThis method is called by the map when the object is set as its info window.
setTitle(title)InfoWindowDefine the title for the InfoWindowLite.
show(point, location, placement?)NoneDisplay the InfoWindow at the specified location.
startup()NoneFinalizes the creation of the widget.
startupDijits()NoneHelper method.
unsetMap(map)NoneThis method is called by the map when the object is no longer the map's info window.

Events

[ On Style Events | Connect Style Event ]
All On Style event listeners receive a single event object. Additionally, the event object also contains a 'target' property whose value is the object which fired the event.

Events

NameEvent ObjectSummary
hideFires when an infoWindow is hidden.
showFires when an InfoWindowLite is displayed.
Constructor Details

new esri.dijit.InfoWindowLite(params, srcNodeRef)

Create a new InfoWindowLite.
Parameters:
<Object> params Required Specify optional parameters used to create the InfoWindowLite. View the options list for valid values. This parameter is required but can be null or an empty object.
<Node | String> srcNodeRef Required Reference or id of the HTML element where the widget should be rendered.
Property Details

<String> anchor

Placement of the InfoWindow with respect to the graphic. See the InfoWindow Constants table for values.
Default value: ANCHOR_UPPERRIGHT

<Point> coords

The anchor point of the InfoWindowLite in screen coordinates.

<Object> domNode

The reference to a DOM node where the info window is constructed. Sub-classes should define this property .

<String> fixedAnchor

Always display the info window using the specified anchor. See the Info Window Constants table for a list of valid values.

<Boolean> isShowing

Determines whether the InfoWindowLite is currently shown on the map.
Known values: true | false
Method Details

destroyDijits()

Helper method. Call destroy on dijits that are embedded into the specified node. Sub-classes may need to call this method before executing setContent logic to finalize the destruction of any embedded dijits in the previous content.

hide()

Hides the InfoWindow.
See also: on("hide")

move(point)

Moves the InfoWindow to the specified screen point.
Parameters:
<Point> point Required The new anchor point when moving the InfoWindowLite.

place(value, parentNode)

Helper method. Place the HTML value as a child of the specified parent node.
Parameters:
<String | HTMLElement> value Required A string with HTML tags or a DOM node.
<Node> parentNode Required The parent node where the value will be placed.

resize(width, height)

Resizes the InfoWindowLite to the specified height and width in pixels.
Parameters:
<Number> width Required The new width of the InfoWindowLite in pixels.
<Number> height Required The new height of the InfoWindowLite in pixels.

setContent(content)

Sets the content in the InfoWindow.
Parameters:
<Object> content Required The content for the InfoWindow. Can be any valid HTML or DOM element.

setFixedAnchor(anchor)

Set the fixed location of the InfoWindowLite anchor. Value values are listed in the Info Window Constants table.
Parameters:
<String> anchor Required Fixed anchor that cannot be overridden by InfoWindowLite.show(). See InfoWindow Constants table for values.

setMap(map)

This method is called by the map when the object is set as its info window. The default implementation provided by InfoWindowBase stores the argument to this object in a property named map and is sufficient for most use cases.
Parameters:
<Map> map Required The map object.

setTitle(title)

Define the title for the InfoWindowLite.
Return type: InfoWindow
Parameters:
<String> title Required The title for the InfoWindowLite. Can be any valid HTML.

show(point, location, placement?)

Display the InfoWindow at the specified location. Placement can be specified with respect to the location i.e., place the window at the location's upper-right corner. If placment is not specified the info window places the window to avoid falling off the map edge.
Parameters:
<Point> point Required Location to place anchor.
<Point> location Required Location is an instance of esri.geometry.Point. If the location has a spatial reference, it is assumed to be in map coordinates otherwise screen coordinates are used. Screen coordinates are measured in pixels from the top-left corner of the map control. To convert between map and screen coordinates use Map.toMap and Map.toScreen.
<String> placement Optional Placement of the InfoWindow with respect to the graphic. See the InfoWindow Constants table for values.
See also: on("show")

startup()

Finalizes the creation of the widget. (Added at v3.12)

startupDijits()

Helper method. Call startup on dijits that are embedded into the specified node. Sub-classes may need to call this method right after displaying the info window, passing in a reference to the content node.

unsetMap(map)

This method is called by the map when the object is no longer the map's info window. The default implementation provided by InfoWindowBase clears the argument property "map" from the object and is sufficient for most use cases.
Parameters:
<Map> map Required The map object.
Event Details
[ On Style Events | Connect Style Event ]

hide

Fires when an infoWindow is hidden. (Added at v3.6)
See also: hide()

show

Fires when an InfoWindowLite is displayed. (Added at v3.6)
See also: show()
Show Modal