Serve basemaps
using a bundled config file
This guide shows you how to configure and run the basemaps/server package using a bundled config file. The config file specifies metadata regarding which imagery collections the package can serve from the LINZ AWS S3 bucket.
Configure the basemaps/server
package
The basemaps/server package requires a config file to serve the basemaps system.
To generate the config file yourself, follow the Bundle the basemaps
config file guide. Then, return to this section.
The basemaps/server package also allows you to specify the location of assets (e.g. fonts and sprites) to use when serving the basemaps system.
Note
Specifying this location is not required to serve raster imagery. If you wish to serve vector imagery or view the labels overlay, you will need to specify this location. Otherwise, assets referenced by such layers will not load.
To generate the assets archive yourself, follow the Bundle the basemaps
assets archive guide. Then, return to this section.
Run the basemaps/server
package
At this stage, you should have a path to a config file. You may also have a path to an assets archive. Either of which you are sourcing from the LINZ AWS S3 bucket, or, have generated using the basemaps/cli package.
Path
The basemaps/server package provides a default function to serve the basemaps system. Take note of the following path:
Command
Use one of the following commands to run the basemaps system:
Parameters
Specifies the location of the bundled config file to use.
Specifies the location of the bundled assets archive to use.