=================== Available endpoints =================== If you visit the server on the configured port (default 8080) you can see your maps appearing in the browser. Styles ====== * Styles are served at ``/styles/{id}.json`` (+ array at ``/styles.json``) * Sprites at ``/styles/{id}/sprite[@2x].{format}`` * Fonts at ``/fonts/{fontstack}/{start}-{end}.pbf`` Rendered tiles ============== * Rendered tiles are served at ``/styles/{id}/rendered/{z}/{x}/{y}[@2x].{format}`` * The optional ``@2x`` (or ``@3x``) part can be used to render HiDPI (retina) tiles * Available formats: ``png``, ``jpg`` (``jpeg``), ``webp`` * TileJSON at ``/styles/{id}/rendered.json`` Static images ============= * Several endpoints: * ``/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) * All the static image endpoints additionally support following query parameters: * ``path`` - comma-separated ``lng,lat``, pipe-separated pairs * e.g. ``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 stroke * ``width`` - width of the stroke * ``padding`` - "percetange" padding for fitted endpoints (area-based and path autofit) * value of ``0.1`` means "add 10% size to each side to make sure the area of interest is nicely visible" Source data =========== * Source data are served at ``/data/{mbtiles}/{z}/{x}/{y}.{format}`` * TileJSON at ``/data/{mbtiles}.json`` TileJSON arrays =============== Array of all TileJSONs is at ``/index.json`` (``/rendered.json``; ``/data.json``)