Skip to content

Commit

Permalink
fix: scalebar kilimeter -> km. Issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
neocarto committed Mar 15, 2022
1 parent a121a12 commit 32be739
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/layers/outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export function outline(selection, projection, options = {}) {
let strokeWidth = options.strokeWidth ? options.strokeWidth : 1;
selection
.append("g")
// .attr(":inkscape:groupmode", "layer")
// .attr("id", "outline")
// .attr(":inkscape:label", "outline")
.append("path")
.attr("d", d3.geoPath(projection)({ type: "Sphere" }))
.attr("fill", fill)
Expand Down
1 change: 1 addition & 0 deletions src/layers/scalebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function scalebar(selection, projection, width, height, options = {}) {
.size([width, height])
.left(x)
.top(y)
.label(units == "miles" ? "Miles" : "Km")
.units(units == "miles" ? d3.geoScaleMiles : d3.geoScaleKilometers)
.orient(d3.geoScaleBottom)
.tickPadding(5)
Expand Down

0 comments on commit 32be739

Please sign in to comment.