-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
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
Does not work when map renderer is set to SVG? #83
Comments
We had the same problem. All our polylines were in custom panes, so to solve the problem we added one of the polylines to the deafult leaflet polyline pane. |
@JamesHearts, @Nttz if you replace all occurrences of Have not done extensive tests but seems to work so far. Only just started testing with this plugin so can't realy test much yet. EDIT: also replace all instances of |
Can confirm this is still an issue for me, and has not been fixed. |
In some cases there can be layers without bounds, for example, empty polylines (in general - paths) made for dynamic changes or workarounds, like makinacorpus/Leaflet.TextPath#83. This fix prevents later exceptions on bounds relation calculation.
Seems when the renderer option is set to svg() leaflet-textpath breaks.
Specifically line 78 in leaflet.textpath.js:
var svg = this._map._renderer._container;
This could either be a problem with leaflet not setting ._map._renderer or textpath reading ._container from the wrong field.
The text was updated successfully, but these errors were encountered: