You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for pointing this out, and apologies for the confusion. The source code is actually the intended behavior. The layer text option tells the code that you want to display text on the SVG element and provides configuration options for that text element that will be displayed. One parameter is text, which is the actual text to be displayed, but you can also provide a path option that tells the browser to display the text along a path (if the element is a line or polygon) or provide more advanced styling options or override specific SVG text element attributes for the SVG text element that gets created. For example:
var thing = new L.<object>(<geometry>, {
text: {
text: 'Test',
attr: {
// Keys/values for SVG text element attributes to specify explicitly
},
style: {
'fill': '#123',
'stroke': '#fff'
},
path: {
startOffset: '65%'
}
}
}
v0.3.1 ->leaflet-dvf.js
The text was updated successfully, but these errors were encountered: