Atto uses Mapbox-GL-Native and gofpdf to render Mapbox vector tiles to PDF files.
-
Download and build Mapbox-GL-Native for your platform.
-
Add the absolute or relative path to the
include
andplatform/default
to the CGO_CXXFLAGS environment variable as-I
flags -
Add the absolute or relative path to the build directory eg:
build/linux-x86_64/Release
to the CGO_LDFLAGS environment variable as-L
flags -
Install mason-js and run
mason-js install
and thenmason-js link
in the atto root directory to download the required dependencies -
go build
to build...
There is a Dockerfile in /docker which details the steps required to set up a build and runtime environment for Atto.