mirror of
https://github.com/jlengrand/web-components-workshop-polymer.git
synced 2026-03-10 08:51:20 +00:00
Step 3 : Adding a Google Map to the page
This commit is contained in:
23
index.html
23
index.html
@@ -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>
|
||||
Reference in New Issue
Block a user