Martin d'Allens
36d3e9d356
chore: apply camelCase to function and variable names
...
Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
2023-11-23 17:08:32 +01:00
Martin d'Allens
f69a2339b8
chore: remove duplicated field names to simplify code
...
Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
2023-11-23 17:08:32 +01:00
Martin d'Allens
345b831edd
chore: convert some promises to async/await
...
Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
2023-11-23 17:08:32 +01:00
Andrew Calcutt
36f63de686
Replace request with axios ( #1043 )
...
* updating to replace request with axios
* swap request with axios in main.js
* fix: update text
Signed-off-by: acalcutt <acalcutt@techidiots.net>
* fix: update package-lock
Signed-off-by: acalcutt <acalcutt@techidiots.net>
* fix: update function name
Signed-off-by: acalcutt <acalcutt@techidiots.net>
* fix: lint
Signed-off-by: acalcutt <acalcutt@techidiots.net>
* fix: update axios
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
---------
Signed-off-by: acalcutt <acalcutt@techidiots.net>
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
Co-authored-by: Michael Jones <michaeljones@Michaels-MacBook-Pro.local>
Co-authored-by: jonesmj8537 <michael.j.jones.ctr@nga.mil>
2023-11-14 15:39:49 -05:00
Andrew Calcutt
a6dadfda28
Add pmtiles support ( #1009 )
...
Adds pmtiles support to TileServer-GL
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
Signed-off-by: Michael Nutt <michael@nuttnet.net>
Co-authored-by: Michael Nutt <michael@nuttnet.net>
2023-10-15 03:03:15 -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
Petr Sloup
09859c10c1
Serve any vector/raster mbtiles, use styles only for osm2vt ( close #51 , #52 )
2016-09-27 17:26:05 +02:00
Petr Sloup
513e2dac8f
Fix incorrect variable name
2016-08-24 16:28:41 +02:00
Petr Sloup
68d997a655
Update to tileserver-gl-styles v0.3.0
2016-08-24 14:05:01 +02:00
Petr Sloup
4c2157842c
Minor fix for autodetected bounds in tilejson
2016-08-24 13:19:36 +02:00
Petr Sloup
e9cad399c9
New "mbtiles://{name}" reference syntax ( #27 )
2016-08-21 10:08:17 +02:00
Petr Sloup
b4d6490e00
Large refactoring of usage (only mbtiles, default styles, ...) ( #27 )
2016-08-20 13:31:11 +02:00
Thomas Efer
b3cb047d3d
set default binding to undefined
...
this will result in default behavior in app.listen within server.js
2016-08-07 11:34:46 +02:00
Thomas Efer
53c1ef5786
Added option to specify network interface binding
2016-08-05 14:28:34 +02:00
Petr Sloup
eb70e8bb0d
Add basic command line options
2016-03-03 11:17:38 +01:00
Petr Sloup
92b502af36
Initial commit
2016-03-02 10:52:02 +01:00