gi-nx / getMapBounds
ts
function getMapBounds(): {
features: {
geometry: {
coordinates: [number, number][][];
type: "Polygon";
};
properties: {
};
type: "Feature";
}[];
type: "FeatureCollection";
};Get the current map bounds as a GeoJSON FeatureCollection.
Returns
| Name | Type |
|---|---|
features | { geometry: { coordinates: [number, number][][]; type: "Polygon"; }; properties: { }; type: "Feature"; }[] |
type | "FeatureCollection" |