Skip to content

Instantly share code, notes, and snippets.

@Jupiterrr
Created July 4, 2014 12:30
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 Jupiterrr/d9e17681b2f858f2bd4d to your computer and use it in GitHub Desktop.
Save Jupiterrr/d9e17681b2f858f2bd4d to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element" attributes="longitude, latitude">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#google_map {
width: 400px;
display: block;
left: 190px;
top: 50px;
position: absolute;
height: 400px;
}
</style>
<google-map latitude="{{ latitude }}" longitude="{{ longitude }}" zoom="{{ zoom }}" id="google_map">
<google-map-marker longitude="{{ longitude }}" latitude="{{ latitude }}" id="google_map_marker" draggable="true"></google-map-marker>
</google-map>
<p>{{ longitude }}, {{ latitude }}</p>
</template>
<script>
Polymer('my-element', {
latitude: 37.77493,
longitude: -122.41942,
zoom: 10
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment