I'm using OpenMapTiles maps with VTM and would like to render it with a similar theme like OSM Bright. First I tried to write a xml theme, but then saw that would be easier to write custom ThemeBuilder. So I started writing JsonThemeBuilder which parses Maputnik JSON output and now I have a problem with some filter implementations.
"filter": [
"all",
[
"==",
"class",
"country"
],
[
">=",
"rank",
3
],
[
"!has",
"iso_a2"
]
]
For first filter is easy, I just need to create a parent rule with k="class" and v="country". Also last is possible with parent rule where k="iso_a2" and v="~". But how to implement second rule? Is that even possible? Do I need to write a custom Rule class and implement matchesTags function? Or I'm doing completely wrong that?
Thanks for any advice!