This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//should be able to define: indicWidth, indicSideWidth | |
function timeLine(container,width,height){ | |
//initialize some variables | |
var indicWidth = 12, indicSideWidth = 4, indicatorGroup, indicatorLeftpart, indicatorRightpart, indicatorLeft, indicatorRight; | |
var axisScale = d3.time.scale(); | |
var timelineSVG = container.append("svg") | |
.attr("width", width) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<style> | |
</style> | |
</head> | |
<body> | |
<div id=content></div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//adding an overlay to an existing leaflet map object | |
function mapOverlay(map_){ | |
this.map=map_; | |
this.overlaySVG = d3.select(this.map.getPanes().overlayPane).append("svg"); | |
this.overlay=this.overlaySVG.append("g").attr("class", "leaflet-zoom-hide") | |
var path_geo = d3.geo.path().projection(project); | |
//necessary for zooming the map...corresponded to: map.on("viewreset", reset); | |
this.resetView=resetView; | |
function resetView(bounds_map_){ | |
var bottomLeft = project(bounds_map_[0]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
d3.simplify = function() { | |
var projection = d3.geo.mercator(); | |
function simplify(feature) { | |
if (feature.type !== "MultiPolygon" && feature.type !== "LineString" && feature.type !== "Polygon" && feature.type !== "MultiLineString") throw new Error("not yet supported"); | |
var heap = minHeap(), | |
maxArea = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(http://fonts.googleapis.com/css?family=Molle:400italic); | |
@import url(http://fonts.googleapis.com/css?family=Courgette); | |
div {color:white; | |
margin-bottom:10px;} | |
span{ | |
color:grey; | |
} | |
#version_info{ | |
background: rgba(255,0,0,0.3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//should be able to define: indicWidth, indicSideWidth | |
function timeLine(container,width,height){ | |
//initialize some variables | |
var indicWidth = 8, indicSideWidth = 3, indicatorGroup, indicatorLeftpart, indicatorRightpart, indicatorLeft, indicatorRight; | |
var axisScale = d3.time.scale(); | |
var timelineSVG = container.append("svg") | |
.attr("width", width) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function testing(test_var){ | |
alert(test_var+", I am a testfunction!") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SLIDER - 1 indicator | |
function slider(container,width,height){ | |
//initialize some variables | |
var indicWidth = 12, clickListenerTest=false, hoverListenerTest=false, clickListener, hoverListener, indicPos = width/2; | |
var indicatorStartPosition = 0; | |
var axisScale = d3.scale.linear(); | |
var sliderSVG = container.append("svg") | |
.attr("width", width) |
OlderNewer