Skip to content

Commit

Permalink
toast icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Jan 2, 2025
1 parent 3034289 commit 5bfa743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function App() {
text = getBbox(wkt);
}
navigator.clipboard.writeText(text);
toast("Copied geometry as " + formats[format])
toast("Copied geometry as " + formats[format], { icon: "📎" })
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/wkt.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ function layerGroupToWkt(layerGroup) {
let geometries = [];
let fixed = false;
layerGroup.eachLayer(function(layer) {
console.log(layer)
const geo = layer.toGeoJSON();
const before = JSON.stringify(geo.geometry);
rewind(geo.geometry);
Expand All @@ -281,7 +282,7 @@ function layerGroupToWkt(layerGroup) {
}
});
if (fixed) {
toast("Fixed winding order");
toast("Fixed winding order", { icon: "↪" });
}
const wktGeometries = geometries.map(geojsonToWKT);
let wkt;
Expand Down

0 comments on commit 5bfa743

Please sign in to comment.