Skip to content

Instantly share code, notes, and snippets.

@ankushnarula
Last active February 23, 2016 01:36
Show Gist options
  • Save ankushnarula/39ede4a3105e356f1407 to your computer and use it in GitHub Desktop.
Save ankushnarula/39ede4a3105e356f1407 to your computer and use it in GitHub Desktop.
designer
<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="../paper-input/paper-input.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#paper_input {
position: relative;
width: 90%;
padding: 5px;
color: rgb(0, 0, 0);
height: 65%;
background-color: rgb(255, 255, 255);
}
#google_map {
width: 100%;
height: 100%;
display: block;
position: absolute;
}
#google_map_search {
left: 160px;
top: 230px;
position: absolute;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar">
<paper-input label="Type something..." committedvalue="{{ $.google_map_search.query }}" id="paper_input"></paper-input>
</core-toolbar>
<google-map-search map="{{ $.google_map }}" query="{{ $.paper_input.commitedValue }}" id="google_map_search"></google-map-search>
</core-header-panel>
<div id="div" tool>{{ $.google_map_search.result[0].name }}</div>
<google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" zoom="12" showcentermarker id="google_map"></google-map>
</core-scaffold>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment