[GIS] Clipping GeoJSON in leaflet

clipgeojsonleaflet

I am using leaflet 1.0.0 to display the GeoJSON. The GeoJSON contains data for the whole bounding box but I want to display the feature in some location only.

Is it possible to clip the GeoJSON with another GeoJSON or something like that to display on the leaflet map?

Best Answer

Yes, it's possible, but it's not something that Leaflet can (or should) do.

Instead, research into other tools specialized in geoprocessing, like e.g. turf.js's bboxClip().

Related Question