-
Notifications
You must be signed in to change notification settings - Fork 3
Add vector tile support in completeness project #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f5ee940 to
d407c4c
Compare
95d3f41 to
9a5f9cb
Compare
9a5f9cb to
2f58bf5
Compare
| return (180 / Math.PI) * Math.atan(0.5 * (Math.exp(n) - Math.exp(-n))); | ||
| } | ||
|
|
||
| export interface GeoJsonProps { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can be a bit more explicit about the name here.
E.g. TileMapServiceGeoJsonProps
| reference?: number | undefined, | ||
| } | ||
|
|
||
| export function createGeoJsonFromTasks( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can be a bit more explicit about the name here.
| const sorted = tasks.sort( | ||
| (a, b) => (a.taskId > b.taskId ? 1 : -1), | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorting tasks using sort() will most probably mutate the list
| const usableHeight = window.innerHeight - 300; | ||
| const maxTileHeight = Math.floor(usableHeight / ROWS_PER_PAGE); | ||
| const tentetiveNumTiles = Math.max( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const tentetiveNumTiles = Math.max( | |
| const tentativeNumTiles = Math.max( |
tnagorra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added some minor comments.
|
Closing in favor of #76 |
No description provided.