Last active
August 29, 2015 14:16
-
-
Save jparish3/a88e844ac63fe404c703 to your computer and use it in GitHub Desktop.
designer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.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; | |
} | |
#ace_element { | |
width: 400px; | |
height: 300px; | |
left: 1270px; | |
top: 730px; | |
} | |
#core_pages1 { | |
width: 400px; | |
height: 400px; | |
border: 1px solid silver; | |
left: 1220px; | |
top: 870px; | |
} | |
#collapse1 { | |
overflow: hidden; | |
} | |
#paper_tab5 { | |
width: 120px; | |
height: 40px; | |
left: 1040px; | |
top: 1080px; | |
} | |
#paper_toggle_button { | |
left: 1140px; | |
top: 1140px; | |
} | |
#paper_icon_button { | |
left: 1380px; | |
top: 880px; | |
} | |
#paper_button { | |
left: 1430px; | |
top: 760px; | |
} | |
#input { | |
padding: 15px; | |
} | |
#core_scroll_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_toolbar { | |
color: rgb(241, 241, 241); | |
fill: rgb(241, 241, 241); | |
background-color: rgb(66, 133, 244); | |
} | |
#section { | |
height: 5000px; | |
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230)); | |
} | |
#core_drawer_panel { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#section1 { | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
background-color: rgb(250, 250, 250); | |
} | |
#section2 { | |
height: 100%; | |
box-sizing: border-box; | |
background-color: rgb(221, 221, 221); | |
} | |
#google_map { | |
width: 100%; | |
height: 100%; | |
display: block; | |
left: 4px; | |
top: 200px; | |
position: absolute; | |
} | |
</style> | |
<core-scroll-header-panel headermargin="128" condenses headerheight="192" id="core_scroll_header_panel"> | |
<core-toolbar id="core_toolbar" class="tall"> | |
<core-icon-button icon="arrow-back" id="core_icon_button"></core-icon-button> | |
<div id="div" flex></div> | |
<core-icon-button icon="search" id="core_icon_button1"></core-icon-button> | |
<core-icon-button icon="more-vert" id="core_icon_button2"></core-icon-button> | |
<div id="div1" class="bottom indent">Title</div> | |
</core-toolbar> | |
<section id="section" content> | |
<core-drawer-panel transition id="core_drawer_panel" touch-action> | |
<section id="section1" drawer></section> | |
<section id="section2" main> | |
<google-map latitude="37.843283666958186" longitude="-122.13102888671875" id="google_map"></google-map> | |
</section> | |
</core-drawer-panel> | |
</section> | |
</core-scroll-header-panel> | |
</template> | |
<script> | |
Polymer({ | |
page: 'map', | |
mapApiLoaded: function () { | |
this.autocomplete= new google.maps.places.Autocomplete(this.$.autocomplete); | |
google.maps.event.addListener(this.autocomplete, 'place_changed', function() { | |
var place = this.autocomplete.getPlace(); | |
this.location=place.formatted_address | |
}.bind(this)); | |
}, | |
libraries: 'places', | |
version: '3.exp' | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment