Skip to content

Instantly share code, notes, and snippets.

@udarapathmin
Created October 30, 2014 04:21
Show Gist options
  • Save udarapathmin/2f1c035e160e3b93efd1 to your computer and use it in GitHub Desktop.
Save udarapathmin/2f1c035e160e3b93efd1 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="38.03336359007581" longitude="-122.24775862304688" 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