Tileserver-GL
Tileserver-GL is an open-source vector tile server that can serve vector tiles (such as Mapbox Style tiles or GeoJSON) and raster tiles. It provides fast rendering and efficient tile serving for web mapping applications. It supports the integration of custom map styles and can be used with various mapping libraries like Mapbox GL JS and Leaflet.
Using TileServer-GL
To get started with TileServer-GL, follow these simple steps:
Access the TileServer-GL Web Interface
From the Hub, you will be able to see the TileServer-GL web interface, which provides an overview of your available tile sets and map styles.
Access Tile URLs
Once your tiles are set up, you can access them at URLs such as:
- Vector Tiles:
https://tileserver-gl.domain/styles/{style}/tiles/{z}/{x}/{y}.pbf - Raster Tiles:
https://tileserver-gl.domain/tiles/{z}/{x}/{y}.png
Using Tiles in a Map Application
In your map application, use a mapping library like Mapbox GL JS to load the tiles. Example using Mapbox GL JS:
mapboxgl.accessToken = 'your-access-token';
var map = new mapboxgl.Map({
container: 'map',
style: 'http://tileserver-gl.domain/styles/your-style.json'
});