| Package | com.esri.ags.components |
| Class | public class InfoWindow |
| Inheritance | InfoWindow InfoContainer mx.core.Container |
infoWindowRenderer property.
|
|
|
|
| Standard InfoWindow(see sample) | Styled InfoWindow(see sample) | Styled InfoWindow(see Concepts) | Custom InfoWindow(see sample) |
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | anchorX : Number
The anchor X location in pixels. | InfoContainer | |
![]() | anchorY : Number
The anchor Y location in pixels. | InfoContainer | |
| closeButtonVisible : Boolean
Whether to display the close button in the upper right corner. | InfoWindow | ||
| content : UIComponent
The info window content. | InfoWindow | ||
| contentOwner : Object
The content owner. | InfoWindow | ||
| labelVisible : Boolean
Whether to display the label in the upper left corner. | InfoWindow | ||
![]() | map : Map [read-only]
Get a reference the Map instance. | InfoContainer | |
| Method | Defined By | ||
|---|---|---|---|
hide():void
Hide the info window. | InfoWindow | ||
Shows the info window at a specific location. | InfoWindow | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Fires when an InfoWindow is closed. | InfoWindow | |||
| closeButtonVisible | property |
closeButtonVisible:BooleanWhether to display the close button in the upper right corner.
The default value is true.
public function get closeButtonVisible():Boolean public function set closeButtonVisible(value:Boolean):void| content | property |
content:UIComponent
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.
public function get content():UIComponent public function set content(value:UIComponent):void| contentOwner | property |
public var contentOwner:Object
The content owner.
Most of the time, the content owner is an instance of Graphic.
| labelVisible | property |
labelVisible:BooleanWhether to display the label in the upper left corner. This label is can be styled using InfoWindowLabel
The default value is true.
public function get labelVisible():Boolean public function set labelVisible(value:Boolean):voidSee also
| hide | () | method |
public function hide():void
Hide the info window.
This will dispatch an Event.CLOSE event.
| show | () | method |
public function show(mapPoint:MapPoint):voidShows the info window at a specific location.
Parameters
mapPoint:MapPoint — The location of the info window in map coordinates.
|
See also
| close | Event |
flash.events.Eventflash.events.Event.CLOSEFires when an InfoWindow is closed.