Skip to content

Instantly share code, notes, and snippets.

@anilnairxyz
Last active September 25, 2023 05:23
Show Gist options
  • Save anilnairxyz/9148bbbd31b00fabc3ef2a34c8aaa9b6 to your computer and use it in GitHub Desktop.
Save anilnairxyz/9148bbbd31b00fabc3ef2a34c8aaa9b6 to your computer and use it in GitHub Desktop.
JandK - Merged

This map shows the historical boundaries of the state of Kashmir which is now split between 3 countries (India, Pakistan and China)

Copyright © 2015, Anil Nair - MIT License

license: mit
height: 560

This map is the complete map of J&K and should (hopefully - no guarantees) pass muster. This map shows the historical boundaries of the state of Kashmir which is now split between 3 countries (India, Pakistan and China)

This map (Mercator) has been generated using the state map of India from Natural Earth while the disputed areas of Jammu and Kashmir have been merged from other maps at the same site.

<!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_Merged.json", function(json) {
var subunits = topojson.feature(json, json.objects.ne_10m_admin_0_Kashmir_Merged);
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_Merged":{"type":"GeometryCollection","geometries":[{"type":"Polygon","arcs":[[0]]}]}},"arcs":[[[8609,399],[-25,12],[-26,17],[-26,8],[-31,-8],[-38,-16],[-36,-23],[-26,-28],[-12,-47],[-15,-125],[-21,-41],[-11,-2],[-34,13],[-15,2],[-17,-7],[-31,-20],[-18,-6],[-42,-32],[-40,18],[-38,45],[-33,51],[-108,129],[-21,67],[-22,110],[-3,31],[7,38],[11,36],[2,36],[-18,36],[-30,16],[-24,-17],[-37,-64],[-22,-28],[-22,-16],[-52,-17],[-181,-8],[-50,-17],[-30,-23],[-5,-41],[-28,-26],[-58,-92],[-13,-2],[-12,5],[-15,16],[-10,22],[-5,27],[5,31],[10,29],[6,26],[8,64],[8,28],[6,16],[12,18],[25,27],[33,29],[12,18],[8,18],[4,18],[4,25],[4,64],[-1,31],[-3,32],[-9,52],[-4,15],[-5,8],[-8,5],[-9,2],[-25,-1],[-11,-3],[-9,-4],[-3,-9],[3,-35],[-5,-17],[-11,-13],[-33,-17],[-14,-12],[-19,-37],[-13,-11],[-20,-6],[-25,5],[-21,-1],[-17,-7],[-30,-30],[-29,-6],[-22,-8],[-13,-12],[-7,-17],[-7,-10],[-12,-8],[-9,-10],[-9,-21],[-14,-26],[-20,-14],[-44,-3],[-18,22],[-8,28],[-6,30],[-12,26],[-31,47],[-14,26],[-8,33],[-4,108],[-8,27],[-16,33],[-22,26],[-45,147],[-43,79],[-75,109],[-29,52],[-13,30],[-14,24],[-11,4],[-12,-3],[-11,-11],[-25,-16],[-2,-2],[-17,-27],[-10,-13],[-11,-9],[-24,-10],[-11,-7],[-11,-12],[-33,-49],[-18,-19],[-17,-14],[-19,-11],[-52,-19],[-26,-17],[-43,-14],[-64,-9],[-6,-5],[-5,-8],[-9,-25],[-8,-11],[-29,1],[-164,73],[-107,52],[-61,49],[-113,120],[-55,38],[-21,19],[-16,25],[-31,58],[-69,87],[-25,22],[-77,129],[-18,16],[-19,6],[-145,-17],[-18,10],[-68,79],[-20,3],[-39,-33],[-147,-41],[-55,-37],[-75,-68],[-17,-24],[-8,-20],[-1,-22],[-4,-27],[-12,-36],[-31,-48],[-27,-26],[-27,-17],[-53,-23],[-66,-40],[-25,-26],[-8,-16],[-30,-50],[-101,-123],[-23,-20],[-14,-7],[-9,11],[-21,35],[-10,12],[-11,7],[-12,4],[-31,19],[-14,4],[-16,1],[-25,-9],[-15,-13],[-10,-17],[-4,-25],[2,-28],[8,-30],[16,-29],[44,-65],[14,-26],[9,-21],[5,-18],[8,-19],[21,-38],[8,-19],[4,-23],[1,-13],[-13,-40],[-2,-71],[4,-24],[25,-83],[2,-23],[0,-22],[-4,-28],[-3,-6],[-10,-8],[-22,-29],[-38,-76],[2,-28],[-15,-44],[-10,-20],[-11,-22],[-13,-18],[-14,-7],[-25,-28],[-70,-35],[-8,-18],[-5,-40],[-4,-16],[-8,-11],[-23,-24],[-9,-14],[-20,-13],[-90,-9],[-49,-44],[-45,-62],[-45,-94],[-28,14],[-8,10],[-12,12],[-17,13],[-9,14],[-3,12],[3,36],[-3,13],[-7,1],[-18,-13],[-11,-16],[-30,-23],[-81,10],[-36,-16],[-87,100],[-43,36],[-90,31],[-43,37],[-47,55],[-40,22],[-42,-6],[-54,-30],[-53,-8],[-87,63],[-50,-5],[-45,-21],[-49,-4],[-46,22],[-34,57],[-38,147],[-4,42],[9,38],[14,36],[11,36],[1,42],[-9,86],[0,46],[9,46],[32,89],[9,45],[-5,47],[-17,20],[-23,-7],[-23,-32],[-12,-41],[-6,-36],[-10,-32],[-26,-26],[-25,-11],[-67,-16],[-26,2],[-21,16],[-37,52],[-21,16],[-25,-3],[-42,-35],[-23,-9],[-28,7],[-21,20],[-17,31],[-12,39],[12,25],[1,3],[-425,307],[-8,14],[-22,52],[0,3],[-4,9],[-7,11],[-10,14],[-22,17],[-24,8],[-42,-2],[-19,-4],[-12,-5],[-3,-2],[-23,-17],[0,-1],[-9,-4],[-21,4],[-25,20],[-17,13],[-12,31],[-40,36],[-75,47],[-42,38],[-22,45],[29,39],[-2,24],[7,16],[6,23],[1,25],[-7,21],[-11,13],[-26,23],[-4,10],[-2,14],[0,13],[-1,6],[-7,0],[-10,-3],[-2,-1],[-7,-5],[-9,1],[-5,-2],[-3,3],[-2,20],[0,1],[4,0],[7,3],[2,2],[9,6],[4,5],[-1,41],[-6,41],[-1,39],[5,23],[3,14],[4,24],[-6,20],[-15,27],[-13,29],[-3,38],[11,26],[15,25],[12,63],[11,10],[1,1],[9,3],[2,1],[7,7],[1,20],[-3,17],[-4,16],[-10,69],[0,20],[4,14],[8,4],[8,6],[6,21],[-3,33],[-10,40],[-13,37],[-14,27],[-35,43],[-4,15],[6,29],[-2,14],[1,19],[23,68],[6,27],[-1,40],[-4,38],[-10,36],[-15,31],[-12,55],[20,154],[-4,71],[-78,205],[0,1],[0,2],[-13,124],[-22,126],[-1,3],[0,22],[-1,14],[0,6],[3,67],[-2,36],[-20,148],[0,1],[-19,27],[-5,21],[-11,29],[-51,103],[-8,43],[-1,0],[5,12],[14,35],[7,25],[7,39],[0,5],[1,11],[0,64],[1,8],[1,1],[1,5],[8,19],[2,6],[1,6],[0,7],[-2,56],[1,10],[2,8],[6,15],[2,8],[1,7],[0,18],[1,10],[1,9],[4,10],[6,8],[11,8],[1,0],[38,10],[4,0],[2,0],[7,-1],[26,-7],[3,0],[2,0],[6,1],[1,0],[24,16],[16,12],[12,4],[11,3],[10,0],[2,0],[9,-2],[7,-5],[1,-4],[2,-5],[3,-11],[5,-13],[2,-5],[3,-6],[7,0],[2,3],[5,8],[13,34],[26,101],[1,11],[-1,11],[-2,11],[-9,21],[-2,8],[-2,10],[1,10],[3,9],[38,81],[6,17],[11,45],[9,23],[9,16],[13,17],[28,28],[12,11],[1,0],[10,5],[24,-2],[8,2],[7,4],[9,7],[1,1],[24,23],[4,3],[28,8],[54,-7],[1,0],[4,2],[3,2],[23,25],[4,3],[7,5],[9,11],[2,2],[5,7],[1,3],[9,21],[7,9],[6,9],[1,0],[8,10],[1,0],[9,5],[20,3],[8,3],[6,2],[15,7],[15,8],[0,1],[4,5],[3,4],[6,11],[2,4],[7,36],[6,20],[3,6],[6,11],[0,1],[14,13],[2,3],[4,5],[6,18],[3,18],[-1,32],[1,19],[4,15],[11,20],[12,18],[8,8],[7,7],[1,0],[3,6],[0,1],[1,8],[-4,16],[-7,11],[-5,6],[-16,10],[-1,1],[-3,3],[-3,4],[-1,2],[-1,2],[-2,5],[-1,6],[-1,9],[2,12],[12,35],[6,13],[0,1],[9,14],[14,16],[32,13],[0,1],[0,12],[-2,5],[-5,8],[-18,21],[-3,11],[-1,8],[1,10],[1,6],[-2,4],[0,1],[-2,1],[-3,2],[-1,0],[-23,0],[-35,4],[-19,3],[-1,0],[-6,4],[-7,5],[-22,29],[-3,4],[-3,7],[-1,6],[-5,5],[-5,2],[-1,0],[-2,1],[-1,0],[-19,-2],[-11,-3],[-10,-7],[-2,1],[-1,0],[-5,2],[-6,4],[-32,55],[-12,6],[-6,3],[-15,8],[-1,0],[-13,2],[-22,-11],[-7,-1],[-1,0],[-1,1],[-5,4],[-25,36],[-24,18],[-10,5],[-4,2],[-2,0],[-9,3],[-32,0],[-4,-1],[-4,-3],[-4,-4],[-26,-37],[-5,-5],[-4,-3],[-4,-1],[-5,0],[-1,1],[-4,4],[-8,9],[-8,19],[-1,11],[1,8],[3,11],[3,32],[0,9],[-2,11],[-38,90],[-2,7],[0,7],[0,9],[5,58],[-1,7],[-1,12],[1,7],[2,7],[3,11],[29,67],[7,22],[2,8],[2,6],[2,5],[19,21],[32,25],[12,6],[6,5],[3,5],[1,6],[-1,6],[-2,9],[-1,8],[-4,87],[-1,7],[-7,35],[-1,0],[-16,10],[-1,0],[-163,34],[-81,-3],[-78,-16],[-1,0],[-1,1],[-48,49],[-2,0],[-28,8],[-41,-29],[-1,1],[0,2],[-16,43],[-2,11],[-4,11],[-5,8],[-7,9],[-10,8],[-1,1],[-10,5],[-14,4],[-8,1],[-25,-4],[-5,1],[-18,7],[-2,0],[-3,2],[0,1],[-1,0],[-3,4],[-6,23],[-3,8],[-8,12],[-1,0],[-10,10],[-39,37],[-10,12],[-4,7],[-16,20],[-118,108],[-8,11],[-4,9],[-2,12],[-1,14],[0,16],[6,109],[2,6],[4,6],[24,32],[3,8],[1,8],[-2,7],[-5,8],[-1,0],[-24,23],[-13,11],[0,1],[-14,16],[-18,25],[-3,6],[-2,6],[-3,4],[-2,1],[-2,0],[-5,-6],[-11,-18],[-5,-7],[-5,-4],[-6,-4],[-9,-3],[-13,-1],[-14,2],[-19,9],[-1,1],[-9,5],[-2,2],[-8,8],[-1,0],[-18,13],[-4,2],[-6,3],[-8,2],[-127,-8],[-10,-3],[-10,-6],[-49,-40],[-4,-6],[-7,-15],[-4,-5],[-10,-2],[-8,-1],[-53,16],[-120,19],[-3,2],[-124,72],[-52,31],[92,229],[2,7],[-1,5],[-10,34],[-2,17],[-8,15],[-40,48],[-4,8],[-3,7],[-1,7],[-5,17],[-3,13],[0,11],[2,11],[2,9],[3,9],[33,58],[2,13],[-2,12],[-9,22],[-2,8],[0,7],[3,33],[14,86],[4,14],[5,13],[8,15],[10,16],[10,14],[17,18],[18,8],[15,4],[12,1],[15,-2],[33,-18],[8,-1],[7,4],[28,53],[6,8],[24,23],[19,12],[18,7],[9,6],[13,13],[48,75],[11,12],[10,8],[39,12],[10,9],[9,17],[3,10],[1,11],[-1,25],[0,52],[3,29],[2,10],[7,9],[14,8],[25,6],[38,0],[31,5],[6,4],[4,8],[2,16],[-2,11],[-4,13],[-4,10],[-3,9],[0,7],[4,7],[8,7],[68,35],[8,9],[8,9],[10,20],[4,15],[4,26],[4,11],[17,34],[11,28],[1,7],[0,6],[-3,17],[-19,71],[-6,26],[-1,47],[-1,11],[0,8],[2,7],[6,5],[25,4],[42,14],[15,10],[37,40],[7,4],[7,-2],[13,-12],[20,-27],[0,-1],[7,-4],[5,-2],[32,9],[36,4],[21,-2],[11,0],[23,8],[130,65],[17,-2],[31,-8],[76,-34],[8,-1],[27,4],[15,-1],[6,-2],[10,-7],[7,0],[7,3],[18,12],[5,1],[1,0],[5,-6],[11,-23],[7,-13],[5,-6],[1,-1],[5,-4],[8,-1],[34,2],[9,-3],[14,-10],[7,-1],[7,2],[14,11],[26,31],[7,4],[10,-1],[10,-4],[25,-17],[7,-1],[7,3],[25,23],[5,2],[14,-2],[40,-15],[27,-14],[25,-7],[7,1],[8,5],[3,12],[-1,12],[-1,10],[0,8],[1,8],[5,19],[1,10],[-1,9],[0,1],[-3,17],[-2,13],[-1,0],[-7,12],[-16,18],[-1,1],[-70,64],[-1,1],[-17,25],[-1,1],[-16,12],[-14,8],[-47,11],[-9,5],[-7,5],[-2,3],[-4,3],[-7,11],[-4,10],[0,1],[0,1],[-3,25],[3,41],[0,2],[78,-5],[78,-19],[39,-22],[105,-87],[38,-13],[37,-19],[37,0],[75,32],[13,22],[6,72],[8,29],[18,19],[21,7],[84,-14],[30,15],[63,67],[106,90],[33,36],[53,19],[27,3],[25,-11],[5,-5],[4,-6],[23,-46],[25,-29],[21,8],[8,67],[5,16],[2,15],[-3,14],[-6,13],[25,17],[82,27],[46,25],[20,-6],[18,-33],[34,-41],[94,-3],[40,-44],[37,-74],[10,-25],[7,-64],[7,-20],[17,9],[8,20],[11,61],[13,27],[18,17],[22,13],[44,15],[48,1],[109,20],[24,-6],[18,-14],[36,-43],[43,-32],[151,-42],[48,-28],[34,-45],[21,-63],[9,-81],[2,-86],[10,-79],[27,-51],[77,-5],[8,15],[4,21],[8,21],[79,40],[101,-27],[101,-65],[78,-74],[76,-91],[32,-53],[129,-330],[1,-2],[5,-34],[214,-44],[115,-220],[101,21],[89,-42],[51,-148],[52,-41],[126,-62],[128,0],[63,-65],[51,-104],[26,-148],[0,-127],[0,-146],[77,-106],[127,-41],[89,-43],[76,-84],[27,-83],[51,-22],[101,-43],[127,22],[51,0],[92,-168],[61,25],[50,-151],[13,-200],[1,-16],[180,-41],[37,10],[34,27],[39,39],[17,8],[17,2],[34,-7],[37,-8],[39,-16],[38,-5],[32,26],[22,60],[11,51],[17,31],[38,3],[113,-48],[36,-4],[17,13],[18,81],[17,48],[25,37],[30,26],[56,25],[15,19],[25,55],[19,25],[22,14],[47,17],[47,33],[43,43],[44,32],[94,15],[47,28],[136,125],[16,25],[33,90],[15,25],[41,26],[48,3],[48,-11],[86,-43],[40,-8],[40,7],[149,77],[160,21],[136,75],[43,6],[51,-10],[46,-28],[30,-46],[6,-66],[-5,-64],[12,-47],[54,-19],[59,30],[29,7],[28,-12],[7,-15],[1,-20],[4,-18],[12,-10],[41,-9],[11,-9],[17,-39],[-8,-29],[-18,-26],[-11,-35],[4,-36],[32,-66],[33,-117],[37,-38],[102,-20],[25,-18],[9,-33],[5,-39],[11,-34],[25,-15],[25,13],[21,29],[15,35],[36,32],[38,-63],[31,-96],[16,-69],[7,-64],[14,-69],[23,-57],[37,-29],[37,12],[39,41],[34,54],[22,52],[30,130],[24,35],[46,-15],[17,-22],[24,-56],[5,-8],[10,-12],[21,-4],[19,12],[18,16],[2,1],[20,9],[36,-31],[10,-58],[3,-18],[-6,-87],[-21,-61],[-87,-106],[-29,-69],[8,-90],[15,-88],[-9,-71],[-28,-61],[-41,-60],[-37,-70],[-12,-66],[6,-364],[-11,-59],[-19,-47],[-72,-115],[-16,-36],[-25,-83],[-21,-135],[-18,-33],[-50,-21],[-74,20],[-39,11],[-52,-8],[-18,-29],[-10,-45],[-7,-48],[-11,-41],[-22,-32],[-24,-14],[-55,-15],[-25,-14],[-23,-22],[-14,-30],[-1,-42],[13,-29],[17,-23],[15,-26],[1,-39],[-32,-62],[-3,-1],[-52,-16],[-59,10],[-101,35],[-26,-5],[-17,-30],[-1,-42],[20,-85],[30,-212],[4,-87],[-24,-53],[-24,-3],[-20,8],[-13,-10],[-1,-53],[13,-77],[-3,-30],[-24,-36],[-35,-45],[-55,-96],[-38,-22],[-310,32],[-39,-14],[-10,-11],[-16,-30],[-13,-10],[-11,0],[-29,14],[-133,10],[-41,-50],[-20,-77],[13,-82],[24,-78],[16,-76],[21,-73],[39,-63],[19,-37],[5,-47],[2,-51],[19,-100],[2,-51],[-13,-30],[-34,12],[-39,19],[-36,-2],[-27,-28],[-14,-59],[2,-53],[22,-95],[8,-57],[-5,-98],[2,-51],[6,-45],[4,-31],[3,-2],[71,-162],[20,-16],[47,-19],[22,-15],[21,-19],[16,-27],[6,-40],[2,-50],[11,-11],[44,28],[40,-5],[97,-73],[44,-21],[103,-6],[43,-31],[4,-78],[-11,-32],[-28,-57],[-9,-40],[-6,-111],[-8,-40],[1,-79],[26,-55],[74,-93],[25,-65],[8,-65],[13,-61],[35,-54],[30,-48],[7,-69],[-12,-76],[-25,-69],[-53,-90],[-125,-141],[-54,-86],[-23,-9]]],"transform":{"scale":[0.0007852709098909716,0.0004754372118211779],"translate":[72.51560428900024,32.300586860000095]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment