How to change the z order of the Infowindow - solution

5709
1
10-16-2012 04:34 PM
mdonnelly
Esri Contributor
Hello,

I have noticed that there are couple of archived forums asking this question. I recently had to figure out how to change the z order on the infowindow myself, so I thought I would share my solution with you.

The only way I could figure out to do it was to modify the z index on the 'map_infowindow' html element. See the code below:

dojo.connect(map.infoWindow, 'onShow', function(){
  document.getElementById('map_infowindow').style.zIndex = 9999;
 });


This code will make sure that the infowindow is always on top.

I hope this helps,

Mark
Regards,
Mark
0 Kudos
1 Reply
KeG
by
New Contributor II
very useful, thank you.
seems like there should be an easier way.
0 Kudos