I have a lot of GeoJSON spatial data that I want to display on a leaflet map. Around 35,000 GeoJSON objects.
Because the amount of points can get very large, I wanted to use the geojson-vt library to tile my data on the client side.
Right now I have successfully tiled my data using the geojson-vt library:
var geoJson = {}; // Request to get data via API call not shown here
var tileOptions = {
maxZoom: 18,
tolerance: 5,
extent: 4096,
buffer: 64,
debug: 0,
indexMaxZoom: 0,
indexMaxPoints: 100000,
};
var tileIndex = geojsonvt(geoJson, tileOptions);
How do I integrate the vector tile data generated by geojson-vt to my Leaflet map?
Are there any recommended plugins or libraries that can help?