Skip to content

Instantly share code, notes, and snippets.

@designer-polymer
Created August 7, 2014 21:07
Show Gist options
  • Save designer-polymer/3cc03a1fc02dbeb63384 to your computer and use it in GitHub Desktop.
Save designer-polymer/3cc03a1fc02dbeb63384 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../google-map/google-map-directions.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#google_map {
width: 100%;
height: 100%;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
#core_card {
position: absolute;
width: 300px;
height: 90px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 10px;
top: 10px;
background-color: rgb(255, 255, 255);
}
#core_icon {
height: 24px;
width: 24px;
}
#core_icon1 {
height: 24px;
width: 24px;
}
#google_map_directions {
left: 710px;
top: 350px;
position: absolute;
}
</style>
<google-map id="google_map"></google-map>
<core-card id="core_card" layout vertical>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input placeholder="From" id="core_input" flex></core-input>
</core-field>
<core-field id="core_field1" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon1"></core-icon>
<core-input placeholder="text input" id="core_input1" flex></core-input>
</core-field>
</core-card>
<google-map-directions map="{{ $.google_map.map }}" id="google_map_directions"></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