Skip to content

Instantly share code, notes, and snippets.

@yubrajpokharel
Created February 27, 2015 13:23
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 yubrajpokharel/9aeb12943794d496c7f5 to your computer and use it in GitHub Desktop.
Save yubrajpokharel/9aeb12943794d496c7f5 to your computer and use it in GitHub Desktop.
designer
<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