[Theme Style]
#1279
Replies: 1 comment
-
|
@CodeK1988 You need to write the theme xml file. Check the openmaptiles theme xml file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi mate, I have some vector pbf map files. I can convert them into mbtiles format and load them. Is there a tool to convert style json into theme.xml supported by vtm? Much appreciated ! @devemux86
{ "version": 8, "sources": { "protomaps": { "type": "vector", "attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> © <a href=\"https://openstreetmap.org\">OpenStreetMap</a>", "url": "pmtiles://https://build.protomaps.com/20260203.pmtiles" } }, "layers": [ { "id": "background", "type": "background", "paint": { "background-color": "#cccccc" } }, { "id": "earth", "type": "fill", "filter": [ "==", "$type", "Polygon" ], "source": "protomaps", "source-layer": "earth", "paint": { "fill-color": "#e2dfda" } }, ...... "text-transform": "uppercase" }, "paint": { "text-color": "#a3a3a3", "text-halo-color": "#e2dfda", "text-halo-width": 1 } } ], "sprite": "https://protomaps.github.io/basemaps-assets/sprites/v4/light", "glyphs": "https://protomaps.github.io/basemaps-assets/fonts/{fontstack}/{range}.pbf" }Beta Was this translation helpful? Give feedback.
All reactions