clementallen / react-leaflet-textpath

React wrapper for the leaflet-textpath plugin
https://npmjs.com/package/react-leaflet-textpath
MIT License
8 stars 4 forks source link

No `map.renderer` and `_path` properties avilable in layer #73

Open KishorTSi opened 6 months ago

KishorTSi commented 6 months ago

I'm using leaflet v1.8, react-leaflet v4.0 and react-leaflet-textpath v2.1.1. I'm trying to add <TextPath on map then getting an error Cannot read properties of undefined (reading '_container') at line 66 (leaflet.textpath.js). I have commented out preferCanvas={true} in MapContainer.

Any help much appriciated. Thank you.

clementallen commented 6 months ago

@KishorTSi this library was most recently updated to support react-leaflet v3, and as the maintainer of that library loves to completely rewrite it in a backwards-incompatible way on a fairly regular basis it's likely that this library just doesn't work with v4. If someone was to raise a MR to add support with testing evidence, I'll gladly review and release.