Last active
July 23, 2017 18:49
-
-
Save AntonLitvin/912166109bbc4e8796bc7ca0e3a38237 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Оверлей поверх карт, чтобы они не масштабировались при прокрутке сайта | |
<div class="map-container"> | |
<!-- Включение гугл карты по клику --> | |
<div class="map-overlay" onClick="style.pointerEvents='none'"></div> | |
<iframe src="https://тут карта"></iframe> | |
</div> | |
// или так jQuery | |
$(function(){ | |
$('.map-overlay').on('click', function() { | |
$(this).remove(); | |
}); | |
}); | |
.map-container { | |
position: relative; | |
} | |
.map-overlay { | |
background-color: transparent; | |
position:absolute; | |
width:100%; | |
height: 100%; | |
top:0; | |
left:0; | |
z-index: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment