Skip to content

Instantly share code, notes, and snippets.

@timlinux
Last active September 30, 2022 14:58
Show Gist options
  • Save timlinux/4cb5172678f81c206b84972911fee524 to your computer and use it in GitHub Desktop.
Save timlinux/4cb5172678f81c206b84972911fee524 to your computer and use it in GitHub Desktop.
Mapbox Vector Style for MapTiler Countries in QGIS
{
"version": 8,
"name": "Empty Style",
"metadata": {"maputnik:renderer": "mbgljs"},
"sources": {
"Tim": {
"type": "vector",
"tiles": ["http://localhost:9090/maps/world/{z}/{x}/{y}.pbf"],
"minZoom": 0,
"maxZoom": 14
}
},
"sprite": "",
"glyphs": "https://orangemug.github.io/font-glyphs/glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {"background-color": "rgba(218, 248, 245, 1)"}
},
{
"id": "countries-all",
"type": "fill",
"source": "Tim",
"source-layer": "world",
"filter": ["all", ["!=", "NAME", "Angola"]],
"layout": {"visibility": "visible"},
"paint": {
"fill-outline-color": "rgba(31, 31, 31, 1)",
"fill-color": "rgba(131, 210, 167, 1)"
}
},
{
"id": "countries",
"type": "fill",
"source": "Tim",
"source-layer": "world",
"filter": ["all", ["==", "NAME", "Angola"]],
"layout": {"visibility": "visible"},
"paint": {
"fill-outline-color": "rgba(31, 31, 31, 1)",
"fill-color": "rgba(235, 35, 35, 1)"
}
}
],
"id": "hjdnirpd4"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment