Skip to content

gi-nx


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

NameType
features{ geometry: { coordinates: [number, number][][]; type: "Polygon"; }; properties: { }; type: "Feature"; }[]
type"FeatureCollection"