OpenMapTiles

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — OpenMapTiles
· Afrikaans · Alemannisch · aragonés · asturianu · Aymar aru · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · bamanankan · Bân-lâm-gú · Basa Jawa · Basa Sunda · Baso Minangkabau · bosanski · brezhoneg · català · čeština · corsu · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · Latina · latviešu · Lëtzebuergesch · lietuvių · Limburgs · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tagalog · Tiếng Việt · Türkçe · Türkmençe · Vahcuengh · vèneto · walon · Wolof · Yorùbá · Zazaki · isiZulu · српски / srpski · авар · Аҧсшәа · башҡортса · беларуская · български · қазақша · Кыргызча · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · भोजपुरी · मराठी · संस्कृतम् · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · བོད་ཡིག · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 中文(繁體)‎ · 吴语 · 粵語 · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް
OpenMapTiles
Screenshot of OpenMapTiles
Author: Klokan Technologies and other contributors.
License: BSD
Platforms: Windows, Linux, macOS, and Docker
Website: https://openmaptiles.org/
Source code: https://github.com/openmaptiles

OpenMapTiles using the KlokanTech Streets style

OpenMapTiles is a project aiming to create world maps from open data. It consists of a set of tools allowing everyone to create his own vector map tiles from OpenStreetMap data for hosting, self-hosting or offline use. It is available as free software on OpenMapTiles.org. There is also spin-off project OpenMapTiles.com with ready-to-use pre-generated map tiles and TileHosting.com for map hosting.

Components

The OpenMapTiles project consists of several components. The major ones are Open Vector Tile Schema, tools for creating vector tiles from OSM data and Open Map Styles.

Open Vector Tile Schema describes data layers and attributes. It is documented and easily extendable.

Tools for creating vector tiles from OSM data takes OSM data as an input and produces MBTiles containing PBF as an output.

Open Map Styles are ready-to-use map styles for vector scheme. They are available under a free license and therefore can be modified and reused.

Displaying map

The final map can be displayed in the browser using most popular JavaScript libraries like Mapbox GL JS, OpenLayers, Leaflet, in mobile applications using Mapbox GL Native (for both Android and iOS), using WMTS and WMS services or as a static map for print and export.

OpenMapTiles on-the-fly language change

Languages

OpenMapTiles supports more than 50 languages. The names are taken from OpenStreetMap and enhanced by adding data from Wikidata. There is an option to display names in a selected language, a native language for each country or combination of selected and native language.

Styling

The big advantage of vector tiles is a separation of data and styles. Therefore it is possible to use the same data with more styles, which can be adjusted on-the-fly.

OpenMapTiles use Mapbox Style Specification, where a style is a JSON object.

{
   "id": "building",
   "type": "fill",
   "source": "openmaptiles",
   "source-layer": "building",
   "minzoom": 4,
   "paint": {
     "fill-color": "#ccc",
     "fill-outline-color": "#333",
     "fill-opacity": 0.5
   }
 }
Maputnik color adjustment

The style can be edited in any text editor or visually in Maputnik, which is an open-source visual style editor.

Supported coordinate systems

OpenMapTiles also supports other coordinate systems than Mercator. The result is compatible with JavaScript viewers, mobile SDK, as WMTS or WMS, …

OpenMapTiles Map Server

OpenMapTiles Map Server is software package for Docker, which contains all the parts of OpanMapTiles you need for running your own map. The setup is easy and straightforward, so you can serve your own maps in less than 10 minutes.

Installation

There is graphical setup for Windows and Mac called Kitematic. On Linux, all you have to do is to run those two commands as root:

curl -sSL https://get.docker.com/ | sh

docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/openmaptiles-server

The first script will download and install Docker, the second will run OpenMapTiles Map Server on your localhost on port 8080.

Once installed, there is web wizard for settings, where you can choose which region you want to serve, the style used, and if you want to run additional services.

OpenMapTiles.com

Since rendering own tiles is time and resource consuming, OpenMapTiles.com offers pre-rendered tiles for the whole world.

There is a free plan for open-source and open-data websites, non-commercial personal projects, testing purposes as well as the paid ones, which comes with premium styles, hillshading, contour lines, terrain model and satellite imagery.

Tiles can be selected by regions, countries, continents or whole planet, there is also an option for extract defined by bounding box.

TileHosting

TileHosting.com is hosting map tiles from OpenMapTiles.com. It is run by Klokan Technologies. It provides vector tiles (for Mapbox SDK, native MVT clients) as well as raster tiles (Leaflet, OpenLayers, XYZ), map WMTS services for QGIS and ArcGIS and static maps for thumbnailing or output printing.

The policy is similar to the OpenMapTiles.com: there is a free plan for non-commercial and testing purposes as well as the paid one, which comes with premium styles, hillshading, contour lines and satellite imagery.

The whole service is cached on CDN with more than 100 places. The core runs in two fully redundant datacenters in Europe and North America, it has DDOS protection and load-balancer with failover and more.

Source code

OpenMapTiles is developed by Klokan Technologies and available as free software under a combination of BSD and MIT licenses.

It is the successor of OSM2VectorTiles, which was a student bachelor thesis at HSR Rapperswil.

The source code is available on GitHub.

Bug reporting

Bug reports, as well as other issues, should be reported through the GitHub repositories.