Last active
May 3, 2016 17:03
-
-
Save martgnz/fb402279dd7528ee07a61763771489d8 to your computer and use it in GitHub Desktop.
Basic Spam.js map
This file contains 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
d3.json("map.json", function(error, d) { | |
topojson.presimplify(d) | |
var map = new StaticCanvasMap({ | |
element: "body", | |
data: [ | |
{ | |
features: topojson.feature(d, d.objects["map"]), | |
static: { | |
paintfeature: function(parameters, d) { | |
parameters.context.stroke() | |
} | |
} | |
} | |
] | |
}) | |
map.init() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment