Skip to content

Instantly share code, notes, and snippets.

@dev-jonghoonpark
Created June 8, 2020 06:01
Show Gist options
  • Save dev-jonghoonpark/7ebe04639627f51a3c5cf310f14d22c5 to your computer and use it in GitHub Desktop.
Save dev-jonghoonpark/7ebe04639627f51a3c5cf310f14d22c5 to your computer and use it in GitHub Desktop.
네이버지도 버그 구현 코드
<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>
@dev-jonghoonpark
Copy link
Author

[해결법]
.close-btn 에 transform: translate3d(0, 0, 0); 추가하여 해결

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment