diff --git a/README_light.md b/README_light.md index 2e019ff..c969679 100644 --- a/README_light.md +++ b/README_light.md @@ -28,8 +28,8 @@ docker build -t tileserver-gl-light . [Download from OpenMapTiles.com](https://openmaptiles.com/downloads/planet/) or [create](https://github.com/openmaptiles/openmaptiles) your vector tile, and run following in directory contains your *.mbtiles. ``` -docker run --rm -it -v $(pwd):/data -p 8000:80 tileserver-gl-light +docker run --rm -it -v $(pwd):/data -p 8080:8080 tileserver-gl-light ``` ## Documentation -You can read full documentation of this project at https://tileserver.readthedocs.io/. \ No newline at end of file +You can read full documentation of this project at https://maptiler-tileserver.readthedocs.io/ diff --git a/docs/config.rst b/docs/config.rst index 9cd8620..9078d99 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -132,6 +132,19 @@ If you have plenty of memory, try setting these equal to or slightly above your If you need to conserve memory, try lower values for scale factors that are less common. Default is ``[16, 8, 4]``. +``pbfAlias`` +------------------------ + +Some CDNs did not handle .pbf extension as a static file correctly. +The default URLs (with .pbf) are always available, but an alternative can be set. +An example extension suffix would be ".pbf.pict". + +``serveAllFonts`` +------------------------ + +If this option is enabled, all the fonts from the ``paths.fonts`` will be served. +Otherwise only the fonts referenced by available styles will be served. + ``serveAllStyles`` ------------------------ @@ -139,10 +152,16 @@ If this option is enabled, all the styles from the ``paths.styles`` will be serv The process will also watch for changes in this directory and remove/add more styles dynamically. It is recommended to also use the ``serveAllFonts`` option when using this option. +``serveStaticMaps`` +------------------------ + +If this option is enabled, all the static map endpoints will be served. +Default is ``true``. + ``watermark`` ----------- -Optional string to be rendered into the raster tiles (and static maps) as watermark (bottom-left corner). +Optional string to be rendered into the raster tiles and static maps as watermark (bottom-left corner). Not used by default. ``staticAttributionText`` diff --git a/docs/endpoints.rst b/docs/endpoints.rst index cfed7f0..d025e46 100644 --- a/docs/endpoints.rst +++ b/docs/endpoints.rst @@ -52,14 +52,14 @@ Static images * can be provided multiple times - * ``latlng`` - indicates coordinates are in ``lat,lng`` order rather than the usual ``lng,lat`` - * ``fill`` - color to use as the fill (e.g. ``red``, ``rgba(255,255,255,0.5)``, ``#0000ff``) - * ``stroke`` - color of the path stroke - * ``width`` - width of the stroke - * ``linecap`` - rendering style for the start and end points of the path - * ``linejoin`` - rendering style for overlapping segments of the path with differing directions - * ``border`` - color of the optional border path stroke - * ``borderwidth`` - width of the border stroke (default 10% of width) + * ``latlng`` - indicates coordinates are in ``lat,lng`` order rather than the usual ``lng,lat`` for paths and markers + * ``fill`` - default color to use as the fill (e.g. ``red``, ``rgba(255,255,255,0.5)``, ``#0000ff``) for all paths + * ``stroke`` - default color of the path stroke for all paths + * ``width`` - default width of the stroke for all paths + * ``linecap`` - rendering style for the start and end points of all paths - see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap + * ``linejoin`` - rendering style for joining successive segments of all paths when the direction changes - see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin + * ``border`` - color of the optional border stroke for all paths ; the border is like a halo around the stroke + * ``borderwidth`` - width of the border stroke (default 10% of stroke width) for all paths * ``marker`` - Marker in format ``lng,lat|iconPath|option|option|...`` * Will be rendered with the bottom center at the provided location