Skip to content

Commit

Permalink
[Maps] Remove cruft (#116986)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck authored Nov 1, 2021
1 parent e793b3a commit 7bd984b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/maps/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ export enum GRID_RESOLUTION {
SUPER_FINE = 'SUPER_FINE',
}

export const SUPER_FINE_ZOOM_DELTA = 7; // (2 ^ SUPER_FINE_ZOOM_DELTA) ^ 2 = number of cells in a given tile
export const GEOTILE_GRID_AGG_NAME = 'gridSplit';
export const GEOCENTROID_AGG_NAME = 'gridCentroid';

Expand Down
18 changes: 0 additions & 18 deletions x-pack/plugins/maps/public/classes/util/geo_tile_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,6 @@ export function tile2lat(y: number, z: number): number {
return tileToLatitude(y, tileCount);
}

export function tileToESBbox(x: number, y: number, z: number): ESBounds {
const wLon = tile2long(x, z);
const sLat = tile2lat(y + 1, z);
const eLon = tile2long(x + 1, z);
const nLat = tile2lat(y, z);

return {
top_left: {
lon: wLon,
lat: nLat,
},
bottom_right: {
lon: eLon,
lat: sLat,
},
};
}

export function tileToLatitude(y: number, tileCount: number) {
const radians = Math.atan(sinh(Math.PI - (2 * Math.PI * y) / tileCount));
const lat = (180 / Math.PI) * radians;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export const TILE_MAP_VIS_TYPE = 'tile_map';

export enum MapTypes {
ScaledCircleMarkers = 'Scaled Circle Markers',
ShadedCircleMarkers = 'Shaded Circle Markers',
ShadedGeohashGrid = 'Shaded Geohash Grid',
Heatmap = 'Heatmap',
}

Expand Down

0 comments on commit 7bd984b

Please sign in to comment.