ghybs / Leaflet.TileLayer.Fallback

Replaces missing Tiles by scaled lower zoom Tiles
Apache License 2.0
36 stars 18 forks source link

Is the plugin compatible with react leaflet ? #21

Open Rz-Rz opened 1 week ago

Rz-Rz commented 1 week ago

I'm having a hard time using the plugins with react-leaflet, I believe they are not compatible with each other. But I might have missed something.

ghybs commented 1 week ago

Hi,

Sorry I do not use React Leaflet, so I am not sure about its exact implications. But as is, it should be just a wrapper around Leaflet objects, so most things should remain compatible, even though you might need to make a wrapper yourself to have a similar usage as in React Leaflet, if you do not want to manage it "the JS way".

Without seeing a reproduction example of how you tried to make them work together, it is hard to help any further.

Please feel free to open a question on Stack Overflow if you need help on using Leaflet and this plugin, if not already done. Make sure to share enough code and a reproduction example of what you have tried.