Skip to content

Instantly share code, notes, and snippets.

@designer-polymer
Created June 1, 2014 22:01
Show Gist options
  • Select an option

  • Save designer-polymer/8ea4fb1b7dff778d7642 to your computer and use it in GitHub Desktop.

Select an option

Save designer-polymer/8ea4fb1b7dff778d7642 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../polymer-ui-card/polymer-ui-card.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_input {
position: absolute;
left: 270px;
top: 150px;
height: 20px;
width: 350px;
padding: 20px;
margin: 0px;
border: 1px solid gray;
}
#google_map {
width: 400px;
height: 400px;
display: block;
position: absolute;
left: 190px;
top: 300px;
}
#google_map_search {
position: absolute;
left: 210px;
top: 160px;
height: 30px;
}
#polymer_ui_card {
width: 320px;
height: 300px;
display: block;
position: absolute;
left: 760px;
top: 140px;
}
</style>
<core-input placeholder="Type something..." inputvalue="seattle" value="seattle" id="core_input"></core-input>
<google-map-search query="{{ $.core_input.value }}" map="{{ $.google_map }}" id="google_map_search">Search:</google-map-search>
<polymer-ui-card id="polymer_ui_card" touch-action="pan-y"></polymer-ui-card>
<google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" zoom="14" id="google_map"></google-map>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment