geodalib / core/src / getBuffers
Function: getBuffers()
getBuffers(
options
):Promise
<Feature
<Geometry
,GeoJsonProperties
>[]>
Defined in: core/src/geometry/buffer.ts:52
Get the buffers of the geometries
Example
ts
const geoms = [
{
type: 'Feature',
geometry: { type: 'Point', coordinates: [100, 0] },
},
];
const buffers = await getBuffers({
geoms: geoms,
bufferDistance: 10,
distanceUnit: DistanceUnit.Mile,
pointsPerCircle: 10,
});
Parameters
options
The options for getting the buffers. See GetBuffersOptions
Returns
Promise
<Feature
<Geometry
, GeoJsonProperties
>[]>
The buffers of the geometries