i have UriVectorTileMapProvider and i have files pbf.
When i create my style file json i cant get render corectly.
i have two example:
1)one in my style json i have three layers:buildings,military,hospital (ex1.png)
When I use such a file, one polygon is lying with buildings on top where the other polygon covers the buildings
"layers": [
{
"id": "landcover_wood",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": [
"==",
"class",
"military"
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "green"
}
},
{
"id": "landcover_hos",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": [
"==",
"class",
"hospital"
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "yellow"
}
},
,
{
"id": "building",
"type": "fill",
"source": "openmaptiles",
"source-layer": "building",
"minzoom": 12,
"maxzoom": 24,
"paint": {
"fill-color": {
"stops": [
[
13,
"yellow"
],
[
16,
"red"
]
]
}
}
}
]
2) if i have this style json, telering dont recognize color for every layers like hospital or military i have black (ex2.png)
"layers": [
whats wrong with my json file style?