snapa 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snapa.rb +1 -1
- data/lib/snapa/version.rb +1 -1
- data/public/map.html +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77360d09b9abb1525c943151e0bfa58f3920311e
|
4
|
+
data.tar.gz: 260ce2e0c9ef71ec8456344b95ed8243ef2e760c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12be7dc97c63d0d7ab31b10c36e254f8db982cbdf9ed1f2b636d8c3fccfb330f0d772c9f5209617c704178c5c09330695b3992849afe01d801fa3542615d1910
|
7
|
+
data.tar.gz: 99c7b6b2959403c6400d7ba5bf3a2f5ea98a6db48d95fbbdee50042ea6a19ca61e1fd95dfc6750133d631c96cbf868c36357bc9aa7ee8b349459f1e1956b1192
|
data/lib/snapa.rb
CHANGED
data/lib/snapa/version.rb
CHANGED
data/public/map.html
CHANGED
@@ -32,6 +32,7 @@ function getParameterByName(name) {
|
|
32
32
|
var countries = (getParameterByName('c') || 'TZ').toUpperCase().split(','),
|
33
33
|
width = getParameterByName('w') || 380,
|
34
34
|
height = getParameterByName('h') || 230,
|
35
|
+
rotation = getParameterByName('r') || 0,
|
35
36
|
percent = getParameterByName('p') || .95,
|
36
37
|
maxScale = getParameterByName('m') || 300;
|
37
38
|
|
@@ -41,6 +42,7 @@ var svg = d3.select("body").append("svg")
|
|
41
42
|
|
42
43
|
var projection = d3.geo.mercator()
|
43
44
|
.scale(1)
|
45
|
+
.rotate(rotation)
|
44
46
|
.translate([0, 0]);
|
45
47
|
|
46
48
|
var path = d3.geo.path()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snapa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Tillman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|