Skip to content

Instantly share code, notes, and snippets.

@anilnairxyz
Last active May 9, 2020 14:48
Show Gist options
  • Save anilnairxyz/808316eb7c25c2900c9ff49cc09e32c4 to your computer and use it in GitHub Desktop.
Save anilnairxyz/808316eb7c25c2900c9ff49cc09e32c4 to your computer and use it in GitHub Desktop.
Map of Occupied JandK

This map shows the regions of Jammu and Kashmir that are currently occupied by different countries.

Copyright © 2017-20, Sandhya Pillai - MIT License

height:560
license:mit

This map shows the regions of Jammu and Kashmir that are currently occupied by different countries.

This map has been generated using the disputed areas of Jammu and Kashmir from Natural Earth.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
svg {background-color: #40444d;}
</style>
</head>
<body>
<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
<script>
var width = 640;
var height = 560;
var vis = d3.select("body").append("svg")
.attr("width", width).attr("height", height)
d3.json("ne_10m_admin_0_Kashmir_Occupied.json", function(json) {
var subunits = topojson.feature(json, json.objects.ne_10m_admin_0_Kashmir_Occupied);
scale = 4000;
offset = [300, 280];
center = [76, 35];
console.log(scale)
console.log(offset)
console.log(center)
// new projection
projection = d3.geo.mercator().center(center)
.scale(scale).translate(offset);
// create the path
var path = d3.geo.path().projection(projection);
// add a rectangle to see the bound of the svg
vis.append("rect").attr('width', width).attr('height', height)
.style('stroke', 'white').style('fill', 'none');
vis.selectAll("path").data(subunits.features).enter().append("path")
.attr("d", path)
.attr("class", function(d) { return d.id; })
.style("fill", "#fc9272")
.style("stroke-width", "1.5")
.style("stroke", "white")
});
</script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
{"type":"Topology","objects":{"ne_10m_admin_0_Kashmir_Occupied":{"type":"GeometryCollection","geometries":[{"type":"Polygon","id":"Jammu and Kashmir","arcs":[[0,1,2]]},{"type":"Polygon","id":"Jammu and Kashmir","arcs":[[3]]},{"type":"Polygon","id":"Jammu and Kashmir","arcs":[[-2,4,5,6,7]]},{"type":"Polygon","id":"Jammu and Kashmir","arcs":[[8,-7]]},{"type":"Polygon","id":"Jammu and Kashmir","arcs":[[9,10,-5,-1]]}]}},"arcs":[[[6372,6272],[-9,3],[-46,-3],[-81,-19],[-37,7],[-40,33],[-59,75],[-31,24],[-39,6],[-93,-18],[-46,6],[-46,29],[-17,24],[-27,54],[-16,22],[-25,12],[-27,-1],[-52,-14],[-52,2],[-27,8],[-23,15],[-21,27],[-30,66],[-17,30],[-24,15],[-53,-5],[-7,1]],[[5427,6671],[-18,2],[-23,19],[-15,27],[-31,65],[-41,47],[-92,52],[-43,36],[-25,78],[18,192],[-12,77],[-24,11],[-47,-73],[-30,-15],[-29,-1],[-14,-4],[-14,-6],[-12,-15],[-15,-41],[-9,-14],[-25,-7],[-22,7],[-23,0],[-47,-51],[-19,0],[-21,11],[-25,9],[-30,-6],[-60,-25],[-30,3],[-36,49],[-13,83],[-5,98],[-12,91],[-31,86],[-37,31],[-98,10],[-40,27],[-39,58],[-28,75],[-7,80],[9,39],[16,24],[64,61],[9,12],[6,19],[1,26],[-10,42],[1,25],[17,31],[23,16],[17,20],[-4,42],[-13,31],[-32,60],[-9,36],[-1,94],[24,188],[-8,57]],[[4413,8560],[214,-50],[115,-247],[101,24],[89,-48],[51,-166],[52,-46],[126,-70],[128,0],[63,-72],[51,-118],[26,-166],[0,-142],[0,-164],[77,-120],[127,-46],[89,-48],[76,-94],[27,-94],[51,-24],[101,-48],[127,24],[51,0],[92,-188],[61,28],[50,-170],[13,-225],[1,-18]],[[6730,6315],[37,-9],[39,-18],[38,-5],[32,29],[22,67],[11,57],[17,36],[38,3],[113,-54],[36,-5],[17,15],[18,91],[17,54],[25,42],[30,29],[56,27],[15,22],[25,62],[19,28],[22,15],[47,19],[47,38],[43,48],[44,36],[94,17],[47,31],[136,141],[16,28],[33,101],[15,28],[41,29],[48,4],[48,-13],[86,-48],[40,-10],[40,9],[149,86],[160,24],[136,85],[43,6],[51,-11],[46,-32],[30,-52],[6,-74],[-5,-71],[12,-54],[54,-21],[59,34],[29,8],[28,-14],[7,-17],[1,-22],[4,-20],[12,-12],[41,-10],[11,-9],[17,-45],[-8,-32],[-18,-30],[-11,-39],[4,-40],[32,-74],[33,-131],[37,-44],[102,-22],[25,-20],[9,-37],[5,-44],[11,-37],[25,-18],[25,14],[21,33],[15,40],[36,36],[38,-71],[31,-108],[16,-78],[7,-72],[14,-77],[23,-64],[37,-32],[37,13],[39,46],[34,61],[22,58],[30,146],[24,40],[46,-17],[17,-25],[24,-63],[5,-9],[10,-14],[21,-4],[19,14],[18,17],[2,2],[20,10],[36,-35],[10,-65],[3,-21],[-6,-97],[-21,-69],[-87,-119],[-29,-77],[8,-101],[15,-100],[-9,-79],[-28,-69],[-41,-67],[-37,-79],[-12,-74],[6,-408],[-11,-68],[-19,-52],[-72,-129],[-16,-41],[-25,-92],[-21,-152],[-18,-37],[-50,-24],[-74,22],[-39,12],[-52,-9],[-18,-32],[-10,-50],[-7,-55],[-11,-45],[-22,-37],[-24,-15],[-55,-17],[-25,-16],[-23,-24],[-14,-34],[-1,-48],[13,-32],[17,-26],[15,-29],[1,-44],[-32,-69],[-3,-1],[-52,-18],[-59,11],[-101,39],[-26,-6],[-17,-33],[-1,-47],[20,-96],[30,-239],[4,-97],[-24,-60],[-24,-2],[-20,8],[-13,-11],[-1,-60],[13,-86],[-3,-34],[-24,-40],[-35,-50],[-55,-108],[-38,-25],[-310,36],[-39,-16],[-10,-13],[-16,-34],[-13,-10],[-11,-1],[-29,16],[-133,12],[-41,-57],[-20,-86],[13,-93],[24,-86],[16,-87],[21,-81],[39,-72],[19,-41],[5,-53],[2,-57],[19,-112],[2,-57],[-13,-34],[-34,13],[-39,22],[-36,-2],[-27,-32],[-14,-67],[2,-58],[22,-107],[8,-65],[-5,-109],[2,-58],[6,-50],[4,-35],[-116,174],[-30,78],[-25,138],[16,452],[-8,152],[-22,152],[-63,288],[12,200],[97,104],[123,83],[93,139],[12,54],[4,55],[-4,55],[-12,54],[-24,72],[-8,22],[-37,55],[-46,32],[-59,26],[-48,43],[-65,133],[-110,130],[-73,47],[-290,77],[-56,37],[-50,71],[-29,81],[-79,448],[-11,41],[-51,102],[-18,81],[-12,179],[-11,86],[-120,328],[-44,177],[11,185],[36,120],[22,129],[-15,92],[-74,6],[-36,-29],[-57,-97],[-38,-23],[-33,13],[-29,37],[-24,50],[-19,52]],[[5427,6671],[173,-633],[173,-633]],[[5773,5405],[-8,-8],[-25,-49],[5,-57],[10,-65],[-8,-74],[-20,-40],[-76,-94],[-25,-42],[-16,-19],[-19,6],[-34,33],[-34,14],[-45,-6],[-45,-23],[-31,-37],[-10,-55],[4,-127],[-12,-45],[-116,-171],[-16,-14],[-110,-36],[-22,1],[-21,12],[-55,63],[-49,12],[-49,-29],[-175,-156],[-136,-54],[-43,-2],[-81,53],[-44,-15],[-20,-28],[-27,-69],[-17,-32],[-9,-8],[-34,-17],[-83,-96],[-74,-117],[-26,-33],[-24,-9],[-53,11],[-27,0],[-74,-28],[-56,4],[-336,139],[-52,40],[-51,57],[-20,35],[-19,44],[-15,16]],[[3450,4290],[0,2],[2,22],[0,1],[32,112],[0,1],[5,75],[-8,80],[-22,76],[-30,63],[-60,96],[-26,20],[-1,-1],[-22,-8],[-46,-65],[-25,-20],[-49,-16],[-30,-16],[-39,-10],[-59,1],[-1,0],[-78,36],[-85,55],[-176,157],[-35,53],[-26,75],[-50,174],[-32,81],[-36,61],[-40,33],[-32,8],[-1,0],[-66,-28],[-77,-43],[-104,-16],[-1,1],[-116,26],[-3,1],[-47,1],[-17,1]],[[2049,5379],[0,13],[0,1],[-2,5],[-5,9],[-18,24],[-3,12],[-1,10],[1,10],[1,7],[-2,5],[0,1],[-2,2],[-3,2],[-1,0],[-23,-1],[-35,5],[-19,3],[-1,1],[-6,3],[-7,7],[-22,32],[-3,4],[-3,8],[-1,7],[-5,6],[-5,2],[-1,0],[-2,1],[-1,0],[-19,-2],[-11,-4],[-10,-8],[-2,1],[-1,0],[-5,3],[-6,4],[-32,62],[-12,7],[-6,3],[-15,9],[-1,0],[-13,3],[-22,-13],[-7,-1],[-1,0],[-1,1],[-5,5],[-25,40],[-24,20],[-10,6],[-4,2],[-2,0],[-9,3],[-32,1],[-4,-2],[-4,-3],[-4,-4],[-26,-42],[-5,-6],[-4,-3],[-4,-1],[-5,0],[-1,1],[-4,4],[-8,10],[-8,22],[-1,12],[1,9],[3,13],[3,36],[0,10],[-2,12],[-38,101],[-2,8],[0,8],[0,10],[5,65],[-1,8],[-1,14],[1,7],[2,8],[3,13],[29,75],[7,24],[2,10],[2,6],[2,6],[19,24],[32,27],[12,8],[6,5],[3,6],[1,6],[-1,7],[-2,10],[-1,9],[-4,98],[-1,8],[-7,39],[-1,0],[-16,12],[-1,0],[-163,37],[-81,-2],[-78,-19],[-1,0],[-1,1],[-48,55],[-2,1],[-28,9],[-41,-33],[-1,0],[0,1],[0,2],[-16,49],[-2,12],[-4,12],[-5,9],[-7,10],[0,1],[-10,9],[-1,0],[-10,6],[-14,5],[-8,0],[-25,-4],[-5,1],[-18,8],[-2,0],[-3,3],[-1,0],[-3,5],[-6,25],[-3,9],[-8,14],[-1,1],[-10,10],[-39,41],[-10,14],[-4,8],[-16,22],[-118,122],[-8,12],[-4,11],[-2,13],[-1,15],[0,18],[6,123],[2,7],[4,7],[24,36],[3,9],[1,8],[-2,8],[-5,9],[-1,1],[-24,25],[-13,13],[0,1],[-14,17],[-18,29],[-3,7],[-2,7],[-3,4],[-2,1],[-2,0],[-5,-7],[-11,-20],[-5,-8],[-5,-5],[-6,-4],[-9,-3],[-13,-1],[-14,2],[-19,10],[-1,1],[-9,6],[-2,2],[-8,9],[-1,0],[-18,15],[-4,2],[-6,3],[-8,2],[-127,-9],[-10,-3],[-10,-6],[-49,-45],[-4,-8],[-7,-16],[-4,-6],[-10,-2],[-8,-1],[-53,18],[-120,22],[-3,1],[-124,82],[-52,34],[92,257],[2,8],[-1,6],[-10,38],[-2,19],[-8,17],[-40,54],[-4,9],[-3,7],[-1,9],[-5,18],[-3,16],[0,12],[2,13],[2,10],[3,10],[33,64],[2,15],[-2,13],[-9,26],[-2,8],[0,8],[3,37],[14,97],[4,16],[5,14],[8,17],[10,19],[10,15],[17,20],[18,9],[15,4],[12,1],[15,-2],[33,-20],[8,-1],[7,5],[28,59],[6,9],[24,26],[19,13],[18,8],[9,7],[13,14],[48,85],[11,13],[10,9],[39,13],[10,11],[9,19],[3,11],[1,13],[-1,27],[0,59],[3,33],[2,10],[7,11],[14,10],[25,6],[38,-1],[31,7],[6,4],[4,8],[2,18],[-2,13],[-4,15],[-4,11],[-3,10],[0,8],[4,8],[8,8],[68,39],[8,10],[8,10],[10,22],[4,17],[4,30],[4,12],[17,39],[11,31],[1,8],[0,6],[-3,20],[-19,79],[-6,29],[-1,53],[-1,12],[0,9],[2,9],[6,5],[25,5],[42,16],[15,10],[37,45],[7,5],[7,-3],[13,-13],[20,-30],[0,-1],[7,-5],[5,-1],[32,9],[36,5],[21,-3],[11,1],[23,8],[130,73],[17,-2],[31,-9],[76,-38],[8,-1],[27,5],[15,-1],[6,-3],[10,-8],[7,0],[7,3],[18,14],[5,1],[1,0],[5,-7],[11,-25],[7,-15],[5,-6],[1,-2],[5,-5],[8,-1],[34,2],[9,-3],[14,-11],[7,-1],[7,2],[14,13],[26,34],[7,5],[10,-1],[10,-5],[25,-19],[7,-1],[7,4],[25,25],[5,2],[14,-1],[40,-17],[27,-16],[25,-9],[7,2],[8,6],[3,13],[-1,14],[-1,11],[0,9],[1,9],[5,21],[1,11],[-1,11],[0,1],[-3,18],[-2,15],[-1,1],[-7,13],[-16,20],[-1,1],[-70,72],[-1,1],[-17,28],[-1,1],[-16,14],[-14,9],[-47,12],[-9,6],[-7,5],[-2,3],[-4,4],[-7,13],[-4,11],[0,1],[0,1],[-3,28],[3,46],[0,2],[78,-5],[78,-22],[39,-24],[105,-98],[38,-15],[37,-21],[37,-1],[75,37],[13,24],[6,81],[8,33],[18,21],[21,8],[84,-16],[30,17],[63,76],[106,100],[33,41],[53,22],[27,3],[25,-12],[5,-6],[4,-7],[23,-51],[25,-33],[21,9],[8,75],[5,18],[2,17],[-3,16],[-6,14],[25,19],[82,31],[46,28],[20,-7],[18,-37],[34,-46],[94,-3],[40,-50],[37,-83],[10,-28],[7,-72],[7,-22],[17,10],[8,23],[11,68],[13,30],[18,19],[22,15],[44,17],[48,1],[109,22],[24,-6],[18,-16],[36,-48],[43,-37],[151,-47],[48,-31],[34,-51],[21,-70],[9,-91],[2,-97],[10,-89],[27,-57],[77,-6],[8,17],[4,24],[8,23],[79,45],[101,-30],[101,-73],[78,-83],[76,-102],[32,-60],[129,-371],[1,-2],[5,-38]],[[3450,4290],[-15,15],[-47,1],[-83,-28],[-119,-9],[-449,139],[-322,180],[-80,21],[-81,-11],[-81,-50],[-96,-108],[-33,-26],[-202,-54],[-17,-13],[-37,-48],[-3,-54],[10,-62],[1,-67],[-19,-47],[-61,-66],[-21,-54],[-1,-89],[-7,-29],[-11,-19],[-32,-26],[-13,-16],[-21,-53],[-6,-59],[10,-57],[27,-46],[32,-29],[30,-18],[33,-8],[36,6],[39,-6],[21,-40],[29,-118],[17,-45],[10,-51],[-4,-48],[-23,-35],[-77,-62],[-30,-49],[-11,-72],[12,-71],[29,-62],[37,-43],[40,-12],[87,35],[25,-3],[68,-37],[46,4],[48,18],[46,3],[40,-44],[16,-76],[-12,-76],[-30,-69],[-34,-53],[-45,-49],[-45,-32],[-137,-37],[-29,-43],[-44,-122],[-8,-28],[-6,-29],[-4,-31],[-3,-69],[3,-37],[7,-34],[11,-33],[60,-80],[82,-69],[68,-85],[20,-130],[-27,-180],[-39,-172],[-12,-40],[-14,-33],[-17,-29],[-21,-24],[-48,-29],[-21,-22],[-12,-42],[-4,-104],[17,-73],[35,-56],[46,-51],[42,-65],[70,-153],[47,-43],[119,-31],[35,-34],[13,-53],[4,-120],[15,-121],[-4,-49],[-13,-44],[-8,-18],[-425,345],[-8,16],[-22,58],[0,3],[-4,11],[-7,12],[-10,16],[-22,18],[-24,10],[-42,-3],[-19,-4],[-12,-6],[-3,-2],[-23,-19],[0,-1],[-9,-5],[-21,5],[-25,22],[-17,15],[-12,35],[-40,40],[-75,53],[-42,43],[-22,50],[29,44],[-2,27],[7,18],[6,26],[1,28],[-7,24],[-11,14],[-26,26],[-4,12],[-2,15],[0,15],[-1,6],[-7,1],[-10,-4],[-2,-2],[-7,-5],[-9,1],[-5,-2],[-3,4],[-2,22],[0,1],[4,0],[7,4],[2,1],[9,7],[4,6],[-1,47],[-6,45],[-1,44],[5,26],[3,16],[4,26],[-6,23],[-15,30],[-13,33],[-3,43],[11,29],[15,28],[12,71],[11,11],[1,1],[9,3],[2,1],[7,8],[1,23],[-3,19],[-4,18],[-10,78],[0,22],[4,15],[8,5],[8,7],[6,23],[-3,38],[-10,44],[-13,42],[-14,30],[-35,48],[-4,17],[6,33],[-2,16],[1,21],[23,76],[6,32],[-1,44],[-4,43],[-10,40],[-15,35],[-12,62],[20,173],[-4,80],[-78,230],[0,1],[0,2],[-13,140],[-22,141],[-1,3],[0,25],[-1,15],[0,8],[3,74],[-2,41],[-20,167],[-19,31],[-5,24],[-11,32],[-51,116],[-8,48],[-1,1],[5,12],[14,40],[7,28],[7,44],[0,5],[1,13],[0,71],[1,10],[1,1],[1,6],[8,21],[2,6],[1,8],[0,8],[-2,62],[1,11],[2,9],[6,18],[2,8],[1,8],[0,21],[1,11],[1,10],[4,11],[6,8],[11,10],[1,0],[38,11],[4,0],[2,0],[7,-1],[26,-8],[3,0],[2,0],[6,1],[1,0],[24,19],[16,12],[12,6],[11,3],[10,-1],[2,0],[9,-2],[7,-6],[1,-4],[2,-5],[0,-1],[3,-12],[5,-15],[2,-6],[3,-6],[7,0],[2,3],[5,10],[13,38],[26,113],[1,13],[-1,12],[-2,13],[-9,22],[-2,10],[-2,11],[1,11],[3,10],[38,91],[6,19],[11,51],[9,26],[9,18],[13,19],[28,32],[12,12],[1,0],[10,6],[24,-2],[8,2],[7,4],[9,8],[1,1],[24,26],[4,3],[28,9],[54,-8],[1,0],[4,3],[3,2],[23,28],[4,3],[7,6],[9,12],[2,3],[5,8],[1,2],[0,1],[9,23],[7,11],[6,9],[1,1],[8,11],[1,0],[9,6],[20,3],[8,3],[6,2],[15,9],[15,9],[4,6],[3,4],[0,1],[6,12],[2,5],[7,40],[6,22],[0,1],[3,6],[6,13],[14,16],[2,3],[4,5],[6,20],[3,20],[-1,37],[1,20],[4,18],[11,22],[12,20],[0,1],[8,8],[7,8],[1,0],[3,7],[0,1],[1,9],[-4,18],[-7,12],[-5,7],[-16,11],[-1,2],[-3,3],[-3,4],[-1,3],[-1,2],[-2,5],[-1,8],[-1,10],[2,13],[12,39],[6,15],[9,16],[14,18],[32,16]],[[6372,6272],[180,-45],[37,11],[34,30],[39,44],[17,9],[17,2],[34,-8]],[[6730,6315],[-479,-455],[-478,-455]]],"transform":{"scale":[0.0007852709098909716,0.000423183941094102],"translate":[72.51560428900024,32.82306731400013]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment