Created
July 20, 2017 01:18
-
-
Save martsie/a8987d03e991c15ec43cb66a35bae712 to your computer and use it in GitHub Desktop.
Update auto positioned leaflet tooltips on map pan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
leafletElement.eachLayer(function(layer) { | |
// Re-render tooltips that have automatic positioning on map pan events. | |
if(layer.options.direction && layer.options.direction === 'auto') { | |
layer.update(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment