Select to view content in your preferred language

close popups

1034
2
Jump to solution
09-10-2012 05:00 PM
AHay
by
Deactivated User
hi anyone know how to close a popup ( with code We are using 2.4 still)
we have an app that adds layers  based on a users choice of project from a table

when the user clicks the button to select a new project i want any pop us they have open to close

i thought this should be easy
i use PopUpmanger.removePopup(map) on the click event of choose another
but this does nothing
?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
A Hay,

   The Viewers popup are not controlled through the PopUpManager so as you have figured out you can not use the PopUpManager. It is as simple as:

map.infoWindow.hide();


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
A Hay,

   The Viewers popup are not controlled through the PopUpManager so as you have figured out you can not use the PopUpManager. It is as simple as:

map.infoWindow.hide();


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

0 Kudos
AHay
by
Deactivated User
Thank you
so simple
0 Kudos