![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@acalcutt/tileserver-gl
Advanced tools
Map tile server for JSON GL styles - vector and server side generated raster tiles
Vector and raster maps with GL styles. Server side rendering by Mapbox GL Native. Map tile server for Mapbox GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
Make sure you have Node.js version 10 or above installed (up to node 16 has been tested)
Install tileserver-gl
with server-side raster rendering of vector tiles with npm
npm install -g @acalcutt/tileserver-gl
Now download vector tiles from OpenMapTiles.
curl -o zurich_switzerland.mbtiles https://[GET-YOUR-LINK]/extracts/zurich_switzerland.mbtiles
Start tileserver-gl
with the downloaded vector tiles.
tileserver-gl zurich_switzerland.mbtiles
Alternatively, you can use the tileserver-gl-light
package instead, which is pure javascript (does not have any native dependencies) and can run anywhere, but does not contain rasterization on the server side made with MapBox GL Native.
An alternative to npm to start the packed software easier is to install Docker on your computer and then run in the directory with the downloaded MBTiles the command:
docker run --rm -it -v $(pwd):/data -p 8080:80 wifidb/tileserver-gl
This will download and start a ready to use container on your computer and the maps are going to be available in webbrowser on localhost:8080.
On laptop you can use Docker Kitematic and search "tileserver-gl" and run it, then drop in the 'data' folder the MBTiles.
You can read full documentation of this project at https://tileserver.readthedocs.io/.
FAQs
Map tile server for JSON GL styles - vector and server side generated raster tiles
The npm package @acalcutt/tileserver-gl receives a total of 1 weekly downloads. As such, @acalcutt/tileserver-gl popularity was classified as not popular.
We found that @acalcutt/tileserver-gl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.