UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

23 lines (22 loc) 869 B
import WebMercatorViewport from 'viewport-mercator-project'; export declare const MAPBOX_TILE_SIZE = 512; /** * bounds should be [minLng, minLat, maxLng, maxLat] * @param {*} bounds */ export declare function validateBounds(bounds: any): any[] | null; export declare function getCenterAndZoomFromBounds(bounds: any, { width, height }: { width: any; height: any; }): { zoom: number; center: number[]; } | null; /** * Add extra info about screen space position and world position to the event. * @param {*} event Event to normalize. * @param {*} viewport Current viewport. * @returns Normalized event with extra information compatible with React-map-gl MapLayerMouseEvent * https://visgl.github.io/react-map-gl/docs/api-reference/types#maplayermouseevent */ export declare function normalizeEvent(event: any, viewport: WebMercatorViewport): any;