diff --git a/examples/popup.js b/examples/popup.js index 4d966a9b02..dfaee5651d 100644 --- a/examples/popup.js +++ b/examples/popup.js @@ -38,7 +38,7 @@ var closer = document.getElementById('popup-closer'); * @return {boolean} Don't follow the href. */ closer.onclick = function() { - container.style.visibility = 'hidden'; + container.style.display = 'none'; return false; }; @@ -63,6 +63,6 @@ map.on('click', function(evt) { overlay.setPosition(coordinate); content.innerHTML = '

The location you clicked was:

' + hdms + ''; - container.style.visibility = 'visible'; + container.style.display = 'block'; });