Standard web server
On a standard hosting (such as an ordinary company webserver) you can very simply host your maps. Just load the directory with tiles to your web hosting and the layer is automatically available.
Once uploaded, the produced maps can be opened in any viewer supporting the OGC WMTS standard.
For hosting of MBTiles, you can use an open-source TileServer, that can be used with any standard hosting that supports PHP. Upload the created maps and get dozens of popular web viewers with interactivity, including Google Maps API, Leaflet, OpenLayers, WebGL Earth, and MapBox JS. There is a standalone how-to describing the whole process of hosting with TileServer.
The CloudPush command can be used for upload to Amazon S3, Google Cloud Storage, or Microsoft Azure Blob hosting. Examples are shown on the S3. If you need to use Google Cloud Storage or Microsoft Azure Blob, just change the “s3” to “gs” or “az”, respectively. Full how-to with visual examples is available as a how-to article.
Cloud Push instance is initialized with the first uploaded map via this command-line utility. It automatically creates an empty index.json, TileServer in index.html, and sets WebSite configuration for this bucket. To get the required credentials, see the section Access credentials below.
Upload tiles from an MBTiles file to S3
List all maps in the cloud push tile storage
Delete a map
Delete whole cloud push storage
The Amazon access and the secure key are available via the IAM service administration interface. The credentials for Google Cloud Storage are under “Enable interoperable access” in the menu of the service. The Azure Blob Storage requires the Storage account name as Access Key and the Key from the Microsoft Azure Portal - Storage Accounts - Access keys.
Instead of providing the access credentials in every command, these can be set as system environment variables.
Example on Windows OS:
Example on Linux / macOS:
and call the utility without these arguments:
It is possible to use further options such as:
A list of available parameters can be displayed by running ./cloudpush without any parameter
Example for using custom basename:
uploads tiles with URL format: myfile/z/x/y.ext. Custom basename contains directory separators (slash), for example:
result will have URL in format: year/month/myfile/z/x/y.ext.
Region-specific hosting can be set up via environment variable AWS_BUCKET_REGION=[value] or with parameter -R [value].
Example for EU (Ireland) region:
The list of S3 regions is provided by the utility with –more-help argument or visible at: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
To enable uploading tiles into Azure Storage Emulator, you need to pass the parameter –emulator for each command:
Example for emulator does not require credentials:
Azure Storage uses the API of the version 2015-02-21.