Files
web-components-workshop-pol…/index.html
2017-12-13 13:21:32 +01:00

52 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<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="/bower_components/polymer/polymer.html">
<link rel="import" href="/src/components/hello-world.html">
<link rel="import" href="/bower_components/google-map/google-map.html">
<link rel="import" href="/bower_components/google-map/google-map-directions.html">
<link rel="import" href="/bower_components/paper-input/paper-input.html">
<!--https://developers.google.com/maps/documentation/javascript/get-api-key -->
<style>
#map{
height: 400px;
width: 600px;
margin: 0;
}
</style>
</head>
<body>
<h1>WebComponents workshop</h1>
<p>In this workshop, we will have some fun with Polymer</p>
<hello-world></hello-world>
<dom-bind>
<template>
<div id="map">
<google-map map="{{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>
<google-map-directions
map="{{map}}"
start-address="{{start}}"
end-address="Utrecht Central"
api-key="AIzaSyD3E1D9b-Z7ekrT3tbhl_dy8DCXuIuDDRc">
</google-map-directions>
</div>
<paper-input label="Start location" value="{{start}}"></paper-input>
</template>
</dom-bind>
</body>
</html>