kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
27 lines (26 loc) • 731 B
TypeScript
import { MapState } from '@kepler.gl/types';
/**
* top left of the grid to a square polygon for the hover layer
* and current latitude
* @param object
* @param cellSize
* @param coverage
* @param properties
* @param mapState
* @param coordinate - fallback position from picking info (deck.gl 9 no longer provides object.position)
* @returns - geojson feature
*/
export declare function pointToPolygonGeo({ object, cellSize, coverage, properties, mapState, coordinate }: {
object: any;
cellSize: number;
coverage: number;
properties?: any;
mapState: MapState;
coordinate?: number[];
}): {
geometry: {
coordinates: number[][];
type: string;
};
properties: any;
} | null;