Merge pull request #1224 from umap-project/fix-tooltip-position
Do not modify tooltipAnchor inplace, as it's shared by all markers
This commit is contained in:
commit
bd339db397
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ L.U.Marker = L.Marker.extend({
|
|||
},
|
||||
|
||||
_getTooltipAnchor: function () {
|
||||
const anchor = this.options.icon.options.tooltipAnchor,
|
||||
const anchor = this.options.icon.options.tooltipAnchor.clone(),
|
||||
direction = this.getOption('labelDirection')
|
||||
if (direction === 'left') {
|
||||
anchor.x *= -1
|
||||
|
|
Loading…
Reference in a new issue