Created
June 12, 2014 19:54
-
-
Save pjamar/61b106c3d90c7a98f049 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="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.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; | |
} | |
#core_scaffold { | |
position: absolute; | |
top: -10px; | |
right: 0px; | |
bottom: 0px; | |
left: -30px; | |
width: 100%; | |
height: 100%; | |
} | |
#core_header_panel { | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#ace_element { | |
width: 400px; | |
height: 300px; | |
left: 580px; | |
top: 460px; | |
} | |
#canvas { | |
-webkit-user-select: none; | |
} | |
#three_js_mesh1 { | |
left: 1150px; | |
top: 860px; | |
} | |
#three_js_material { | |
left: 1150px; | |
top: 850px; | |
} | |
#three_js_geometry { | |
left: 1130px; | |
top: 750px; | |
} | |
#core_scaffold1 { | |
position: absolute; | |
top: 420px; | |
right: 0px; | |
bottom: 0px; | |
left: 1360px; | |
} | |
#google_map { | |
width: 100%; | |
height: 100%; | |
display: block; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
} | |
#core_pages { | |
width: 100%; | |
height: 100%; | |
border: 1px solid silver; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
} | |
#google_map1 { | |
width: 100%; | |
height: 100%; | |
display: block; | |
} | |
</style> | |
<core-scaffold id="core_scaffold"> | |
<div id="div" tool>Arco Iris Family Childcare</div> | |
<core-header-panel mode="scroll" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"> | |
</core-toolbar> | |
<core-menu selected="Location" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme"> | |
<core-item label="About" icon="settings" id="core_item" on-tap="{{ aboutPage }}" horizontal center layout></core-item> | |
<core-item label="Location" icon="marker" id="menu_location" on-tap="{{ locationPage }}" horizontal center layout active></core-item> | |
<core-item label="Environment" icon="marker" id="menu_environment" on-tap="{{ environmentPage }}" horizontal center layout></core-item> | |
</core-menu> | |
</core-header-panel> | |
<core-pages selected="0" selectedindex="0" notap id="core_pages"> | |
<section id="section" active> | |
Hey | |
</section> | |
<section id="section1"> | |
<google-map latitude="37.384767" longitude="-122.07072" zoom="16" disabledefaultui id="google_map"> | |
<google-map-marker longitude="-122.07052" latitude="37.384767" id="google_map_marker" draggable="false" title="Arco Iris Childcare"></google-map-marker> | |
</google-map> | |
</section> | |
</core-pages> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer('my-element', { | |
aboutPage: function () { | |
this.$.core_pages.selected = 0; | |
}, | |
locationPage: function () { | |
this.$.google_map.mapType = 'roadmap'; | |
this.$.google_map.zoom = 14; | |
this.$.google_map.latitude = 37.384767; | |
this.$.google_map.longitude = -122.07052; | |
this.$.core_pages.selected = 1; | |
}, | |
environmentPage: function () { | |
this.$.google_map.mapType = 'satellite'; | |
this.$.google_map.zoom = 19; | |
this.$.google_map.latitude = 37.384767; | |
this.$.google_map.longitude = -122.07052; | |
this.$.core_pages.selected = 1; | |
}, | |
showLocation: function () { | |
this.$.google_map.mapType = 'satellite'; | |
this.$.google_map.zoom = 18; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment