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
includeandplatform/defaultto the CGO_CXXFLAGS environment variable as-Iflags -
Add the absolute or relative path to the build directory eg:
build/linux-x86_64/Releaseto the CGO_LDFLAGS environment variable as-Lflags -
Install mason-js and run
mason-js installand thenmason-js linkin the atto root directory to download the required dependencies -
go buildto build...
There is a Dockerfile in /docker which details the steps required to set up a build and runtime environment for Atto.