Custom InfoWindow hides after event "onPanStart"!! - how to change that?

580
2
03-29-2012 10:03 AM
DöringSebastian
New Contributor II
Need help urgend,

how can i make the custom infoWindow still visible while panning in the map?
The sample i used:
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm

Thanks for any tips!
0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
You can change this by commenting out the following lines in the infoWindow.js file:

  setMap: function(map) {
    // Run logic defined in the base class
    this.inherited(arguments);
    
//COMMENT OUT OR REMOVE THESE LINES 
    //  hide the info window when the user is focusing elsewhere.
  //  this._eventConnections.push(dojo.connect(map, "onPanStart", this, this.hide));
   // this._eventConnections.push(dojo.connect(map, "onZoomStart", this, this.hide));
  },
  

0 Kudos
DöringSebastian
New Contributor II
thanks kelly for your suggestion.
I try the same but the infowindow lost than its anchorpoint and moved not with the map while panning.
Now, i customised the common infowindow for my need.

regards
0 Kudos