Created
December 17, 2018 05:31
-
-
Save harrisonmalone/c220d28341758c8514fc75fcc6677415 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
* { | |
margin: 0px; | |
} | |
.container { | |
width: 60vw; | |
} | |
.content { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.col { | |
width: 50%; | |
} | |
.box { | |
box-sizing: border-box; | |
height: 600px; | |
border: 1px solid black; | |
margin: 20px; | |
} | |
#googleMap { | |
width: 40vw; | |
height: 100vh; | |
} | |
.map-outter { | |
position: fixed; | |
top: 0; | |
right: 0; | |
} | |
.map-inner { | |
width: 40vw; | |
height: 100vh; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="content"> | |
<div class="col"> | |
<div class="box"></div> | |
</div> | |
<div class="col"> | |
<div class="box"></div> | |
</div> | |
<div class="col"> | |
<div class="box"></div> | |
</div> | |
<div class="col"> | |
<div class="box"></div> | |
</div> | |
<div class="col"> | |
<div class="box"></div> | |
</div> | |
</div> | |
<div class="map-outter"> | |
<div class="map-inner"> | |
<div id="googleMap"></div> | |
</div> | |
</div> | |
</div> | |
<script> | |
function myMap() { | |
const mapProp= { | |
center:new google.maps.LatLng(-37.814, 144.96332), | |
zoom: 13, | |
}; | |
const map = new google.maps.Map(document.getElementById("googleMap"), mapProp) | |
} | |
</script> | |
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBFsNizN6IzK1PMGFFL9ul-74ra5pEuNqo&callback=myMap"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment