require(["esri/dijit/InfoWindowLite"], function(InfoWindowLite) { /* code goes here */ });
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
CSS
esri/dijit/InfoWindowLite | Download source
Properties
anchor | String | Placement of the InfoWindow with respect to the graphic. |
coords | Point | The anchor point of the InfoWindowLite in screen coordinates. |
domNode | Object | The reference to a DOM node where the info window is constructed. |
fixedAnchor | String | Always display the info window using the specified anchor. |
isShowing | Boolean | Determines whether the InfoWindowLite is currently shown on the map. |
Methods
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
hide | | Fires when an infoWindow is hidden. |
show | | Fires when an InfoWindowLite is displayed. |
Old Events
onHide() | Fires when an infoWindow is hidden. |
onShow() | Fires when an InfoWindowLite is displayed. |
Constructor Details
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
Placement of the InfoWindow with respect to the graphic. See the
InfoWindow Constants table for values.
Default value: ANCHOR_UPPERRIGHT
The anchor point of the InfoWindowLite in screen coordinates.
The reference to a DOM node where the info window is constructed. Sub-classes should define this property .
Always display the info window using the specified anchor. See the
Info Window Constants table for a list of valid values.
Determines whether the InfoWindowLite is currently shown on the map.
Known values: true | false
Method Details
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.
Moves the InfoWindow to the specified screen point.
Parameters:
<Point > point |
Required |
The new anchor point when moving the InfoWindowLite. |
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. |
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. |
Sets the content in the InfoWindow.
Parameters:
<Object > content |
Required |
The content for the InfoWindow. Can be any valid HTML or DOM element. |
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. |
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. |
Define the title for the InfoWindowLite.
Parameters:
<String > title |
Required |
The title for the InfoWindowLite. Can be any valid HTML. |
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. |
Finalizes the creation of the widget. (Added at v3.12)
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.
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 ]
Fires when an infoWindow is hidden. (Added at v3.6)
Fires when an InfoWindowLite is displayed. (Added at v3.6)
Fires when an infoWindow is hidden.
Fires when an InfoWindowLite is displayed.