Host a map on any PHP hosting

Tileserver-php - Easy to use, free of charge and open-source hosting of your maps

Publishing own map on any PHP hosting is very easy. All you have to do is to copy one file to your web and add the map in MBTiles or Folder structure.

To publish your map online, there is no need for geoserver, map server or ArcGIS 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. There is implemented local OGC WMTS standard for pre-rendered map tiles prepared with MapTiler Desktop, MapTiler Engine, GDAL2Tiles, or available as MBTiles. You can try a live demo with rendered maps at tileserver.maptiler.com

Installation

Download the open source TileServer-php from GitHub and unzip the zip file.

Tileserver

Then open your PHP hosting and upload the whole folder or at least the tileserver.php file inside. You can rename the folder before or after upload if you like.

Tileserver

Then just upload your maps created with MapTiler Desktop. MbTiles is one file per map and therefore faster to upload but appear slower to visitors, especially on high-traffic websites. Upload in Folder structure takes longer but the result is a way faster for the visitors of your website.

Tileserver

Open your website on the address where tileserver.php is running and you will immediately see the list of uploaded maps. Directly you will get dozen of popular web viewers, including Google Maps API, Leaflet, OpenLayers, WebGLEarth, Mapbox GL JS with interactivity and other useful features of this hosting thanks to WMTS standard and Tile.json

Tileserver

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

Tileserver

All the maps which you upload can be also directly opened in GIS software such as QGIS, ArcGIS or uDig. The TileServer-php comes with step-by-step tutorials which are available after opening in the right menu.

Tileserver