react-leaflet-vectorgrid
react-leaflet-vectorgrid copied to clipboard
Vectorgrid for Multipolylines
Hello :)
First of all thank you your plugin, I'm glad someone found a way to wrap it for React. It works like a charm for large GeoJSON with points.
Sadly this isnt the case for polylines, they are rendering wrong on the map as if the geojson was simplyfied. I have to zoom a lot (zoom level around 25+) to see more points.
Does anyone know a way to make it work like vanilla leaflet ? Here are two screenshots from the React and Vanilla redering. Thank you!
Vanilla Leaflet
React Leaflet
After tidying react-leaflet-vectorgrid.min.js I believe that the simplification happens at line 2117. But I can't understand that line enough to suggest any change..
2 days looking for a solution and I found it!
At the line 2117, col 9074, set tolerance to "tolerance:0.000001" You will get no additional lag and your geojson will look like this:
hi @Lessad is it working fine for you now?