Skip to content

Instantly share code, notes, and snippets.

@ahashem
Last active August 29, 2015 14:13
Show Gist options
  • Save ahashem/9a2bcb2f1c21686bfd73 to your computer and use it in GitHub Desktop.
Save ahashem/9a2bcb2f1c21686bfd73 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../google-map/google-map-directions.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.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: 270px;
top: 110px;
position: absolute;
}
#google_map_directions {
left: 760px;
top: 190px;
position: absolute;
}
#google_map_search {
left: 430px;
top: 40px;
position: absolute;
}
</style>
<google-map-directions travelmode="WALKING" id="google_map_directions"></google-map-directions>
<google-map-search query="Cairo, Egypt" id="google_map_search"></google-map-search>
<google-map latitude="37.601049156565836" longitude="-122.5128037890625" id="google_map"></google-map>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment