Skip to content

Commit

Permalink
Only show first line in text-marker caption
Browse files Browse the repository at this point in the history
  • Loading branch information
at-dro committed Apr 16, 2024
1 parent 44c0790 commit 0c2a896
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geotool",
"version": "0.1.7",
"version": "0.1.8",
"description": "This tool helps with creating layers for Leaflet maps.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/editable/marker/editable.marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class EditableMarker extends Marker implements EditableLayer, Csv.Support
icon.style.color = this.color || "";
if (this.icon === 'text-marker') {
icon.className = 'text-marker';
icon.dataset.text = this.text || '';
icon.dataset.text = this.text?.split('\n')[0] || '';
icon.style.transform = '';
} else {
icon.className = `fas fa-2x ${this.icon || "fa-map-marker-alt"}`;
Expand Down

0 comments on commit 0c2a896

Please sign in to comment.