geoadmin / service-tileservergl

1 stars 0 forks source link

Auto populate Maputnik with Swisstopo styles #11

Open loicgasser opened 6 years ago

loicgasser commented 6 years ago

Investigate how to add/use a new endpoint /styles in tileserver-gl. The goal is that when one opens maputnik, it shows all the styles hosted in tilserver so that one can easily change it and save it directly. Ideally, do it in the main project tileserver-gl project.

loicgasser commented 6 years ago

https://github.com/maputnik/editor/blob/e9daee447039676c23cb94a36f5d78ca249e82ee/src/libs/apistore.js#L17

relevant code in maputnik.

In maputnik there's a localstyle editor which is more or less what we want but directly connected to tileserver-gl instead. https://github.com/maputnik/editor/wiki/Maputnik-CLI

https://openmaptiles.org/docs/style/maputnik/ We have to look into their solution of edit style online which is what we want to do. ping @oterral

loicgasser commented 6 years ago

we do have http://tileserver.dev.bgdi.ch/styles.json

oterral commented 6 years ago

Thx for finding this , should be easy now to add this to maputnik.