rewrite of d3layer fixes awful zoom effect