Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
tileserver-gl
Advanced tools
docker run -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl
nvm install 4
)npm install
node src/main.js
Sample data can be downloaded at https://github.com/klokantech/tileserver-gl-data/archive/master.zip
cd
to the directorydocker run -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl
node path/to/repo/src/main.js
)Create config.json
file in the root directory.
The config file can contain definition of several paths where the tiles will be served.
See https://github.com/klokantech/tileserver-gl-data/blob/master/config.json
Note: To specify local mbtiles as source of the vector tiles inside the style, use urls with mbtiles
protocol with path relative to the cwd + options.paths.root + options.paths.mbtiles
. (For example mbtiles://switzerland.mbtiles
)
/styles/{id}.json
(+ array at /styles.json
)
/styles/{id}/sprite[@2x].{format}
/fonts/{fontstack}/{start}-{end}.pbf
/styles/{id}/rendered/{z}/{x}/{y}[@2x].{format}
@2x
(or @3x
) part can be used to render HiDPI (retina) tilespng
, jpg
(jpeg
), webp
/styles/{id}/rendered.json
/styles/{id}/static/{lon},{lat},{zoom}[@{bearing}[,{pitch}]]/{width}x{height}[@2x].{format}
(center-based)/styles/{id}/static/{minx},{miny},{maxx},{maxy}/{width}x{height}[@2x].{format}
(area-based)/styles/{id}/static/auto/{width}x{height}[@2x].{format}
(autofit path -- see below)path
- comma-separated lng,lat
, pipe-separated pairs
5.9,45.8|5.9,47.8|10.5,47.8|10.5,45.8|5.9,45.8
latlng
- indicates the path
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 strokewidth
- width of the strokepadding
- "percetange" padding for fitted endpoints (area-based and path autofit)
0.1
means "add 10% size to each side to make sure the area of interest is nicely visible"/data/{mbtiles}/{z}/{x}/{y}.{format}
/data/{mbtiles}.json
/index.json
(/rendered.json
; /data.json
)FAQs
Map tile server for JSON GL styles - vector and server side generated raster tiles
The npm package tileserver-gl receives a total of 281 weekly downloads. As such, tileserver-gl popularity was classified as not popular.
We found that tileserver-gl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.