Andrew Calcutt
3cab6f1edf
fix: http check + errors
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-13 15:11:08 -04:00
Andrew Calcutt
cd13093a1a
fix: property access on null or undefined
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-13 14:55:30 -04:00
Andrew Calcutt
759e51fe05
fix: remove PMtilesClose
...
I'm not sure this is really needed
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-13 11:01:16 -04:00
Andrew Calcutt
94eae4910f
fix: small case change
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-12 23:23:07 -04:00
Andrew Calcutt
a5cc66729d
refactor: only pass back metadata
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-12 00:26:39 -04:00
Andrew Calcutt
fde9ed96a5
feat: allow web https based pmtiles to be loaded
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:03 -04:00
Andrew Calcutt
3f45c38663
fix: lint
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:03 -04:00
Andrew Calcutt
f13d6e52d9
refactor: rework so remote pmtiles may be possible
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:01 -04:00
Andrew Calcutt
ac87447f29
fix: remove confusing parameter description
...
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
2023-10-11 13:18:01 -04:00
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
08b3a943a6
fix: lint
...
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
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
b2733e2107
chore: remove unused class
...
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
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
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
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
Vinayak Kulkarni
9b64093c42
style: fix lint issues in code 🕺 ( #626 )
...
* style: fix lint issues in code 🕺
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* style: lint fix all files
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* chore: add `keywords` for better reach
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* feat: add `husky` & `commitlint`
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* chore: ignore `public` directory
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* revert: do not lint `public` directory
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* style: fix issues with lint
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* feat: add eslint config
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* feat: add lint-staged
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* style: lint fix all file(s)
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* fix: ignore rules for light version
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* fix: remove unnecessary space
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* chore(deps): update lockfile
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
* style: autofix linting issue(s)
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
2022-11-08 22:56:07 -05:00
Andrew Calcutt
b2bd5eaa96
Convert to esm module syntax ( #606 )
...
* switch to esm module
* Update package.json
* change to maplibre package
* fix tests
* eslint
* remove extra package updates
* Delete package-lock.json
* change 'fs' to 'node:fs'
* put back node 10.
without the package updates this still works
* remove trailing commas
* remove unassociated fix / formatting
* remove unassociated fix
* remove eslint from this PR
* remove unassociated fix
* lint
* Merge remote-tracking branch 'upstream/master' into esm_update
* fix mlgl
* update maplibre-native to new version with arm64
* update minor version
2022-09-28 14:41:55 -04:00
Nathan Gass
edd36dd251
Open mbtiles in readonly mode ( #506 )
2022-09-24 12:17:35 -04:00
acalcutt
efb4b2c915
orig formatting
2022-09-14 21:39:35 -04:00
acalcutt
b4cd42b186
fix spacing
2022-09-14 21:36:03 -04:00
acalcutt
b87a256e20
use original variable name
2022-09-14 21:31:02 -04:00
acalcutt
2362137667
update commander
2022-09-14 21:28:32 -04:00
Petr Sloup
29d3e72dd3
Replace last references to the old repository/dockerhub
2020-03-11 13:57:45 +01:00
Petr Sloup
298d09845d
Add style validation and skip invalid styles
2020-01-07 17:00:08 +01:00
Petr Sloup
e2387d164b
Simplify the startup procedure a little ( #271 )
2019-12-30 17:08:15 +01:00
Yuri Astrakhan
7f8be27844
Update code to ES6
...
* var -> let / const
* [].forEach -> for (... of ...)
* '...' + var -> template strings `...${var}`
* function -> arrow functions `=>`
* use === and !== instead of == and !=
2019-12-21 14:09:20 -05:00
Eric Xanderson
08369a666d
add verbose to options
...
pass verbose to server for better handling of warnings
2019-04-23 20:43:56 -05:00
adrian
9dda95ee8e
let the user define a log file or a log format
...
log file defaults to standard out.
log format defaults to current behavior ('tiny' for production, 'dev' for dev, and not enabled in test)
2019-04-13 11:55:37 -04:00
Maxime Colmant
e8134dfeb0
fix: correctly retrieve the public_url parameter on start
2018-12-26 16:26:49 +01:00
Alban Mouton
c99a1a5425
Merge remote-tracking branch 'klokantech/master' into public_url
...
# Conflicts:
# src/main.js
# src/server.js
2018-12-19 09:53:40 +01:00
Loïc Gasser
45ed8d90ca
Update commander and devDeps, invert default val and function accordingly
2018-08-03 00:05:20 -04:00
Michal Illovsky
45df72df51
Enable silent mode with -s option to not log successful request (status=200)
2018-03-19 13:47:17 +01:00
loicgasser
edff8ce06c
Fix version and positional argument for mbtiles
2018-03-12 11:53:11 +00:00
loicgasser
df05ce3f2a
Add default val in description
2018-03-08 17:55:30 +00:00
loicgasser
a74ca20375
Replace nomnom with commander
2018-03-08 16:05:58 +00:00
Alban Mouton
875521c5a8
add public_url option
2017-10-18 13:51:37 +02:00
Petr Sloup
8fd7a9b42b
Update dependencies to get ready for node v6
2017-06-22 16:37:32 +02:00
Damian Krzeminski
6c23d95feb
add --cors option to allow for optional CORS handling
...
we are using `cors` middleware with default options which works for most
applications, but does not allow for fine tuning (whitelisting origins
etc.)
this change keeps CORS handling as default to preserve compatibility but
also allows for specying `--no-cors` option which makes it possible to
handle CORS in an independent proxy (NGINX, another node app etc.)
2017-04-12 09:43:43 -07:00
Petr Sloup
366380395e
Proper error message when metadata are missing in the mbtiles ( close #147 )
2017-04-11 19:10:40 +02:00
Petr Sloup
63482a2a39
Generate version-based identifier for data when autogenerating config
2017-01-17 21:18:12 +01:00
Petr Sloup
1c401f41a2
Update tests and links to use the new data
2016-12-15 10:51:18 +01:00
Petr Sloup
0018ed9524
Prepare for the new tile schema and compatibility checking
2016-12-14 08:37:17 +01:00
Petr Sloup
0e6c9bfeb0
Improved data name autodetection
2016-12-08 09:41:39 +01:00