Skip to content

Instantly share code, notes, and snippets.

@paralin
Created August 20, 2014 22:34
Show Gist options
  • Save paralin/a1cc1351d4401a9fedd4 to your computer and use it in GitHub Desktop.
Save paralin/a1cc1351d4401a9fedd4 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#google_map {
width: 100%;
height: 95%;
display: block;
left: 0px;
top: 5%;
position: absolute;
}
#google_map_search {
left: 200px;
top: 0px;
position: absolute;
}
#google_map_directions {
left: 220px;
top: 10px;
position: absolute;
}
#core_input {
padding: 15px;
left: 760px;
top: 700px;
position: absolute;
height: 20px;
width: 100%;
}
#paper_input {
left: 0px;
top: 0px;
position: absolute;
width: 100%;
}
</style>
<google-map id="google_map" map="{{map}}" latitude="37.779" longitude="-122.3892"></google-map>
<google-map-search id="google_map_search" map="{{ map }}" query="{{ search_query }}" result="{{result}}"></google-map-search>
<paper-input inputvalue="{{ search_query }}" value="{{ search_query }}" id="paper_input" label="Type something..."></paper-input>
</template>
<script>
Polymer('my-element', {
core_input: '',
map: null,
result: {
"latitude": 37.772848,
"longitude": -122.41562699999997,
"show": true
},
search_query: ''
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment