The method that displays the popup polls from the database and therefore its execution may take a while.
This may result in the popup appearing right after the user closes the map page, so we should check if the currently opened page really is the map page right before opening the popup.
The method that displays the popup polls from the database and therefore its execution may take a while. This may result in the popup appearing right after the user closes the map page, so we should check if the currently opened page really is the map page right before opening the popup.