Packagecom.esri.ags.controls
Classpublic class InfoWindow
InheritanceInfoWindow Inheritance InfoContainer Inheritance mx.core.Container

InfoWindow is used to display custom content on the map or the attributes of a graphic based on its infoWindowRenderer property.

Table 1: Examples of infoWindows
Custom infowindowrenderer
Standard InfoWindow (see sample)
Orange infowindow without close button
Styled InfoWindow (see Concepts)
InfoWindow with image
Styled InfoWindow (see sample)

See also

com.esri.ags.Map.infoWindow
Live sample - Using infoWindow on rollover
Live sample - Show Geoprocessing result in InfoWindow
Live sample - Show Query result in InfoWindow
Live sample - Show Locator result in InfoWindow


Public Properties
 PropertyDefined by
 InheritedanchorX : Number
The anchor X location in pixels.
InfoContainer
 InheritedanchorY : Number
The anchor Y location in pixels.
InfoContainer
  closeButtonVisible : Boolean
Whether to display the close button n the upper right corner.
InfoWindow
  content : UIComponent
The info window content.
InfoWindow
  labelVisible : Boolean
Whether to display the label on the upper left corner.
InfoWindow
Public Methods
 MethodDefined by
  
hide():void
Hide the info window.
InfoWindow
  
show(mapPoint:MapPoint):void
Shows the info window at a specific location.
InfoWindow
Events
 EventSummaryDefined by
   Fires when an InfoWindow is closed.InfoWindow
Styles
 StyleDescriptionDefined by
 Inherited Type: Number   CSS Inheritance: no
The alpha transparency of the border [added in version 1.3].
InfoContainer
 Inherited Type: uint   Format: Color   CSS Inheritance: no
The color of the border [added in version 1.3].
InfoContainer
 Inherited Type: Class   CSS Inheritance: no
The border skin class of the component.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Thickness of the border [added in version 1.3], in pixels.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels of the tail base.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels in the horizontal direction to offset the info tail.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels in the vertical direction to offset the info tail.
InfoContainer
 Inherited Type: String   CSS Inheritance: no
The placement of the info container relative to its anchor point.
InfoContainer
 Inherited Type: String   CSS Inheritance: no
The placement mode of the info container when partially off the map.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Radius of the lower left corner.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Radius of the lower right corner.
InfoContainer
 Inherited Type: Number   CSS Inheritance: no
The alpha transparency value for the shadow color.
InfoContainer
 Inherited Type: Number   CSS Inheritance: no
The angle of the shadow.
InfoContainer
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
The color of the shadow.
InfoContainer
 Inherited Type: Number   CSS Inheritance: no
The offset distance for the shadow, in pixels.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Radius of the upper left corner.
InfoContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Radius of the upper right corner.
InfoContainer
Property detail
closeButtonVisibleproperty
closeButtonVisible:Boolean  [read-write]

Whether to display the close button n the upper right corner. The default value is true.

Implementation
    public function get closeButtonVisible():Boolean
    public function set closeButtonVisible(value:Boolean):void
contentproperty 
content:UIComponent  [read-write]

The info window content. Developers can hide the header label and close button using the labelVisible and closeButtonVisible properties. A component in the content can hide the info window by making content dispatch a CLOSE event.

This property can be used as the source for data binding.

Implementation
    public function get content():UIComponent
    public function set content(value:UIComponent):void
labelVisibleproperty 
labelVisible:Boolean  [read-write]

Whether to display the label on the upper left corner. The default value is true.

Implementation
    public function get labelVisible():Boolean
    public function set labelVisible(value:Boolean):void
Method detail
hide()method
public function hide():void

Hide the info window. This is will also dispatch a Event.CLOSE event.

show()method 
public function show(mapPoint:MapPoint):void

Shows the info window at a specific location.

Parameters
mapPoint:MapPoint — The location of the info window in map coordinates.

See also

Event detail
closeevent 
Event object type: flash.events.Event

Fires when an InfoWindow is closed.