Permalink
Browse files

fix Ilfov rendering

  • Loading branch information...
1 parent 282df9f commit e4fa4600cd2e9df8632217f632f0f47248cb8f84 @scribu committed Feb 23, 2015
Showing with 8 additions and 1 deletion.
  1. +8 −1 script.js
View
@@ -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);
});
}

0 comments on commit e4fa460

Please sign in to comment.