This is a map of Qubec in response to Stackoverflow question. The gist is based on Let's Make a Map.
forked from phil-pedruco's block: Topojson Map of ontario
xxxxxxxxxx
<meta charset="utf-8">
<style>
#area {
stroke: black;
stroke-width: 1px;
fill: lightBlue;
}
</style>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<body>
<script>
var width = 960,
height = 500;
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var projection = d3.geo.mercator()
.center([-11.5, 5.90])
.scale(750)
.translate([(width) / 2, (height)/2]);
var path = d3.geo.path()
.projection(null);
d3.json("qc-map.json", function(error, ont) {
console.log(ont)
svg.append("path")
.datum(topojson.feature(ont, ont.objects.CensusSubDivision))
.attr("id", "area")
.attr("d", path);
});
</script>
</body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://d3js.org/topojson.v1.min.js to a secure url
https://d3js.org/d3.v3.min.js
https://d3js.org/topojson.v1.min.js