Skip to content

Instantly share code, notes, and snippets.

@jhliberty
Last active August 29, 2015 14:13
Show Gist options
  • Save jhliberty/8bdf4a4e4b04db031753 to your computer and use it in GitHub Desktop.
Save jhliberty/8bdf4a4e4b04db031753 to your computer and use it in GitHub Desktop.
designer
<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="../google-map/google-map.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#google_map_search {
left: 600px;
top: 250px;
position: absolute;
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
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;
}
#google_map {
width: 100%;
height: 100%;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
#core_icon {
height: 128px;
width: 128px;
left: -30px;
top: -40px;
}
#paper_fab {
left: 1030px;
top: 50px;
position: absolute;
}
#input {
padding: 15px;
background-color: rgb(255, 255, 255);
}
#core_item1 {
opacity: 1;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar">
</core-toolbar>
<core-menu selected="Roadmap" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
<core-item id="core_item" on-tap="function () {
this.$.google_maps.mapType = 'roadmap';
}" icon="settings" label="Satellite" horizontal center layout></core-item>
<core-item id="core_item1" on-tap="function () {
this.$.google_maps.mapType = 'satellite';
}" icon="settings" label="Roadmap" center active horizontal layout></core-item>
</core-menu>
</core-header-panel>
<div id="div" tool>Title</div>
<google-map latitude="37.557515272469544" longitude="-121.43202375976563" id="google_map"></google-map>
</core-scaffold>
<paper-fab icon="av:play-arrow" id="paper_fab"></paper-fab>
</template>
<script>
Polymer({
showRoad: function () {
this.$.google_maps.mapType = 'roadmap';
},
showSat: function () {
this.$.google_maps.mapType = 'satellite';
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment