When zooming a map with d3-zoom, update the scale bar created with d3-geo-scale-bar to reflect the current zoom.
https://d3js.org/d3-dispatch.v1.min.js
https://d3js.org/d3-selection.v1.min.js
https://d3js.org/d3-transition.v1.min.js
https://d3js.org/d3-zoom.v1.min.js
https://d3js.org/d3-drag.v1.min.js
https://d3js.org/d3-array.v1.min.js
https://d3js.org/d3-geo.v1.min.js
https://unpkg.com/d3-geo-scale-bar@1