Skip to content

hananils/kirby-tiles

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Kirby Tiles

Tiles is a plugin for Kirby 3 to serve basic vector map tiles (.mbtiles). The plugin provides routes for styles, tilejson and vector tiles that can be used with Maplibre or similar.

Installation

Download

Download and copy this repository to /site/plugins/tiles.

Git submodule

git submodule add https://github.com/hananils/kirby-tiles.git site/plugins/tiles

Composer

composer require hananils/kirby-tiles

File storage and routes

Upload your map style and your tiles using Kirby's files fields. The following routes are provided:

Styles

/tiles/{{ parent.page }}/styles/{{ filename }}.json

TileJSON

/tiles/{{ parent.page }}/tilejson/{{ filename }}.json

Vector tiles

/tiles/{{ parent.page }}/vector/{{ filename }}/{{ z }}/{{ x }}/{{ y }}.pbf

Creating styles and tiles

More information on how to create styles and generate tyles can be found at https://openmaptiles.org.

License

This plugin is provided freely under the MIT license by hana+nils · Büro für Gestaltung.
We create visual designs for digital and analog media.