Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 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-field/core-field.html">
  8. <link rel="import" href="../core-icon/core-icon.html">
  9. <link rel="import" href="../core-input/core-input.html">
  10. <link rel="import" href="../core-icons/core-icons.html">
  11. <link rel="import" href="../core-menu/core-submenu.html">
  12. <link rel="import" href="../google-map/google-map.html">
  13. <link rel="import" href="../google-map/google-map-search.html">
  14.  
  15. <polymer-element name="my-element">
  16.  
  17. <template>
  18. <style>
  19. :host {
  20. position: absolute;
  21. width: 100%;
  22. height: 100%;
  23. box-sizing: border-box;
  24. }
  25. #core_scaffold {
  26. position: absolute;
  27. top: 0px;
  28. right: 0px;
  29. bottom: 0px;
  30. left: 0px;
  31. width: 100%;
  32. height: 100%;
  33. }
  34. #core_header_panel {
  35. background-color: rgb(255, 255, 255);
  36. }
  37. #core_toolbar {
  38. color: rgb(255, 255, 255);
  39. background-color: rgb(79, 125, 201);
  40. }
  41. #core_menu {
  42. font-size: 16px;
  43. }
  44. #google_map {
  45. width: 100%;
  46. height: 100%;
  47. display: block;
  48. left: 0px;
  49. top: 0px;
  50. position: absolute;
  51. }
  52. #core_field {
  53. left: -2px;
  54. top: 10px;
  55. position: absolute;
  56. background-color: rgb(255, 255, 255);
  57. }
  58. #input {
  59. padding: 15px;
  60. left: 1050px;
  61. top: 410px;
  62. }
  63. #input1 {
  64. padding: 15px;
  65. width: 100%;
  66. background-color: rgb(255, 255, 255);
  67. }
  68. #google_map_search {
  69. left: 930px;
  70. top: 530px;
  71. position: absolute;
  72. }
  73. </style>
  74. <core-scaffold id="core_scaffold">
  75. <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
  76. <core-toolbar id="core_toolbar">
  77. <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
  78. <core-icon icon="search" id="core_icon"></core-icon>
  79. <core-input id="core_input" flex></core-input>
  80. <input id="input1" placeholder="type something..." is="core-input">
  81. </core-field>
  82. </core-toolbar>
  83. <core-menu selected="Satelital" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
  84. <core-item id="core_item" icon="settings" label="Normal" on-tap="{{ showroad }}" horizontal center layout></core-item>
  85. <core-item id="core_item1" icon="settings" label="Satelital" on-tap="{{ showsat }}" horizontal center layout active></core-item>
  86. </core-menu>
  87. </core-header-panel>
  88. <div id="div" tool>Buscador de Lugares</div>
  89. <google-map latitude="{{ $.google_map_search.result.latitud }}" longitude="{{ $.google_map_search.result.longitude }}" id="google_map"></google-map>
  90. <google-map-search map="{{ $.google_map.map }}" query="{{ $.core_input.value }}" id="google_map_search"></google-map-search>
  91. </core-scaffold>
  92. </template>
  93.  
  94. <script>
  95.  
  96. Polymer({
  97. showroad: function () {
  98. this.$.google_map.mapType = 'roadmap';
  99. },
  100. showsat: function (){
  101. this.$.google_map.mapType = 'satellite';
  102. }
  103. });
  104.  
  105. </script>
  106.  
  107. </polymer-element><input id="input" placeholder="type something..." is="core-input" class="drag-element">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement