Page MenuHomePhabricator

Configure tegola to serve tiles
Closed, ResolvedPublic3 Estimated Story Points

Description

Acceptance criteria
  • Tegola is configured to use beta PostGIS as a data provider
  • Tegola is configured to serve vectors with layers that can be used with OSM bright
  • Tegola is configured to use beta Redis as a cache

Details

Related Changes in Gerrit:

Event Timeline

sdkim set the point value for this task to 3.Jan 5 2021, 4:22 PM

Regarding tegola config, I captured all the work done so far here: https://github.com/johngian/openmaptiles-tegola
It involves patches:

  • On tegola to make the openmaptiles SQL queries compatible with the tegola config
  • On openmaptiles-tools to add a helper tool to generate the tegola config

@MSantos OpenMapTiles by default uses some data as described here:
https://github.com/openmaptiles/openmaptiles-tools/tree/master/docker/import-data

Do you see this as a blocker for now?

Regarding tegola config, I captured all the work done so far here: https://github.com/johngian/openmaptiles-tegola
It involves patches:

  • On tegola to make the openmaptiles SQL queries compatible with the tegola config
  • On openmaptiles-tools to add a helper tool to generate the tegola config

@MSantos OpenMapTiles by default uses some data as described here:
https://github.com/openmaptiles/openmaptiles-tools/tree/master/docker/import-data

Do you see this as a blocker for now?

All the data sources are freely licensed and doesn't block us to move forward. From that list we currently use water polygons as well but just sync this data in a different pace (once a month), in summary here are my two observations:

  • We won't need them if we move forward and keep the current style
  • In case we switch to a more updated OSM bright style, this data is not a problem to download and sync. Still, the worst-case scenario is to not load them for the new style, therefore, they won't appear in the rendered map without affecting the pipeline.

Some updates from our beta environment:

  • Server is configured to import OSM data based on OpenMapTiles spec
  • I loaded a small chunk of OSM just for dev purposes and resources limitations
    • Beta renders details only for Iceland
  • We run a redis instance to evaluate it as a cache backend for Tegola
  • We run tegola vector tile server configured to serve OpenMapTiles based vector tiles and backed by redis
  • For easy experimentation, I deployed a maputnik (map editor) instance.
  • We have a static file server that serves a static map rendered using mapbox-gl-js.
    • Directly exported the map in HTML format from maputnik
    • We serve our own sprites/glyphs
    • Demo map is rendered using WebGL

Endpoints:

Change 658239 had a related patch set uploaded (by Jgiannelos; owner: Jgiannelos):
[maps/spikes@master] Add example config for tegola deployment

https://gerrit.wikimedia.org/r/658239

Change 658239 merged by MSantos:
[maps/spikes@master] Add example config for tegola deployment

https://gerrit.wikimedia.org/r/658239