Select to view content in your preferred language

InfoWindow - Not displayed

860
2
Jump to solution
07-12-2012 10:51 AM
ShaningYu
Honored Contributor
I planned to create an infoWindow and display it after clicking a irem in a datagrid.  I referred to ESRI's code at http://help.arcgis.com/en/webapi/flex/samples/index.html#/InfoWindow_on_MouseOver/01nq0000001q000000....   The existing source code is below:
    <esri:Map id="myMap" load="zoomToSouthCarolina()">
        <esri:infoWindowContent>
            <mx:TextArea id="myTextArea"
                         width="250" height="75"/>
        </esri:infoWindowContent>
        ...
  </esri:Map>
Since this infoWindow in a widget where there is no need to define "myMap" again.  How can I add the infoWindow (or inforWindowContent) to the defined "map"?  Thabnks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AustinDavis
Occasional Contributor
In ActionScript:

map.infoWindow.show(mp);

where map is your map instance <myMap> and mp is the MapPoint in which you would like it to appear.

View solution in original post

0 Kudos
2 Replies
AustinDavis
Occasional Contributor
In ActionScript:

map.infoWindow.show(mp);

where map is your map instance <myMap> and mp is the MapPoint in which you would like it to appear.
0 Kudos
ShaningYu
Honored Contributor
Use an alternative approach.  Thanks.
0 Kudos