Last active
August 29, 2015 14:06
-
-
Save MrTiggr/ca9abb176055d982254b 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-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu-button/core-menu-button.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../esri-html5/esri-map.html"> | |
<link rel="import" href="../esri-html5/esri-geocoder.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
overflow: hidden; | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#map { | |
height: 100%; | |
width: 100%; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
overflow: hidden; | |
} | |
#core_card { | |
width: 60px; | |
height: 100%; | |
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; | |
position: absolute; | |
z-index: 999; | |
padding-top: 14px; | |
background-color: rgb(0, 64, 128); | |
} | |
paper-icon-button { | |
color: white; | |
} | |
</style> | |
<core-header-panel mode="waterfall" id="core_header_panel"> | |
<core-toolbar id="core_toolbar"> | |
<core-menu-button icon="more-vert" selected="0" valueattr="name" id="core_menu_button"> | |
<core-item label="Playgrounds" icon="settings" id="core_item" horizontal center layout on-tap="{{ deck_change }}" active></core-item> | |
<core-item label="Urban Trees" icon="settings" id="core_item1" horizontal center layout on-tap="{{ deck_change }}"></core-item> | |
<core-item label="Rubbish Collection" icon="settings" id="core_item2" horizontal center layout on-tap="{{ deck_change }}"></core-item> | |
</core-menu-button> | |
<div id="deckType"> | |
<h3 id="h3">{{ deckType }}</h3> | |
</div> | |
<div id="div"> | |
<h3 id="h31">Observation Deck</h3> | |
</div> | |
</core-toolbar> | |
<div id="div1" flex> | |
</div> | |
<esri-map basemap="streets" autoresize latitude="-35.32668907572471" longitude="149.10671164368748" zoom="12" id="map"> | |
<esri-geocoder id="esri_geocoder"></esri-geocoder> | |
<core-card id="core_card" layout vertical center> | |
<paper-icon-button icon="check-circle-outline" istoggle id="inspections" one flex> | |
</paper-icon-button> | |
<paper-icon-button icon="warning" istoggle id="defects" one flex></paper-icon-button> | |
<paper-icon-button icon="today" istoggle id="planning" one flex></paper-icon-button> | |
<paper-icon-button icon="history" istoggle id="history" one flex></paper-icon-button> | |
<paper-icon-button icon="apps" istoggle id="dashboard" twelve flex></paper-icon-button> | |
</core-card> | |
</esri-map> | |
</core-header-panel> | |
</template> | |
<script> | |
Polymer('my-element', { | |
deckType: 'Playgrounds', | |
deck_change: function (evt,dat,src){ | |
//console.log("Deck Change",evt,dat,src); | |
this.deckType=src.label; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment