Step 3 : Adding a Google Map to the page

This commit is contained in:
Julien Lengrand-Lambert
2017-12-13 11:26:37 +01:00
parent 89bc937a30
commit a627f901ea

View File

@@ -5,7 +5,18 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="/src/components/hello-world.html">
<link rel="import" href="/src/components/hello-world.html">
<link rel="import" href="/bower_components/google-map/google-map.html">
<!--https://developers.google.com/maps/documentation/javascript/get-api-key -->
<style>
#map{
height: 400px;
width: 600px;
margin: 0;
}
</style>
</head>
<body>
@@ -13,5 +24,15 @@
<p>In this workshop, we will have some fun with Polymer</p>
<hello-world></hello-world>
<div id="map">
<google-map latitude="52.092876" longitude="5.104480" zoom="13"
api-key="AIzaSyD3E1D9b-Z7ekrT3tbhl_dy8DCXuIuDDRc">
<google-map-marker latitude="52.092876" longitude="5.104480"
title="UTrecht!">
</google-map-marker>
</google-map>
</div>
</body>
</html>