| Package | com.esri.ags.components.supportClasses |
| Class | public class InfoWindow |
| Inheritance | InfoWindow InfoComponent spark.components.supportClasses.SkinnableComponent |
infoWindowRenderer property.
Note that the map can only have one info window. You can hide it, show it, change its content or location.
|
|
|
|
| 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. | InfoComponent | |
![]() | anchorY : Number
The anchor Y location in pixels. | InfoComponent | |
| 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 | ||
![]() | data : Object
The associated data. | InfoComponent | |
| label : String
The label (or title) of the info window. | InfoWindow | ||
| labelVisible : Boolean
Whether to display the label in the upper left corner. | InfoWindow | ||
![]() | map : Map [read-only]
Gets a reference to the Map instance. | InfoComponent | |
| 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 | |||
| Fires when an InfoWindow is opened. | InfoWindow | |||
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
| Skin Part | Description | Defined By | ||
|---|---|---|---|---|
closeButton:spark.components.supportClasses.ButtonBase | Required: false Part Type: Static Optional skin part to display a close button. By default, this will appear at the top right corner of the InfoWindow. | InfoWindow | ||
![]() | contentGroup:spark.components.Group | Required: false Part Type: Static Optional skin part to hold the info window content. | InfoComponent | |
labelText:spark.components.supportClasses.TextBase | Required: false Part Type: Static Optional skin part to display the label/title of the InfoWindow. By default, this will appear at the top left corner of the InfoWindow. | 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 the 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.
| label | property |
label:String| Since : | ArcGIS API for Flex 2.3 |
The label (or title) of the info window.
This property can be used as the source for data binding.
public function get label():String public function set label(value:String):void| 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, stagePoint:Point = null):void
Shows the info window at a specific location.
This will dispatch an Event.OPEN event.
Parameters
mapPoint:MapPoint — The location of the info window in map coordinates.
| |
stagePoint:Point (default = null) — [optional] The location of the info window in global stage coordinates [added in version 2.3].
|
See also
| close | Event |
flash.events.Eventflash.events.Event.CLOSEFires when an InfoWindow is closed.
| open | Event |
flash.events.Eventflash.events.Event.OPENFires when an InfoWindow is opened.