Commit graph

896 commits

Author SHA1 Message Date
Andrew Calcutt
0b99d8ddd1 feat: allow 'pmtiles:' in configs. open file less
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:00 -04:00
Andrew Calcutt
98995ab1be chore: formatting
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:00 -04:00
Andrew Calcutt
79b9ebdc08 refactor: remove unneeded for loop
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:00 -04:00
Andrew Calcutt
a346462ae8 refactor: consolidate get byte functions
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:00 -04:00
Andrew Calcutt
19740c83a0 chore: make formatting more consitent
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:59 -04:00
Andrew Calcutt
05fcf78249 fix: remove unneeded code from ReadFileBytes
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:59 -04:00
Andrew Calcutt
0c19728cc2 fix: don't unzip data, it is already done
the pmtiles getZxy function already decompresses the file

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:59 -04:00
Andrew Calcutt
6ff506af99 feat: use cust source so pmtiles func can be used
Custom source only loads requested bytes instead of the whole file like FileAPISource

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:58 -04:00
Andrew Calcutt
445d03d626 feat: show extension in template
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:58 -04:00
Andrew Calcutt
df8861d2a3 fix: undefined tileinfo error
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:58 -04:00
Andrew Calcutt
553f58271e fix: race condition
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:58 -04:00
Andrew Calcutt
a9b5db234f fix: remove fflate , use zlib like other files
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:58 -04:00
Andrew Calcutt
ee49ad05b8 fix: too many open files
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:57 -04:00
Andrew Calcutt
08b3a943a6 fix: lint
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:57 -04:00
Andrew Calcutt
371e757e5b fix: add missing semicolon
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:57 -04:00
Andrew Calcutt
8e6fac11a2 fix: remove unused variable
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:57 -04:00
Andrew Calcutt
2c54da134e fix: make stat variable name more consistent
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:57 -04:00
Andrew Calcutt
d78812d449 fix: simplify other replace
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:57 -04:00
Andrew Calcutt
c4bdf199a7 fix: simplify replace
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:56 -04:00
Andrew Calcutt
18b261c4ad fix: simplify input file loading
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:56 -04:00
Andrew Calcutt
9cebc4459c fix: remove unused variables
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:56 -04:00
Andrew Calcutt
93d91b35b9 fix: put back default windows support
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:55 -04:00
Andrew Calcutt
4229a0cb04 fix: bounds and center breaking index image
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:55 -04:00
Andrew Calcutt
1b2b79113b chore: remove unneeded console.logs
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:54 -04:00
Andrew Calcutt
85290024a9 feat: get maplibre-native to render a png tile
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:54 -04:00
Andrew Calcutt
b2733e2107 chore: remove unused class
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:54 -04:00
Andrew Calcutt
07b0f8b306 fix: put back linux order of sharp and canvas
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:54 -04:00
Andrew Calcutt
c0b30d13be chore: lint
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:54 -04:00
Andrew Calcutt
250c38bc98 chore: update package.lock
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:54 -04:00
Andrew Calcutt
c295ae4b6a feat: add --file option to replace mbtiles
Get mbtiles load working again

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:53 -04:00
Andrew Calcutt
9e76cc4a5e fix: bounds and centerzoom
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:53 -04:00
Andrew Calcutt
4772f0efdc feat: move pmtiles to it's own file
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:53 -04:00
Andrew Calcutt
ca51104ece feat: get vector tiles to serve
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:53 -04:00
Andrew Calcutt
61f3306a2d fix: format, bounds, center
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:53 -04:00
Andrew Calcutt
f7582ba822 feat: move bounds, center, minzoom, maxzoom
move into metadata

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:52 -04:00
Andrew Calcutt
47a0c09fd2 feat: read only bytes needed for header and metadata
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:51 -04:00
Andrew Calcutt
f38ba7fe2a feat: add BufferToArrayBuffer function
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:51 -04:00
Andrew Calcutt
1984c143ac Revert "feat: failed attempt to load big files"
This reverts commit 727187bd7a2327c9df0b62bbf04cfc523554996f.
2023-10-11 13:17:51 -04:00
Andrew Calcutt
b1488c65bc feat: failed attempt to load big files
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:50 -04:00
Andrew Calcutt
3df423e55f feat: generate tilejson from pmtiles
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:49 -04:00
Andrew Calcutt
8031f94ca4 feat: move pmtiles reading to utils
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:49 -04:00
Andrew Calcutt
ccd1dbf343 feat: try to read pmtiles file
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:17:49 -04:00
Craig Kochis
d4a5cc6074
Add support for stylized attribution text for static images (#1005)
* add support for stylized attribution text for static images

* restrict to static opt_mode

* adjust sizes

* chore: fix lint

Signed-off-by: Craig Kochis <cjkochis@gmail.com>

* chore: rename to staticAttributionText

Signed-off-by: Craig Kochis <cjkochis@gmail.com>

* chore: update docs

Signed-off-by: Craig Kochis <cjkochis@gmail.com>

* chore: add staticAttributionText to example config, and run lint

Signed-off-by: Craig Kochis <cjkochis@gmail.com>

---------

Signed-off-by: Craig Kochis <cjkochis@gmail.com>
2023-10-07 20:30:47 -04:00
dependabot[bot]
816ed29a0f
chore(deps-dev): Bump eslint from 8.50.0 to 8.51.0 (#1008)
Bumps [eslint](https://github.com/eslint/eslint) from 8.50.0 to 8.51.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.50.0...v8.51.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 22:29:39 +00:00
dependabot[bot]
592beaab29
chore(deps-dev): Bump @commitlint/cli from 17.7.1 to 17.7.2 (#1001)
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.7.1 to 17.7.2.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.7.2/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-28 23:08:02 +00:00
dependabot[bot]
5e666758d6
chore(deps-dev): Bump chai from 4.3.9 to 4.3.10 (#1000)
Bumps [chai](https://github.com/chaijs/chai) from 4.3.9 to 4.3.10.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.9...v4.3.10)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-28 22:56:02 +00:00
dependabot[bot]
1b97491739
chore(deps-dev): Bump chai from 4.3.8 to 4.3.9 (#998)
Bumps [chai](https://github.com/chaijs/chai) from 4.3.8 to 4.3.9.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.8...v4.3.9)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-27 22:31:59 +00:00
Andrew Calcutt
55c21459f2 docs: reformat path docs
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-09-27 02:18:34 -04:00
Andrew Calcutt
75d439fe85 docs: reformat path docs
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-09-27 02:08:03 -04:00
Andrew Calcutt
18f76d3b2d docs: try to fix link
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-09-27 01:18:26 -04:00