From 2b1b80ae238bf8c6b25da2832c4ddd05cf1dae3e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sat, 22 Jul 2023 09:04:29 +0200 Subject: [PATCH] Do not modify tooltipAnchor inplace, as it's shared by all markers fix #1223 --- umap/static/umap/js/umap.features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index c6903950..92144d2d 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -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