Skip to content

Instantly share code, notes, and snippets.

@acrymble
Created October 13, 2012 10:17
Show Gist options
  • Select an option

  • Save acrymble/3884055 to your computer and use it in GitHub Desktop.

Select an option

Save acrymble/3884055 to your computer and use it in GitHub Desktop.
Synchronized Map and Timeline HTML code 2
<script type="text/javascript"> var tm; $(function() { tm = TimeMap.init({ mapId: "map", // Id of map div element (required) timelineId: "timeline", // Id of timeline div element (required) options: { eventIconPath: "../images/" }, datasets: [ { title: "London Publishers", theme: "blue", type: "kml", // Data to be loaded in KML - must be a local URL options: { url: "mycollection.kml" // KML file to load } } ], bandInfo: [ { width: "85%", intervalUnit: Timeline.DateTime.YEAR, intervalPixels: 100 }, { width: "15%", intervalUnit: Timeline.DateTime.DECADE, intervalPixels: 150, showEventText: false, trackHeight: 0.2, trackGap: 0.2 } ] }); }); </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment