VersaTiles Frontend is a dynamic, customizable frontend framework designed for interactive map and tile-based applications. It generates tar archives containing frontends that can directly used with e.g. versatiles-rs
or node-versatiles-server
.
To get started with VersaTiles Frontend, clone the repository and install dependencies:
git clone git@github.com:versatiles-org/versatiles-frontend.git
cd versatiles-frontend
npm install
npm run build
This process will generate three distinct frontends:
frontend
, with additional integration for the versatiles-rs
API. (Work in progress)frontend
, excluding developer tools and limited to Noto fonts. (Work in progress)For each frontend, two files are generated:
release/frontend*.tar.gz
: Contains all files in a gzipped tar archive.release/frontend*.br.tar
: Contains all files precompressed with Brotli and packed in an uncompressed tar archive.versatiles-rs
Deploy the frontend with versatiles-rs
by downloading the latest release and serving it:
curl -L "https://github.com/versatiles-org/versatiles-frontend/releases/latest/download/frontend-rust.br.tar" > ./frontend.br.tar
versatiles serve -s ./frontend.br.tar "planet.versatiles"
To run a frontend in developer mode:
npm run dev frontend
Developer mode activates the following actions:
npm run dev frontend-minimal
)http://localhost:8080/
/frontends/
directory and automatically rebuildsVersaTiles Frontend utilizes several external resources and libraries, including but not limited to:
Note: Some external dependencies may require separate installations or configurations.