Skip to content

Instantly share code, notes, and snippets.

@ahomu
Created June 25, 2014 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahomu/f5c37b6cfc13c283bc6a to your computer and use it in GitHub Desktop.
Save ahomu/f5c37b6cfc13c283bc6a to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#google_map {
width: 400px;
height: 400px;
display: block;
left: 210px;
top: 130px;
position: absolute;
}
#google_map_search {
left: 290px;
top: 100px;
position: absolute;
}
#paper_slider {
left: 190px;
top: 60px;
position: absolute;
}
#paper_slider1 {
left: 380px;
top: 60px;
position: absolute;
}
#paper_slider2 {
left: 580px;
top: 60px;
position: absolute;
}
</style>
<google-map-search id="google_map_search"></google-map-search>
<google-map latitude="-85" longitude="31" zoom="3" id="google_map"></google-map>
<paper-slider immediatevalue="31" value="{{ $.google_map.longitude }}" min="-180" max="180" id="paper_slider1"></paper-slider>
<paper-slider immediatevalue="3" value="{{ $.google_map.zoom }}" max="30" id="paper_slider2"></paper-slider>
<paper-slider immediatevalue="-85" value="{{ $.google_map.latitude }}" min="-85" max="85" id="paper_slider"></paper-slider>
</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