Skip to content

Instantly share code, notes, and snippets.

@SPorwal
Last active August 29, 2015 14:19
Show Gist options
  • Save SPorwal/9282e1464060a966f13a to your computer and use it in GitHub Desktop.
Save SPorwal/9282e1464060a966f13a to your computer and use it in GitHub Desktop.

Revisions

  1. SPorwal revised this gist Apr 15, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -71,7 +71,7 @@
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" value="{{ $.speech_mic.transcript }}" flex></core-input>
    <speech-mic completetranscript="hello hello eiffel tower" id="speech_mic"></speech-mic>
    <speech-mic id="speech_mic"></speech-mic>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  2. SPorwal revised this gist Apr 15, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -71,7 +71,7 @@
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" value="{{ $.speech_mic.transcript }}" flex></core-input>
    <speech-mic transcript=" eiffel tower" completetranscript="hello hello eiffel tower" id="speech_mic"></speech-mic>
    <speech-mic completetranscript="hello hello eiffel tower" id="speech_mic"></speech-mic>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  3. SPorwal revised this gist Apr 15, 2015. No changes.
  4. SPorwal revised this gist Apr 15, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../core-input/core-input.html">
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../speech-mic/speech-mic.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">
    <link rel="import" href="../google-map/google-map-search.html">
    @@ -69,7 +70,8 @@
    <core-toolbar id="core_toolbar">
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex>type something</core-input>
    <core-input id="core_input" value="{{ $.speech_mic.transcript }}" flex></core-input>
    <speech-mic transcript=" eiffel tower" completetranscript="hello hello eiffel tower" id="speech_mic"></speech-mic>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  5. SPorwal revised this gist Apr 15, 2015. No changes.
  6. SPorwal revised this gist Apr 15, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -72,13 +72,13 @@
    <core-input id="core_input" flex>type something</core-input>
    </core-field>
    </core-toolbar>
    <core-menu selected="Satellite" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" on-tap="{{ showRoad }}" label="Roadmap" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" on-tap="{{ showSat }}" label="Satellite" horizontal center layout active></core-item>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" on-tap="{{ showRoad }}" label="Roadmap" horizontal center layout active></core-item>
    <core-item id="core_item1" icon="settings" on-tap="{{ showSat }}" label="Satellite" horizontal center layout></core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="-122.29651045410156" id="google_map"></google-map>
    <google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" zoom="18" id="google_map"></google-map>
    <google-map-search map="{{ $.google_map.map }}" query="{{ $.core_input.value }}" id="google_map_search"></google-map-search>
    </core-scaffold>
    </template>
  7. SPorwal revised this gist Apr 15, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -78,8 +78,8 @@
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="37.69130073180329" longitude="-122.29651045410156" id="google_map"></google-map>
    <google-map-search map="{{ $.google_map.map }}" id="google_map_search"></google-map-search>
    <google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="-122.29651045410156" id="google_map"></google-map>
    <google-map-search map="{{ $.google_map.map }}" query="{{ $.core_input.value }}" id="google_map_search"></google-map-search>
    </core-scaffold>
    </template>

  8. SPorwal revised this gist Apr 15, 2015. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">
    <link rel="import" href="../google-map/google-map-search.html">

    <polymer-element name="my-element">

    @@ -53,6 +54,15 @@
    width: 200px;
    background-color: rgb(253, 255, 255);
    }
    #google_map_search {
    left: 600px;
    top: 450px;
    position: absolute;
    }
    #google_map_search1 {
    left: 900px;
    top: 460px;
    }
    </style>
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    @@ -69,6 +79,7 @@
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="37.69130073180329" longitude="-122.29651045410156" id="google_map"></google-map>
    <google-map-search map="{{ $.google_map.map }}" id="google_map_search"></google-map-search>
    </core-scaffold>
    </template>

  9. SPorwal revised this gist Apr 15, 2015. 1 changed file with 17 additions and 1 deletion.
    18 changes: 17 additions & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,10 @@
    <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-field/core-field.html">
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../core-input/core-input.html">
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">

    @@ -42,10 +46,22 @@
    top: 0px;
    position: absolute;
    }
    #core_field {
    left: 28px;
    top: 10px;
    position: absolute;
    width: 200px;
    background-color: rgb(253, 255, 255);
    }
    </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-toolbar id="core_toolbar">
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex>type something</core-input>
    </core-field>
    </core-toolbar>
    <core-menu selected="Satellite" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" on-tap="{{ showRoad }}" label="Roadmap" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" on-tap="{{ showSat }}" label="Satellite" horizontal center layout active></core-item>
  10. SPorwal revised this gist Apr 15, 2015. No changes.
  11. SPorwal revised this gist Apr 15, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -60,10 +60,10 @@

    Polymer({
    showRoad: function (){
    this.$.google_map.mapType = roadmap;
    this.$.google_map.mapType = 'roadmap';
    },
    showSat: function (){
    this.$.google_map.mapType = satellite;
    this.$.google_map.mapType = 'satellite';
    }
    });

  12. SPorwal revised this gist Apr 15, 2015. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -46,9 +46,9 @@
    <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="Item2" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" on-tap="{{showRoad}}" label="Roadmap" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" on-tap="{{showSat}}" label="Satellite" horizontal center layout active></core-item>
    <core-menu selected="Satellite" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" on-tap="{{ showRoad }}" label="Roadmap" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" on-tap="{{ showSat }}" label="Satellite" horizontal center layout active></core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    @@ -59,10 +59,10 @@
    <script>

    Polymer({
    showRoad : function(){
    showRoad: function (){
    this.$.google_map.mapType = roadmap;
    },
    showSat: function(){
    showSat: function (){
    this.$.google_map.mapType = satellite;
    }
    });
  13. SPorwal revised this gist Apr 15, 2015. 1 changed file with 10 additions and 5 deletions.
    15 changes: 10 additions & 5 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -46,20 +46,25 @@
    <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 valueattr="label" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" label="Item1" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
    <core-menu selected="Item2" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" on-tap="{{showRoad}}" label="Roadmap" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" on-tap="{{showSat}}" label="Satellite" horizontal center layout active></core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="37.69130073180329" longitude="-122.28346418945313" id="google_map"></google-map>
    <google-map latitude="37.69130073180329" longitude="-122.29651045410156" id="google_map"></google-map>
    </core-scaffold>
    </template>

    <script>

    Polymer({

    showRoad : function(){
    this.$.google_map.mapType = roadmap;
    },
    showSat: function(){
    this.$.google_map.mapType = satellite;
    }
    });

    </script>
  14. SPorwal revised this gist Apr 15, 2015. No changes.
  15. SPorwal revised this gist Apr 15, 2015. No changes.
  16. SPorwal created this gist Apr 15, 2015.
    67 changes: 67 additions & 0 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,67 @@
    <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">

    <polymer-element name="my-element">

    <template>
    <style>
    :host {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    }
    #core_scaffold {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: -10px;
    }
    #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;
    }
    </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 valueattr="label" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" label="Item1" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="37.69130073180329" longitude="-122.28346418945313" id="google_map"></google-map>
    </core-scaffold>
    </template>

    <script>

    Polymer({

    });

    </script>

    </polymer-element>