I am trying to add zoom to UK map with d3fc-label-layout. But when I zoom in the labels are shifted. As I understand I have to recalculate the positions with d3fc-label-layout every time the zoom is called, but not sure how to do this Here is a fiddle https://jsfiddle.net/benderlio/cyvqase5/11/
var zoom = d3.zoom()
.scaleExtent([1, 28])
.on('zoom', function () {
svg.selectAll('path')
.attr('transform', d3.event.transform);
svg.selectAll("circle")
.attr('transform', d3.event.transform);
svg.selectAll("text")
.attr('transform', d3.event.transform);
});
svg.call(zoom);