Less than one year ago, OpenMapTiles open-source project was announced. It simplifies the process of deploying OpenStreetMap maps significantly. However, setting up the whole software toolchain for vector tiles was an obstacle not everybody was able to pass.

Today, we are tearing this barrier down by announcing OpenMapTiles Map Serversoftware which enables everyone to run a map server on his own infrastructure within a few minutes. Setting own map server was seen as an advanced task for skilled admin.

To launch the software you can use a graphical user interface on Windows and Mac or one simple command on any Linux computer. The main task of the OpenMapTiles Map Server is to provide you with vector map tiles, however, it covers more than that.

openmaptiles docker

Backward compatibility with third-party software is important to us. This can be used in libraries such as Leaflet or other tools. If you think about a map, one of the first thoughts is the appearance.

By default, there is set of four free and open-source styles. However, if you want to make any change in the style, there is a visual editor where changes are immediately visible. You can also upload your own style in JSON format. The cartography decisions are encoded by the Vector Tile Schema, which is fully free and open-source. OpenMapTiles Map Server comes with built-in support for more than 50 languages. You can easily switch between them and again.

The dual language option is supported, which can be useful especially in the countries where Latin is not the main script. OpenMapTiles was already a giant leap forward in making maps based on OpenStreetMap accessible to a broader audience.

OpenMapTiles Map Server goes even further and with help of Docker, you can serve your own map within few minutes using minimum knowledge. It helps experienced admins to minimize their workload and allows to start serving map tiles to novices with minimal or even no administration knowledge. For Docker installation there is basic setup available on Windows and Mac, for Linux users, there is the single command you just have to copy and paste into a terminal.

Once you install Docker, run openmaptiles-server container either from a terminal or in Kitematic GUI. It will start a web server, which is available on localhost. In the web wizard, select the area you want to display, style, and language and the map can be directly displayed on websites with JavaScript viewers, used in native mobile applications on Android and iOS even offlineor turned into traditional raster tiles or high-resolution images for printing.

There are ready-to-use vector tiles from OpenMapTiles. You can add to your map contour lines, hillshading or additional satellite layer.

Map setup in a few steps. OpenMapTiles is an open-source set of tools for deployment of maps. Originally developed by Klokan Technologies and launched early this year, it undergoes heavy development by both KlokanTech employees as well as growing community. This made OpenMapTiles leading technology for creating and deploying vector tiles.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

How do i write the same in docker-compose file. I am unable to mount the volumes with. Any data you download and the created configuration will be lost once you stop the docker container. Learn more. Asked 1 year, 8 months ago. Active 1 year, 8 months ago. Viewed times. Any help would be much appreciated. Sourav Chatterjee Sourav Chatterjee 1 1 gold badge 7 7 silver badges 18 18 bronze badges. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook.

Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Socializing with co-workers while social distancing. Podcast Programming tutorials can be a real drag. Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap.

Dark Mode Beta - help us root out low-contrast and un-converted bits. Technical site integration observational experiment live on Stack Overflow. Triage needs to be fixed urgently, and users need to be notified upon…. Related Hot Network Questions. Question feed.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

I'm trying to customise OpenMaptiles-Server running under Docker. I've NO docker exposure. I've read the docs and they suggest there is a config file for Docker, but what its name is, where it lives seems to be assumed knowledge. Is there a blog that explains this for absolute novices as the documentation from Klokantech is not very helpful if you have not used these technologies before. Learn more. Openmaptiles-server on Docker - Config Ask Question.

Asked 1 year, 5 months ago. Active 1 year, 5 months ago. Viewed times. Active Oldest Votes. A 'first time install' interface will come up allowing you select what regions you want to download mbtile data for. Note that you can only run 1 mbtile per server - it will render 'blank' tan tiles for everything outside that region.

Allow the container server to download the tiles.

Questions tagged [openmaptiles]

You should now see a. Save those off somewhere for posterity. In the actual location you intend to now run the container, deploy the image, the mbtiles, and the config. Put the mbtiles and config. It will pick up on the existing mbtiles and config, skipping the install step, and boot straight into serving the tiles.

Zach Swanson Zach Swanson 4 4 bronze badges. H Zach, thanks kindly for your detailed reply. I've now got past the issues I was having.

openmaptiles docker

These related primarily to the fact that I had no prior Docker exposure at all. Now that I've had a chance to get up to speed with Docker, things start to make much more sense. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Socializing with co-workers while social distancing.

Podcast Programming tutorials can be a real drag. Featured on Meta. Community and Moderator guidelines for escalating issues via new response….GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

If nothing happens, download GitHub Desktop and try again.

OpenMapTiles Map Server

If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. We encourage other people to use this for their vector tile projects as well since this approach works well for us. Check out the OpenMapTiles project for a real world example.

You need either just Docker or Python 3 installed on your system. You also need Docker-compose for testing. If running without Docker, see below for the list of additional tools and libraries. The easiest is to use docker directly to run this command. You do not need to clone openmaptiles-tools locally, just clone the openmaptiles repo and run from its root. Note: container scripts can only access files from the given directory and below, e. Make sure you have all dependencies from the Usage section above.

You should have the latest Python 3. Use make test to run all of the tests locally. Run make rebuild-expected after you modify the output produced by the generation scripts. This will re-create the expected test results to match the actual ones, and make sure the changes are what you want.

You define a self contained Layer together with SQL files and layer and data source definitions like an imposm3 mapping file that you can then reference in a Tileset where you mix and match with other layers. Take a look or copy a standard layer like building to get started with your own layer. You can also reference SQL files in schema for writing the necessary queries for your layer or create generalized tables. We encourage you to have a function per layer which takes the bounding box and zoom level.

This makes it easy to test and reuse. For the well known values enumsthe fields section can also contain the mapping of the input OSM values. A Tileset defines which layer will be in your vector tile set layers and metadata used for generating a TM2Source project to actually generate the vector tiles.Windows Mac Linux. Launch the installed Kitematic application.

You will set your server in few steps. Supports adding your own data and styles. There are more data sources such as hillshading, contour lines, satellite, etc. Read the Tileserver GL tutorial for more in-depth information.

To serve the tiles to your mobile or web client, you need to choose a tileserver for your platform and configure it to serve the previously downloaded vector tiles. The light version tileserver-gl-light can be easily installed using npm. Now run tileserver-gl-light together with the previously downloaded vector tiles.

The full version of tileserver-gl has the capabilities to fall back to serve raster tiles for interoperability with other clients. The raster tiles are then rendered on demand.

This makes it harder to install, so we recommend using it via Docker. Once you have your own vector tile server running, you can choose one of the many styles supporting the OpenMapTiles schema. After you downloaded the style, point the endpoint URL to your tileserver and embedd it in a mobile app or web viewer.

You can also create your own styles using Maputnik. Source code is available on TileServer's GitHub. Go to the Downloads page and download the vector tiles for your region or the planet. We are providing a free reliable hosting for OpenMapTiles data. This is the quickest way how to start and play with maps. Visit maptiler. Read more about MapTiler Cloud. Use our hosting with OpenMapTiles data. About Docs Downloads Styles Schema. Install Docker on your computer Install Docker. Start Docker Kitematic Launch the installed Kitematic application.

Docker with TileServer GL If you need Docker microservice and advanced configuration, you can use the rendering core of our server directly. To install a tileserver serving both vector and raster tiles, we recommend using the official Docker image tileserver-gl. By launching the Docker with the command below, you mount the active directory with the previously downloaded MBTiles file with vector tiles and run the tile server at a local port Download Vector Tiles Head over to the downloads page where you can get the vector tiles for your region or the whole planet.

openmaptiles docker

Run a TileServer To serve the tiles to your mobile or web client, you need to choose a tileserver for your platform and configure it to serve the previously downloaded vector tiles.The easiest way is to convert your data into vector tiles and then combine it with standard OpenMapTiles source in a map style.

On the other hand, it gives you even bigger control over tiles generation and you can use SQL syntax a lot of people is familiar with. First, you need to install Docker and Docker Compose and to clone OpenMapTiles repository as described here space and memory requirements are not so high in this case. Add data directory as another volume of postgres service in docker-compose. You can use ogr2ogr for transformation:.

Get into the postgres container:. The next step is to configure OpenMapTiles project to generate tiles from your data. Basically, you need to. The layer definition might be the most complicated step depending on how many logic you want to implement.

The very simple example consists of two files:. For a better understanding of this example, check the documentation to get inspiration in defining your own OpenMapTiles layers used in production. Change openmaptiles.

openmaptiles docker

It may look like this:. You should change at least attribution and center properties. You can preview it using TileServer-GL :. After creating vector tiles, you can combine them with the standard OpenMapTiles layer in one map style. It can be done in the same way as in case of raster tiles. About Docs Downloads Styles Schema. Before importing the data into PostGIS First, you need to install Docker and Docker Compose and to clone OpenMapTiles repository as described here space and memory requirements are not so high in this case.

AS t schema :. Maps in a Mobile App Create a mobile app.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Now I'm at step 'Build'. I must be missing some thing? Any one used Windows Docker toolbox to build and eventually follow the step to produce a sample.

Thank you. I copied 'openmaptiles' folder to root folder of f:. I'm using docker toolbox that seems to be different from docker for windows.

Last one requires Windows 10 Pro As it stands it looks like building 'openmaptiles' or using it seems not straightforward on Windows.

Thanks though for trying to help. But Windows 10 with the Ubuntu subsystem should make such interactions easier in the future is my hope. Windows 10 with the Ubuntu system does not seems to support Docker or VM now. May be in the future. I opened a ticket on 'Docker for Windows'. I reverted back to 'Docker toolbox'. To work around this 'windows' docker issue, would using images for the sequence of actions PostgreSQL data import, sql import, generate vector tiles can be done through Kitematic.

Or if those are available as images, may be it would be more complicated to run the sequence through Kitematic? Well if the system supports docker-compose it should actually still be one command. What was failing now for you was simply the make process. What if you unpack build. And then run docker-compose up -d postgres and docker-compose run import-water?

Defaulting to a blank string. Is this mean that it will try to pull all osm world data? Reading below in the steps: "Now you are ready to generate the vector tiles. Using environment variables you can limit the bounding box and zoom levels of what you want to generate docker-compose. Is it only there when one need to specific the bounding box and z min and z max?

As I would not want to try to download lot of data then produce tiles for a small area Would u recommend setting at least the BBOX early on: just before 'import If yes, those need to be defined at 'docker-compose. I went ahead on run the other steps until 'import-osm'. The execution seems to run but it halt with an error at the end:. Is this is the same issue as initially hit when trying to build Windows Dockers and mounted folders access?

That's actually missing in the docs I see. This will then be imported into the db. It looks like this is a Docker toolbox windows issue and not 'openmaptiles' one.