Skip to content

Instantly share code, notes, and snippets.

@leykov
Last active May 24, 2018 13:36
Show Gist options
  • Save leykov/600421248271f90121ab to your computer and use it in GitHub Desktop.
Save leykov/600421248271f90121ab to your computer and use it in GitHub Desktop.
polymer + google-sheets
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/google-map/google-map.html">
<link rel="import" href="../bower_components/google-sheets/google-sheets.html">
<polymer-element name="map-sheet" noscript>
<template>
<google-sheets key="1s4j6YN_My1-fF2AZ12z3Ym8okUddkivOux0jC3M1Nho" rows="{{rows}}" published">
</google-sheets>
<google-map fittomarkers>
<template repeat="{{row in rows}}">
<google-map-marker
latitude="{{row.gsx$lat.$t}}"
longitude="{{row.gsx$lng.$t }}"></google-map-marker>
</template>
</google-map>
</template>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment