Aggiorna README.md
This commit is contained in:
parent
99eabfb15f
commit
9e853f5598
1 changed files with 35 additions and 34 deletions
43
README.md
43
README.md
|
|
@ -41,20 +41,20 @@ pmtiles
|
||||||
inserire i files pmtlies in data
|
inserire i files pmtlies in data
|
||||||
|
|
||||||
per il 2D nel sito protomaps scaricare
|
per il 2D nel sito protomaps scaricare
|
||||||
|
```
|
||||||
wget -c https://build.protomaps.com/20260217.pmtiles
|
wget -c https://build.protomaps.com/20260217.pmtiles
|
||||||
|
```
|
||||||
|
|
||||||
per il terrain 3D e hillshade
|
per il terrain 3D e hillshade
|
||||||
|
```
|
||||||
wget -c https://download.mapterhorn.com/planet.pmtiles
|
wget -c https://download.mapterhorn.com/planet.pmtiles
|
||||||
|
```
|
||||||
### Download parziale
|
### Download parziale
|
||||||
|
|
||||||
per esempio
|
per esempio
|
||||||
|
```
|
||||||
pmtiles extract https://build.protomaps.com/20260217.pmtiles my_area.pmtiles --bbox=4.742883,51.830755,5.552837,52.256198
|
pmtiles extract https://build.protomaps.com/20260217.pmtiles my_area.pmtiles --bbox=4.742883,51.830755,5.552837,52.256198
|
||||||
|
```
|
||||||
per scaricare 3d solo alpi
|
per scaricare 3d solo alpi
|
||||||
```
|
```
|
||||||
pmtiles extract \
|
pmtiles extract \
|
||||||
|
|
@ -67,47 +67,48 @@ pmtiles extract \
|
||||||
dentro project/public/assets
|
dentro project/public/assets
|
||||||
|
|
||||||
MapLibre GL JS + CSS
|
MapLibre GL JS + CSS
|
||||||
|
```
|
||||||
curl -L https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.js -o maplibre/maplibre-gl.js
|
curl -L https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.js -o maplibre/maplibre-gl.js
|
||||||
curl -L https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css -o maplibre/maplibre-gl.css
|
curl -L https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css -o maplibre/maplibre-gl.css
|
||||||
|
```
|
||||||
PMTiles JS
|
PMTiles JS
|
||||||
|
```
|
||||||
curl -L https://unpkg.com/pmtiles@4.4.0/dist/pmtiles.js -o pmtiles/pmtiles.js
|
curl -L https://unpkg.com/pmtiles@4.4.0/dist/pmtiles.js -o pmtiles/pmtiles.js
|
||||||
|
```
|
||||||
Protomaps basemaps (solo JS runtime per generare i layers)
|
Protomaps basemaps (solo JS runtime per generare i layers)
|
||||||
|
```
|
||||||
curl -L https://unpkg.com/@protomaps/basemaps@5/dist/basemaps.js -o basemaps/basemaps.js
|
curl -L https://unpkg.com/@protomaps/basemaps@5/dist/basemaps.js -o basemaps/basemaps.js
|
||||||
|
```
|
||||||
Glyphs + sprites dal repo ufficiale (ZIP)
|
Glyphs + sprites dal repo ufficiale (ZIP)
|
||||||
|
|
||||||
Apri https://protomaps.github.io/basemaps-assets/ e scarica lo ZIP;
|
Apri https://protomaps.github.io/basemaps-assets/ e scarica lo ZIP;
|
||||||
|
```
|
||||||
wget https://github.com/protomaps/basemaps-assets/archive/refs/heads/main.zip
|
wget https://github.com/protomaps/basemaps-assets/archive/refs/heads/main.zip
|
||||||
unzip main.zip
|
unzip main.zip
|
||||||
|
```
|
||||||
poi estrai in public/assets/fonts e public/assets/sprites/v4
|
poi estrai in public/assets/fonts e public/assets/sprites/v4
|
||||||
- fonts/{fontstack}/{range}.pbf
|
- fonts/{fontstack}/{range}.pbf
|
||||||
- sprites/v4/light.png, light.json, light@2x.png, light@2x.json
|
- sprites/v4/light.png, light.json, light@2x.png, light@2x.json
|
||||||
|
|
||||||
font Noto Sans da scaricare da
|
font Noto Sans da scaricare da
|
||||||
|
```
|
||||||
https://fonts.google.com/
|
https://fonts.google.com/
|
||||||
|
```
|
||||||
in quanto manca la versione Bold
|
in quanto manca la versione Bold
|
||||||
|
|
||||||
poi andare in
|
poi andare in
|
||||||
|
```
|
||||||
https://maplibre.org/font-maker/
|
https://maplibre.org/font-maker/
|
||||||
|
```
|
||||||
convertire solo il font Noto Sans Bold che manca e metterlo in public/assets/fonts
|
convertire solo il font Noto Sans Bold che manca e metterlo in public/assets/fonts
|
||||||
|
|
||||||
## Avviare
|
## Avviare
|
||||||
|
|
||||||
nella dir principale
|
nella dir principale
|
||||||
|
```
|
||||||
sudo docker compose up --build -d
|
sudo docker compose up --build -d
|
||||||
|
```
|
||||||
se si modifica
|
se si modifica
|
||||||
|
```
|
||||||
sudo docker compose down
|
sudo docker compose down
|
||||||
|
```
|
||||||
Loading…
Reference in a new issue