MDonnellyesriaustralia-com-au-esridist

How to change the z order of the Infowindow - solution

Discussion created by MDonnellyesriaustralia-com-au-esridist Employee on Oct 16, 2012
Latest reply on Dec 11, 2012 by VBAHole
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

Outcomes