Skip to content

Commit

Permalink
fix Ilfov rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
scribu committed Feb 23, 2015
1 parent 282df9f commit e4fa460
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,15 @@ function initGeometry(features) {
var path = d3.geo.path().projection(d3.geo.mercator().center(RO_CENTER));

features.forEach(function(feature) {
if (feature.id === 'IF') {
// remove Bucharest hole
feature.geometry.coordinates = feature.geometry.coordinates.slice(0, 1);
}

var contour = transformSVGPath(path(feature));

var county = counties.get(feature.id);
county.set('contour', transformSVGPath(path(feature)));
county.set('contour', contour);
county.set('name', feature.properties.name);
});
}
Expand Down

0 comments on commit e4fa460

Please sign in to comment.