RunKit + npm: topojson

node v5.12.0
version: master
endpointsharetweet
var topojson = require("topojson") var worldJson = {"type":"Topology","transform":{"scale":[0.03600360036003601,0.017366249624962495],"translate":[-180,-90]},"objects":{"countries":{"type":"GeometryCollection","geometries":[{"type":"Polygon","arcs":[[0]],"id":"Afghanistan" ,"properties":{"rate":3.96}}]}},"arcs":[[[7080,6666],[-5,5],[-10,-13]]]} console.log(topojson.feature(worldJson, worldJson.objects.countries).features)
Created from: https://npm.runkit.com/topojson
Loading…

no comments

    sign in to comment