Map Extent Changed + Info Window Hide() leaves Info Window Visible

Discussion created by aconnolly on Oct 24, 2011
Latest reply on Oct 25, 2011 by aconnolly
I've adapted the "Non graphic info window" sample found here (link) to test an issue I found with the "onExtentChange" event and the Info Window

To reproduce the issue:

1. Browse to the attached .htm filer.
2. Zoom into a level greater than 10.
3. Click the map and wait for the info window to display.
4. Drag zoom out to level 9.

Notice the following:

- You can pan the map but the info window does not follow the map anymore if you pan the map.
- The info window should disappear after that last zoom out extent change (going from 10 to 9), but it doesn't. It will disappear when you move the extent once more, though.

Why is this happening? Why is the .hide() call seemingly not respected in the onExtentChange event even though the infoWindow is clearly visible? You can also see that the isShowing property of the infoWindow is still "true" even though we've hidden it.

Am I doing something wrong here?

- Aaron