Created
July 4, 2014 03:37
-
-
Save novascreen/8c2a777eb5477288f31c to your computer and use it in GitHub Desktop.
designer
This file contains 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-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<link rel="import" href="../google-map/google-map-search.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: static; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_card { | |
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; | |
padding: 20px; | |
background-color: rgb(255, 255, 255); | |
} | |
#paper_button { | |
left: 1640px; | |
top: 650px; | |
} | |
#paper_input { | |
margin: 0px 5px 0px 0px; | |
} | |
#google_map { | |
width: 100%; | |
height: 100%; | |
display: block; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_field { | |
left: 910px; | |
top: 600px; | |
position: absolute; | |
} | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_toolbar1 { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#section { | |
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230)); | |
} | |
#core_scaffold { | |
right: 0px; | |
bottom: 0px; | |
} | |
#core_header_panel1 { | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
</style> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel1" navigation flex> | |
<core-toolbar id="core_toolbar"></core-toolbar> | |
<div id="div1" horizontal layout> | |
<paper-input label="Search for address..." value="{{ $.speech_mic.transcript }}" id="address_input"></paper-input> | |
<speech-mic id="speech_mic"></speech-mic> | |
<google-map-search map="{{ $.google_map.map }}" query="{{ $.address_input.value }}" id="google_map_search"></google-map-search> | |
</div> | |
<div id="div" horizontal layout> | |
<paper-input label="Latitude" floatinglabel inputvalue="{{ center.latitude }}" value="{{ center.latitude }}" id="paper_input"></paper-input> | |
<paper-input label="Longitude" floatinglabel inputvalue="{{ center.longitude }}" value="{{ center.longitude }}" id="paper_input1"></paper-input> | |
</div> | |
<h2>Markers</h2> | |
<div> | |
<h3 id="h3"> | |
<core-icon-button icon="remove" id="core_icon_button" theme="core-light-theme" on-tap="{{ removeMarker }}" title="Remove"></core-icon-button> | |
</h3> | |
<div id="div" horizontal layout> | |
<paper-input label="Latitude" floatinglabel inputvalue="1" value="1" id="paper_input" readonly></paper-input> | |
<paper-input label="Longitude" floatinglabel inputvalue="5" value="5" id="paper_input1" readonly></paper-input> | |
</div> | |
</div> | |
<div> | |
<h3> | |
<core-icon-button icon="remove" id="core_icon_button" theme="core-light-theme" on-tap="{{ removeMarker }}" title="Remove"></core-icon-button> | |
</h3> | |
<div id="div" horizontal layout> | |
<paper-input label="Latitude" floatinglabel inputvalue="1" value="1" id="paper_input" readonly></paper-input> | |
<paper-input label="Longitude" floatinglabel inputvalue="5" value="5" id="paper_input1" readonly></paper-input> | |
</div> | |
</div> | |
<div> | |
<h3> | |
<core-icon-button icon="remove" id="core_icon_button" theme="core-light-theme" on-tap="{{ removeMarker }}" title="Remove"></core-icon-button> | |
</h3> | |
<div id="div" horizontal layout> | |
<paper-input label="Latitude" floatinglabel inputvalue="1" value="1" id="paper_input" readonly></paper-input> | |
<paper-input label="Longitude" floatinglabel inputvalue="5" value="5" id="paper_input1" readonly></paper-input> | |
</div> | |
</div> | |
<core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme"> | |
<core-item label="Item1" icon="settings" id="core_item" horizontal center layout active></core-item> | |
<core-item label="Item2" icon="settings" id="core_item1" horizontal center layout></core-item> | |
</core-menu> | |
</core-header-panel> | |
<div id="div2" tool>Title</div> | |
<google-map latitude="{{ center.latitude }}" longitude="{{ center.longitude }}" id="google_map"></google-map> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer('my-element', { | |
center: { | |
"latitude": 1, | |
"longitude": 1 | |
}, | |
observe: { | |
"$.google_map_search.result": "updateCenter" | |
}, | |
updateCenter: function (oldValue, newValue) { | |
this.center = newValue | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment