We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found a bug, that an offset by 0 offsets the text by the width of stroke. According to the code, this should be the default when no offset is set.
Example:
The text was updated successfully, but these errors were encountered:
New output:
Test code:
var map = L.map('map') .setView([ 50, 15 ], 5) for (var i = -3; i <= 3; i++) { var line = L.polyline([[ 50 + i, 10 ], [ 50 + i, 21 ]], { weight: 7, color: '#8EE9FF' }).addTo(map); line.setText(' offset ' + i, {repeat: true, offset: i, attributes: {fill: '#007DEF', 'font-weight': 'bold', 'font-size': '12'}}); }
Sorry, something went wrong.
No branches or pull requests
I found a bug, that an offset by 0 offsets the text by the width of stroke. According to the code, this should be the default when no offset is set.
Example:

The text was updated successfully, but these errors were encountered: