Toggle display instead of visibility for proper click handling
This commit is contained in:
@@ -38,7 +38,7 @@ var closer = document.getElementById('popup-closer');
|
|||||||
* @return {boolean} Don't follow the href.
|
* @return {boolean} Don't follow the href.
|
||||||
*/
|
*/
|
||||||
closer.onclick = function() {
|
closer.onclick = function() {
|
||||||
container.style.visibility = 'hidden';
|
container.style.display = 'none';
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -63,6 +63,6 @@ map.on('click', function(evt) {
|
|||||||
overlay.setPosition(coordinate);
|
overlay.setPosition(coordinate);
|
||||||
content.innerHTML = '<p>The location you clicked was:</p><code>' + hdms +
|
content.innerHTML = '<p>The location you clicked was:</p><code>' + hdms +
|
||||||
'</code>';
|
'</code>';
|
||||||
container.style.visibility = 'visible';
|
container.style.display = 'block';
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user