I've been getting fairly familiar with openstreetmap and specifically with generating mbtiles databases/archives over the past few months.

Now, I'm currently in the process of generating MBTiles files based on GeoJSON extracts generated from .osm.pbf files, this is going good as well.

I am, however, getting stuck at the styling part. I'm trying to display the maps in a webpage with Mapbox GL JS, which is working to the extend that I can zoom in/out and drag the map without getting any console errors, only the tiles remain entirely blank (or, grey?).

When using OpenMapTiles' tileserver-gl, the maps do display in the form of lines only (as shown in the example (https://openmaptiles.org/docs/generate/custom-vector-from-shapefile-geojson/)) but when using any slippy map solution (I've tried MapBox GL JS, Leaflet and OpenLayers), I don't see anything.

I've hosted an openmaptiles server before (data generated from pbf files through the methods described by openmaptiles with docker) which renders perfectly fine, so I'm probably doing something wrong here but I don't see what.

Any ideas/suggestions would be welcome! I can probably upload data to a server if someone would like to have a look at it.

asked 17 Dec '19, 08:33

yeahokay's gravatar image

accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 17 Dec '19, 08:33

question was seen: 329 times

last updated: 17 Dec '19, 08:33

powered by OSQA