Skip to content

Commit

Permalink
Improve readability of Italy outline
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobrasolin committed Jan 24, 2024
1 parent e99332e commit 0481071
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/controllers/map_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default class extends Controller {
.append("svg")
.style("width", "100%")
.style("height", "100%");
this.svg.append("g").attr("id", "hexbins");
this.svg
.append("g")
.attr("id", "italy")
Expand All @@ -61,7 +62,6 @@ export default class extends Controller {
.append("path")
.attr("d", geoGenerator);

this.svg.append("g").attr("id", "hexbins");
this.hexbin = hexbin().radius(6).extent(this.extent);

this.initBrush();
Expand Down
9 changes: 5 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@

@layer components {
svg {
background-color: lightgray;
background-color: white;
width: 100%;
height: 100%;
#italy path {
fill: black;
stroke: lightgray;
stroke-width: 1px;
fill: none;
stroke: white;
stroke-width: 0.5px;
mix-blend-mode: difference;
}
}
option::after {
Expand Down

0 comments on commit 0481071

Please sign in to comment.