Skip to content

Instantly share code, notes, and snippets.

@RobSchoenaker
Created July 5, 2014 11:56
Show Gist options
  • Save RobSchoenaker/1021aa42420101fe4188 to your computer and use it in GitHub Desktop.
Save RobSchoenaker/1021aa42420101fe4188 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../google-map/google-map-directions.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#google_map_directions {
left: 290px;
top: 240px;
position: absolute;
}
#google_map {
width: 400px;
height: 400px;
display: block;
left: 20px;
top: 20px;
position: absolute;
}
#google_map_directions1 {
left: 200px;
top: 460px;
position: absolute;
}
#google_map_directions2 {
left: 310px;
top: 480px;
position: absolute;
}
</style>
<google-map id="google_map"></google-map>
<google-map-directions id="google_map_directions" map="google_map"></google-map-directions>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment