Select to view content in your preferred language

How to clear the map of infoTemplate window?

962
2
Jump to solution
11-26-2012 04:29 AM
YvanBérard
Regular Contributor
Hi all,

I want to know if there is anyway I could clear my map of the infoTemplate window?

In this example, on the map.graphics.clear() the polygon selection disappear, but not the infoTemplate window.


if( getActiveTool() == "#identify_spot" ) {  setActiveTool();  map.graphics.clear();  dojo.disconnect(getDojoClick()); }



How can I clear both the graphics and the infoTemplate window?

Thank you, it's realy appreciated.
0 Kudos
1 Solution

Accepted Solutions
TracySchloss
Honored Contributor
I'm not sure exactly how you are calling your infoWindows in the first place, but I have been using
map.infoWindow.hide();

View solution in original post

0 Kudos
2 Replies
TracySchloss
Honored Contributor
I'm not sure exactly how you are calling your infoWindows in the first place, but I have been using
map.infoWindow.hide();
0 Kudos
YvanBérard
Regular Contributor
haha my bad...didn't search enough!

Thank's though, it worked!
0 Kudos