1.1.8 • Published 4 months ago

map-glyph-server v1.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 months ago

NPM version Build Status Dependency Status

map-glyph-server

Server for glyph/font files compatible with mapbox-gl-js

Install

$ npm install --global map-glyph-server

Environment

The following environment variables are used by map-glyph-server

  • MAP_GLYPH_SERVER_FONT_PATH - needs to specify the location of the fonts files
  • MAP_GLYPH_SERVER_PORT - local port to which map-glyph-server binds to default: 3060
  • MAP_GLYPH_SERVER_CACHE_MAX_AGE - if specified used as a max-age value of the Cache-Control header when serving font/pbf files (maximum amount of seconds a resource is considered fresh)

/etc/default/map-glyph-server can be used to set environment variables

Usage

Prior to starting the server glyphs should be located in MAP_GLYPH_SERVER_FONT_PATH directory. This can be achieved using openmaptiles/fonts or a similar utility.

In order to use the fonts edit Style JSON and change the endpoint for glyphs:

"glyphs": "https://fonts.example.com/fonts/{fontstack}/{range}.pbf",

License

MIT © Damian Krzeminski

1.1.8

4 months ago

1.1.7

7 months ago

1.1.6

2 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.0

6 years ago