How to

Tileserver-php - hosting of maps

TileServer-php - hosting of maps

In case you wish to publish your map online, there is no need for geoserver, map server or ArcGIS for server that are hard to install and maintain.

There is an alternative, tileserver-php, which is easy to use, free of charge and open-source. OGC WMTS standard is implemented for pre-rendered map tiles prepared with MapTiler, GDAL2Tiles, or available as MBTiles. To serve tiles in a standardized way, practically from any ordinary web hosting was never easier. Try a live demo at: http://tileserver.maptiler.com/

Instalation

Download the open source TileServer-php from Github https://github.com/klokantech/tileserver-php, download the zip file, unzip.

Tileserver

Then open your php hosting (you can use a free uploader Cyberduck) and upload the whole folder inside. When uploaded, you can also rename the folder.

Tileserver

Then, just upload your maps created with maptiler. MbTiles are faster to upload, but appear slower to visitors. If you upload your tiles in folders, it takes longer time but the result is a way faster for the visitors of your website.

Tileserver

Open your website on the propper address and you will immediately see the loaded map(s). There are several useful features of this hosting thanks to WMTS standard and Tile.json. Directly you will get dozen of popular web viewers, including Google Maps API, leaflet, open layers, WebGLEarth, Mapbox js with interactivity.

Tileserver

The source codes are ready to copy and paste into your website.

Tileserver

All the maps which you upload can be also directly opened in GIS sotware such as Quantum GIS, ArcGIS or uDig. The TileServer-php comes with step-by-step tutorials how to do that.

Tileserver