Created
June 6, 2023 12:22
-
-
Save louwers/d7607270cbd6e3faa05222a09bcb8f7d to your computer and use it in GitHub Desktop.
Example Style for using MapLibre Native guide on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 8, | |
"name": "Test style", | |
"center": [ | |
8.54806714892635, | |
47.37180823552663 | |
], | |
"sources": { | |
"test": { | |
"type": "vector", | |
"url": "mbtiles:///path/to/zurich_switzerland.mbtiles" | |
} | |
}, | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"paint": { | |
"background-color": "hsl(47, 26%, 88%)" | |
} | |
}, | |
{ | |
"id": "water", | |
"type": "fill", | |
"source": "test", | |
"source-layer": "water", | |
"filter": [ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
"paint": { | |
"fill-color": "hsl(205, 56%, 73%)" | |
} | |
}, | |
{ | |
"id": "admin_country", | |
"type": "line", | |
"source": "test", | |
"source-layer": "boundary", | |
"filter": [ | |
"all", | |
[ | |
"<=", | |
"admin_level", | |
2 | |
], | |
[ | |
"==", | |
"$type", | |
"LineString" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "hsla(0, 8%, 22%, 0.51)", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
3, | |
0.5 | |
], | |
[ | |
22, | |
15 | |
] | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment