Skip to content

Commit

Permalink
Smaller Monaco extract snippets (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry authored Oct 25, 2021
1 parent 7420c76 commit d426df8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,33 @@ Or using Docker:
docker run -e JAVA_TOOL_OPTIONS="-Xmx1g" -v "$(pwd)/data":/data ghcr.io/onthegomap/flatmap:latest --download --area=monaco
```

:warning: This starts off by downloading about 1GB of [data sources](NOTICE.md#data) required by the basemap profile
including ~750MB for [ocean polygons](https://osmdata.openstreetmap.de/data/water-polygons.html) and ~240MB
for [Natural Earth Data](https://www.naturalearthdata.com/).

<details>
<summary>To download a smaller extracts just for Monaco:</summary>

Java:

```bash
java -Xmx1g -jar flatmap.jar --download --area=monaco \
--water-polygons-url=https://github.com/onthegomap/flatmap/raw/main/flatmap-core/src/test/resources/water-polygons-split-3857.zip \
--natural-earth-url=https://github.com/onthegomap/flatmap/raw/main/flatmap-core/src/test/resources/natural_earth_vector.sqlite.zip
```

Docker:

```bash
docker run -e JAVA_TOOL_OPTIONS="-Xmx1g" -v "$(pwd)/data":/data ghcr.io/onthegomap/flatmap:latest --download --area=monaco \
--water-polygons-url=https://github.com/onthegomap/flatmap/raw/main/flatmap-core/src/test/resources/water-polygons-split-3857.zip \
--natural-earth-url=https://github.com/onthegomap/flatmap/raw/main/flatmap-core/src/test/resources/natural_earth_vector.sqlite.zip
```

You will need the full data sources to run anywhere besides Monaco.

</details>

#### To view tiles locally:

Using [Node.js](https://nodejs.org/en/download/):
Expand Down

0 comments on commit d426df8

Please sign in to comment.