public/map.html in snapa-0.0.1 vs public/map.html in snapa-0.0.2
- old
+ new
@@ -30,18 +30,20 @@
}
var countries = (getParameterByName('c') || 'TZ').toUpperCase().split(','),
width = getParameterByName('w') || 380,
height = getParameterByName('h') || 230,
+ rotation = getParameterByName('r') || 0,
percent = getParameterByName('p') || .95,
maxScale = getParameterByName('m') || 300;
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var projection = d3.geo.mercator()
.scale(1)
+ .rotate(rotation)
.translate([0, 0]);
var path = d3.geo.path()
.projection(projection);