Commit 01dd72e5 authored by onny's avatar onny
Browse files

add Makefile to fetch tileserver and fonts, run npm install

parent cb5f775f
.PHONY: all
all:
ifneq ($(wildcard tileserver/*),)
cd tileserver
git pull
cd ..
else
git clone https://github.com/maptiler/tileserver-php.git tileserver
endif
ifneq ($(wildcard fonts/*),)
cd fonts && git pull
else
git clone https://github.com/klokantech/klokantech-gl-fonts.git fonts
endif
npm install
# Installation
## Generate vector tiles
Requires a working Docker installation.
```
cd openmaptiles
make
```
Change file ``.env``:
```
[...]
BBOX=7.893, 48.73, 8.816, 49.246
# Which zooms to generate in make generate-tiles
MIN_ZOOM=0
MAX_ZOOM=14
[...]
```
npm install
```
make list-geofabrik
./quickstart.sh europe/germany/baden-wuerttemberg/karlsruhe-regbez
```
```
make start-tileserver
```
```
cp ./data/tiles.mbtiles ./data/karlsruhe.mbtiles
```
## Setup maplibre-gl example
Requires ``git``, ``nodejs`` and ``npm`` to be installed.
```
git clone https://git.project-insanity.org/onny/maplibre-gl-js-selfhosted-example.git
cd maplibre-gl-js-selfhosted-example
make
```
```
mv ../openmaptiles/data/karlsruhe.mbtiles tileserver/
```
fonts.openmaptiles.org
(
Klokantech Noto Sans Bold 10240-10495
\ No newline at end of file
(
Klokantech Noto Sans Bold 10752-11007
\ No newline at end of file
(
Klokantech Noto Sans Bold 11008-11263
\ No newline at end of file
(
Klokantech Noto Sans Bold 12032-12287
\ No newline at end of file
(
Klokantech Noto Sans Bold 12288-12543
\ No newline at end of file
(
Klokantech Noto Sans Bold 12544-12799
\ No newline at end of file
(
Klokantech Noto Sans Bold 12800-13055
\ No newline at end of file
(
Klokantech Noto Sans Bold 13056-13311
\ No newline at end of file
(
Klokantech Noto Sans Bold 13312-13567
\ No newline at end of file
(
Klokantech Noto Sans Bold 13568-13823
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment