Skip to content

Commit

Permalink
fix issue 258 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe13 authored Jul 5, 2023
1 parent 0a4596c commit 4043371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/handlers/labels.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* @see https://github.com/Raruto/leaflet-elevation/issues/211
*
*
* @example
* ```js
* L.control.Elevation({ handlers: [ 'Labels' ], labelsRotation: 25, labelsAlign: 'start' })
* ```
*/
export function Labels() {

this.on('elechart_init elechart_axis', function(e) {
this.on('elechart_updated', function(e) {

const pointG = this._chart._chart.pane('point');

Expand All @@ -29,7 +29,7 @@ export function Labels() {
.attr("stroke", '#000')
.attr("stroke-width", '1.1');

} else if (!isNaN(textRotation)) {
} else if (!isNaN(textRotation)) {

pointG.selectAll('text')
.attr("dx", "4px")
Expand Down

0 comments on commit 4043371

Please sign in to comment.