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

Add pmtiles support #1009

Merged
merged 99 commits into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from 75 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
ccd1dbf
feat: try to read pmtiles file
acalcutt Oct 6, 2023
8031f94
feat: move pmtiles reading to utils
acalcutt Oct 6, 2023
3df423e
feat: generate tilejson from pmtiles
acalcutt Oct 6, 2023
b1488c6
feat: failed attempt to load big files
acalcutt Oct 7, 2023
1984c14
Revert "feat: failed attempt to load big files"
acalcutt Oct 7, 2023
f38ba7f
feat: add BufferToArrayBuffer function
acalcutt Oct 7, 2023
47a0c09
feat: read only bytes needed for header and metadata
acalcutt Oct 7, 2023
f7582ba
feat: move bounds, center, minzoom, maxzoom
acalcutt Oct 7, 2023
61f3306
fix: format, bounds, center
acalcutt Oct 7, 2023
ca51104
feat: get vector tiles to serve
acalcutt Oct 7, 2023
4772f0e
feat: move pmtiles to it's own file
acalcutt Oct 7, 2023
9e76cc4
fix: bounds and centerzoom
acalcutt Oct 7, 2023
c295ae4
feat: add --file option to replace mbtiles
acalcutt Oct 7, 2023
250c38b
chore: update package.lock
acalcutt Oct 7, 2023
c0b30d1
chore: lint
acalcutt Oct 7, 2023
07b0f8b
fix: put back linux order of sharp and canvas
acalcutt Oct 7, 2023
b2733e2
chore: remove unused class
acalcutt Oct 8, 2023
8529002
feat: get maplibre-native to render a png tile
acalcutt Oct 8, 2023
1b2b791
chore: remove unneeded console.logs
acalcutt Oct 8, 2023
4229a0c
fix: bounds and center breaking index image
acalcutt Oct 8, 2023
93d91b3
fix: put back default windows support
acalcutt Oct 8, 2023
9cebc44
fix: remove unused variables
acalcutt Oct 8, 2023
18b261c
fix: simplify input file loading
acalcutt Oct 8, 2023
c4bdf19
fix: simplify replace
acalcutt Oct 8, 2023
d78812d
fix: simplify other replace
acalcutt Oct 8, 2023
2c54da1
fix: make stat variable name more consistent
acalcutt Oct 8, 2023
8e6fac1
fix: remove unused variable
acalcutt Oct 8, 2023
371e757
fix: add missing semicolon
acalcutt Oct 8, 2023
08b3a94
fix: lint
acalcutt Oct 8, 2023
ee49ad0
fix: too many open files
acalcutt Oct 8, 2023
a9b5db2
fix: remove fflate , use zlib like other files
acalcutt Oct 8, 2023
553f582
fix: race condition
acalcutt Oct 8, 2023
df8861d
fix: undefined tileinfo error
acalcutt Oct 8, 2023
445d03d
feat: show extension in template
acalcutt Oct 9, 2023
6ff506a
feat: use cust source so pmtiles func can be used
acalcutt Oct 9, 2023
0c19728
fix: don't unzip data, it is already done
acalcutt Oct 9, 2023
05fcf78
fix: remove unneeded code from ReadFileBytes
acalcutt Oct 9, 2023
19740c8
chore: make formatting more consitent
acalcutt Oct 9, 2023
a346462
refactor: consolidate get byte functions
acalcutt Oct 9, 2023
79b9ebd
refactor: remove unneeded for loop
acalcutt Oct 9, 2023
98995ab
chore: formatting
acalcutt Oct 9, 2023
0b99d8d
feat: allow 'pmtiles:' in configs. open file less
acalcutt Oct 10, 2023
e9459b9
fix: put back linux ordering
acalcutt Oct 10, 2023
ac87447
fix: remove confusing parameter description
acalcutt Oct 10, 2023
f13d6e5
refactor: rework so remote pmtiles may be possible
acalcutt Oct 10, 2023
2ea3515
fix: reorder functions
acalcutt Oct 10, 2023
3f45c38
fix: lint
acalcutt Oct 10, 2023
fde9ed9
feat: allow web https based pmtiles to be loaded
acalcutt Oct 10, 2023
8006707
fix: issue with files outside the root directory
acalcutt Oct 11, 2023
3691975
fix: make it so pmtiles:// can be used in styles
acalcutt Oct 11, 2023
36cc712
fix: rendering failing due to wrong name
acalcutt Oct 12, 2023
5ce9ddd
fix: undefine tiles / Conent-Type
acalcutt Oct 12, 2023
a5cc667
refactor: only pass back metadata
acalcutt Oct 12, 2023
81e4011
fix: add bounds and center when they don't exist
acalcutt Oct 12, 2023
1d2e9ea
fix: remove console.log
acalcutt Oct 12, 2023
9f79c25
fix: constant code ql error
acalcutt Oct 12, 2023
e66360c
fix: cannot access source
acalcutt Oct 12, 2023
68168ce
fix: lint
acalcutt Oct 12, 2023
5f1b281
fix: change center
acalcutt Oct 12, 2023
bf4dbf3
fix: do shallow clone of arrays for index page
acalcutt Oct 13, 2023
b199901
fix: center
acalcutt Oct 13, 2023
49d49e6
fix: lint
acalcutt Oct 13, 2023
979f841
fix: http pmtiles not working in style
acalcutt Oct 13, 2023
950db94
style: capitalization
mnutt Oct 13, 2023
755c470
style: minor clone refactoring
mnutt Oct 13, 2023
94eae49
fix: small case change
acalcutt Oct 13, 2023
ee7dbce
Merge remote-tracking branch 'mnutt/mn/pmtiles' into pmtiles
acalcutt Oct 13, 2023
38c98f5
fix: put back older node compatibility
acalcutt Oct 13, 2023
fa7ab7f
fix: lint
acalcutt Oct 13, 2023
a24a48b
fix: try to support pmtiles with fromdata set
acalcutt Oct 13, 2023
d95e8a1
fix: update syntax, use inbuilt buffer funcs
acalcutt Oct 13, 2023
371bde7
fix: lint
acalcutt Oct 13, 2023
759e51f
fix: remove PMtilesClose
acalcutt Oct 13, 2023
4b05f36
fix: simplify source to data mapping
acalcutt Oct 13, 2023
f56cdeb
fix: undefined url
acalcutt Oct 13, 2023
f4371c9
fix: wrong filetype position
acalcutt Oct 13, 2023
29e8509
fix: implicit string warning
acalcutt Oct 13, 2023
cd13093
fix: property access on null or undefined
acalcutt Oct 13, 2023
3cab6f1
fix: http check + errors
acalcutt Oct 13, 2023
f85d44f
fix: lint
acalcutt Oct 13, 2023
85ec8e4
fix: simplify property check
acalcutt Oct 13, 2023
446038e
Merge remote-tracking branch 'upstream/master' into pmtiles
acalcutt Oct 14, 2023
694b21a
fix: update package-lock
acalcutt Oct 14, 2023
f2d7e44
Merge remote-tracking branch 'upstream/master' into pmtiles
acalcutt Oct 14, 2023
a106fec
fix: get data sources specified in style to work
acalcutt Oct 15, 2023
ccad485
docs: update docs
acalcutt Oct 15, 2023
c866de4
docs: update docs
acalcutt Oct 15, 2023
065b374
fix: match docs source behavior
acalcutt Oct 15, 2023
d0ba661
docs: try to clarify
acalcutt Oct 15, 2023
c64c077
feat: allow multiple urls with same filename
acalcutt Oct 15, 2023
c9ea918
docs: add pmtiles license to licenses
acalcutt Oct 15, 2023
92d0615
docs: update docs
acalcutt Oct 15, 2023
f786989
fix: data name on template , reformat
acalcutt Oct 15, 2023
fd2ffac
fix: move hash to front of identifier
acalcutt Oct 15, 2023
4549b27
fix: lint
acalcutt Oct 15, 2023
07865a3
docs: reword
acalcutt Oct 15, 2023
f1be7d2
fix: make id consitant
acalcutt Oct 15, 2023
dbdf2a1
fix: remove unneeded extension I added
acalcutt Oct 15, 2023
fa3dac4
fix: missing variable
acalcutt Oct 15, 2023
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
42 changes: 28 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"http-shutdown": "1.2.2",
"morgan": "1.10.0",
"pbf": "3.2.1",
"pmtiles": "2.11.0",
"proj4": "2.9.0",
"request": "2.88.2",
"sanitize-filename": "1.6.3",
Expand Down
2 changes: 1 addition & 1 deletion public/templates/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
{{/if}}
<div class="details">
<h3>{{name}}</h3>
<p class="identifier">identifier: {{@key}}{{#if formatted_filesize}} | size: {{formatted_filesize}}{{/if}} | type: {{#is_vector}}vector{{/is_vector}}{{^is_vector}}raster{{/is_vector}} data</p>
<p class="identifier">identifier: {{@key}}{{#if formatted_filesize}} | size: {{formatted_filesize}}{{/if}} | type: {{#is_vector}}vector{{/is_vector}}{{^is_vector}}raster{{/is_vector}} data {{#if source_type}} | ext: {{source_type}}{{/if}}</p>
<p class="services">
services: <a href="{{public_url}}data/{{@key}}.json{{&../key_query}}">TileJSON</a>
{{#if wmts_link}}
Expand Down
Loading
Loading