Skip to content

Commit

Permalink
Only show first line of text-markers and release v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
at-dro committed Apr 16, 2024
1 parent 9eef0c5 commit c2e3ad6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/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 client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geoclient",
"version": "2.0.1-SNAPSHOT",
"version": "2.0.1",
"description": "This is the frontend for geo data from Geobroker",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion client/src/overlays/geojson.overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class GeoJsonOverlay extends FeatureCollectionLayer {

if (markerProperties.icon === 'text-marker') {
iconHtml.className = 'text-marker';
iconHtml.dataset.text = title || '';
iconHtml.dataset.text = title?.split('\n')[0] || '';
} else {
iconHtml.className = `fas fa-2x ${markerProperties.icon || 'fa-map-marker-alt'}`;

Expand Down

0 comments on commit c2e3ad6

Please sign in to comment.