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.
Download and copy this repository to /site/plugins/tiles
.
git submodule add https://github.com/hananils/kirby-tiles.git site/plugins/tiles
composer require hananils/kirby-tiles
Upload your map style and your tiles using Kirby's files fields. The following routes are provided:
/tiles/{{ parent.page }}/styles/{{ filename }}.json
/tiles/{{ parent.page }}/tilejson/{{ filename }}.json
/tiles/{{ parent.page }}/vector/{{ filename }}/{{ z }}/{{ x }}/{{ y }}.pbf
More information on how to create styles and generate tyles can be found at https://openmaptiles.org.
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.