Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. <link rel="import" href="../core-scaffold/core-scaffold.html">
  2. <link rel="import" href="../core-header-panel/core-header-panel.html">
  3. <link rel="import" href="../core-menu/core-menu.html">
  4. <link rel="import" href="../core-item/core-item.html">
  5. <link rel="import" href="../core-icon-button/core-icon-button.html">
  6. <link rel="import" href="../core-toolbar/core-toolbar.html">
  7. <link rel="import" href="../core-menu/core-submenu.html">
  8. <link rel="import" href="../google-map/google-map.html">
  9.  
  10. <polymer-element name="my-element">
  11.  
  12. <template>
  13. <style>
  14. :host {
  15. position: absolute;
  16. width: 100%;
  17. height: 100%;
  18. box-sizing: border-box;
  19. }
  20. #core_scaffold {
  21. position: absolute;
  22. top: 0px;
  23. right: 0px;
  24. bottom: 0px;
  25. left: 0px;
  26. width: 100%;
  27. height: 100%;
  28. }
  29. #core_header_panel {
  30. background-color: rgb(255, 255, 255);
  31. }
  32. #core_toolbar {
  33. background-color: rgb(79, 125, 201);
  34. color: rgb(255, 255, 255);
  35. }
  36. #core_menu {
  37. font-size: 16px;
  38. }
  39. #google_map {
  40. width: 100%;
  41. height: 100%;
  42. display: block;
  43. left: 0px;
  44. top: 0px;
  45. position: absolute;
  46. }
  47. #google_map1 {
  48. width: 100%;
  49. height: 100%;
  50. display: block;
  51. left: 0px;
  52. top: 0px;
  53. position: absolute;
  54. }
  55. </style>
  56. <core-scaffold id="core_scaffold">
  57. <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
  58. <core-toolbar id="core_toolbar"></core-toolbar>
  59. <core-menu selected="Sat Map" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
  60. <core-item id="core_item" icon="settings" on-tab="{{ showRoad }}" label="Road Map" horizontal center layout></core-item>
  61. <core-item id="core_item1" icon="settings" on-tab="{{ showSat }}" label="Sat Map" horizontal center layout active></core-item>
  62. </core-menu>
  63. </core-header-panel>
  64. <div id="div" tool>Title</div>
  65. <google-map latitude="39.357537616722" longitude="-123.96574568359375" zoom="7" id="google_map"></google-map>
  66. </core-scaffold>
  67. </template>
  68.  
  69. <script>
  70.  
  71. Polymer({
  72. showRoad: function (){
  73. this.$.google_map.mapType ="roadmap";
  74. },
  75. showSat: function (){
  76. this.$.google_map.mapType ="satellitemap";
  77. }
  78. });
  79.  
  80. </script>
  81.  
  82. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement