Skip to content

Commit

Permalink
Fix long line in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
tudacs committed Jan 15, 2022
1 parent 62bd0d3 commit e6b14a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ new L.GPX(app.params.gpx_url, {
}).addTo(map);
```

The content of the popup created for waypoints can be customised by setting `marker_options.popupTemplate` to a function returning the popup content, receiving name and description of the waypoint as arguments. The (simplified) default looks like
The content of the popup created for waypoints can be customised by setting
`marker_options.popupTemplate` to a function returning the popup content,
receiving name and description of the waypoint as arguments. The (simplified)
default is defined as follows:

```javascript
marker_options.popupTemplate = function(name, desc) { return `<b>${name}</b> $desc` };
Expand Down

0 comments on commit e6b14a6

Please sign in to comment.