3 ms·
I really love Leaflet as a tool, and the ecosystem is amazing, but I find integrating it within a React environment to be quite tough. I can integrate the reac
by abustamam 10y ago
I really love Leaflet as a tool, and the ecosystem is amazing, but I find integrating it within a React environment to be quite tough. I can integrate the react leaflet components pretty well but once I start doing things like using plug-ins (for edge markers or heat maps or something) then it's no longer easy to use, primarily because very few leaflet plug-ins use npm.
Is there an easy way to integrate leaflet plug-ins using react? My best attempt was to download the plug-in script and modify it such that it takes the Leaflet object as a parameter (instead of the IIFE) but this causes a lot of overhead for using plug-ins.
Any tips from a fellow react developer?