Skip to content

Commit

Permalink
Add a more detailed type definition for getLocationAtPoint(). (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaline committed May 7, 2021
1 parent 212ddf0 commit 38d36ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/web-mercator/src/web-mercator-viewport.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class WebMercatorViewport {
getMapCenterByLngLatPosition({lngLat, pos}: {lngLat: number[], pos: number[]}): number[];

/** @deprecated Legacy method name */
getLocationAtPoint({lngLat, pos}): number[];
getLocationAtPoint({lngLat, pos}: {lngLat: number[], pos: number[]}): number[];

/**
* Returns a new viewport that fit around the given rectangle.
Expand Down

0 comments on commit 38d36ed

Please sign in to comment.