Created
February 27, 2015 13:23
-
-
Save yubrajpokharel/9aeb12943794d496c7f5 to your computer and use it in GitHub Desktop.
designer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#google_map { | |
width: 100%; | |
height: 100%; | |
left: -10px; | |
top: 0px; | |
position: absolute; | |
} | |
</style> | |
<google-map latitude="37.64945068569223" longitude="-121.74788069335938" zoom="8" id="google_map"> | |
<google-map-marker longitude="-122.3892" latitude="37.779" id="google_map_marker" title="Go Giants!" draggable="true"> | |
<paper-icon-button icon="folder" id="paper_icon_button" on-tap="{{ tapped }}"></paper-icon-button> | |
</google-map-marker> | |
</google-map> | |
</template> | |
<script> | |
Polymer({ | |
tapped: function () { | |
window.alert("I've been tapped!"); | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment