tileserver-gl-light 4.6.0 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ Just run ``docker run --rm -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-
11
11
 
12
12
  Additional options (see :doc:`/usage`) can be passed to the TileServer GL by appending them to the end of this command. You can, for example, do the following:
13
13
 
14
- * ``docker run ... maptiler/tileserver-gl --mbtiles my-tiles.mbtiles`` -- explicitly specify which mbtiles to use (if you have more in the folder)
14
+ * ``docker run ... maptiler/tileserver-gl --file my-tiles.mbtiles`` -- explicitly specify which mbtiles to use (if you have more in the folder)
15
15
  * ``docker run ... maptiler/tileserver-gl --verbose`` -- to see the default config created automatically
16
16
 
17
17
  npm
package/docs/usage.rst CHANGED
@@ -6,28 +6,32 @@ Getting started
6
6
  ======
7
7
  ::
8
8
 
9
- Usage: main.js tileserver-gl [mbtiles] [options]
9
+ Usage: main.js tileserver-gl [file] [options]
10
10
 
11
11
  Options:
12
-
13
- -h, --help output usage information
14
- --mbtiles <file> MBTiles file (uses demo configuration);
15
- ignored if the configuration file is also specified
16
- -c, --config <file> Configuration file [config.json]
17
- -b, --bind <address> Bind address
18
- -p, --port <port> Port [8080]
19
- -C|--no-cors Disable Cross-origin resource sharing headers
20
- -u|--public_url <url> Enable exposing the server on subpaths, not necessarily the root of the domain
21
- -V, --verbose More verbose output
22
- -s, --silent Less verbose output
23
- -v, --version Version info
12
+ --file <file> MBTiles or PMTiles file
13
+ ignored if the configuration file is also specified
14
+ --mbtiles <file> (DEPRECIATED) MBTiles file
15
+ ignored if file is also specified
16
+ ignored if the configuration file is also specified
17
+ -c, --config <file> Configuration file [config.json] (default: "config.json")
18
+ -b, --bind <address> Bind address
19
+ -p, --port <port> Port [8080] (default: 8080)
20
+ -C|--no-cors Disable Cross-origin resource sharing headers
21
+ -u|--public_url <url> Enable exposing the server on subpaths, not necessarily the root of the domain
22
+ -V, --verbose More verbose output
23
+ -s, --silent Less verbose output
24
+ -l|--log_file <file> output log file (defaults to standard out)
25
+ -f|--log_format <format> define the log format: https://github.com/expressjs/morgan#morganformat-options
26
+ -v, --version output the version number
27
+ -h, --help display help for command
24
28
 
25
29
 
26
30
  Default preview style and configuration
27
31
  ======
28
32
 
29
33
  - If no configuration file is specified, a default preview style (compatible with openmaptiles) is used.
30
- - If no mbtiles file is specified (and is not found in the current working directory), a sample file is downloaded (showing the Zurich area)
34
+ - If no data file is specified (and is not found in the current working directory), a sample file is downloaded (showing the Zurich area)
31
35
 
32
36
  Reloading the configuration
33
37
  ======
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tileserver-gl-light",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "Map tile server for JSON GL styles - serving vector tiles",
5
5
  "main": "src/main.js",
6
6
  "bin": "src/main.js",
package/src/server.js CHANGED
@@ -546,11 +546,11 @@ function start(opts) {
546
546
  }
547
547
 
548
548
  return {
549
+ ...style,
549
550
  id,
550
551
  name: (serving.styles[id] || serving.rendered[id]).name,
551
552
  serving_data: serving.styles[id],
552
553
  serving_rendered: serving.rendered[id],
553
- ...style,
554
554
  };
555
555
  });
556
556
 
@@ -583,10 +583,10 @@ function start(opts) {
583
583
  }
584
584
 
585
585
  return {
586
+ ...wmts,
586
587
  id,
587
588
  name: (serving.styles[id] || serving.rendered[id]).name,
588
589
  baseUrl,
589
- ...wmts,
590
590
  };
591
591
  });
592
592
 
@@ -599,9 +599,9 @@ function start(opts) {
599
599
  }
600
600
 
601
601
  return {
602
+ ...data,
602
603
  id,
603
604
  is_vector: data.tileJSON.format === 'pbf',
604
- ...data,
605
605
  };
606
606
  });
607
607