Created
June 8, 2020 06:01
-
-
Save dev-jonghoonpark/7ebe04639627f51a3c5cf310f14d22c5 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
<html> | |
<head> | |
<script src="https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=<<yourId>>&submodules=panorama"></script> | |
<script> | |
var pano = null; | |
naver.maps.onJSContentLoaded = function() { | |
pano = new naver.maps.Panorama("pano", { | |
position: new naver.maps.LatLng(37.3599605, 127.1058814), | |
pov: { | |
pan: -135, | |
tilt: 29, | |
fov: 100 | |
} | |
}); | |
}; | |
</script> | |
<style> | |
.pano-wrapper { | |
position: relative; | |
} | |
.pano-wrapper, | |
#pano { | |
width: 100%; | |
height: 100%; | |
} | |
.close-btn { | |
position: absolute; | |
right: 1rem; | |
top: 1rem; | |
width: 36px; | |
height: 36px; | |
z-index: 1000000000000000000000000; | |
background: #484848; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="pano-wrapper"> | |
<div id="pano"></div> | |
<div class="close-btn"></div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[해결법]
.close-btn 에 transform: translate3d(0, 0, 0); 추가하여 해결