Skip to content
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

added tms support #19

Merged
merged 10 commits into from
Mar 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update base.ts
  • Loading branch information
JinIgarashi authored Mar 25, 2024
commit 42fc34db4a89d7f4a5794d843034d0ffe6b82712
2 changes: 1 addition & 1 deletion src/tile/base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios from 'axios';

Check failure on line 1 in src/tile/base.ts

View workflow job for this annotation

GitHub Actions / build

Duplicate identifier 'tms'.
import { WebpMachine, loadBinaryData } from 'webp-hero';
import { lngLatToGoogle, lngLatToTile } from 'global-mercator';

Expand Down Expand Up @@ -131,7 +131,7 @@
const height = this.getValueFromPNG(buffer, tile, lng, lat);
resolve(height);
})
.catch((err) => reject(err));
.catch((err) => reject(err));
});
}

Expand All @@ -143,7 +143,7 @@
* @param b blue
* @param a alfa
*/
protected abstract calc(r: number, g: number, b: number, a: number): number;

Check warning on line 146 in src/tile/base.ts

View workflow job for this annotation

GitHub Actions / build

'r' is defined but never used

Check warning on line 146 in src/tile/base.ts

View workflow job for this annotation

GitHub Actions / build

'g' is defined but never used

Check warning on line 146 in src/tile/base.ts

View workflow job for this annotation

GitHub Actions / build

'b' is defined but never used

Check warning on line 146 in src/tile/base.ts

View workflow job for this annotation

GitHub Actions / build

'a' is defined but never used

/**
* Get RGBA values from coordinates information
Expand Down
Loading