v0.18.0
New Features
- More layer matching control with
priority
andexclusive
#705priority
controls the order in which sub-layers at the same level are matched, and which one "wins" when multiple matching layers are merged.exclusive
ensures that the layer is mutually exclusive, and no other sub-layers at the same level will match.- Used together,
if/else if/else
filter patterns can be expressed with these new keywords, e.g.:layers: layerA: # if matches layerA... filter: ... priority: 1 exclusive: true draw: ... layerB: # else if matches layerB... filter: ... priority: 2 exclusive: true draw: ...
- Data sources can define specific zoom levels at which tiles are loaded #702
- In some cases it may be unnecessary or undesirable to load new tile data at every zoom level. The new
zooms
parameter allows for control over which map view zoom levels load new tiles, with tiles overzoomed when viewing zooms in between. For example, to only load new tile data at every other zoom level:sources: tilezen: type: MVT url: ... zooms: [0, 2, 4, 6, 8, 10, 12, 14, 16] # only load tiles every 2 zooms
- If both
zooms
andmax_zoom
is present, the last zoom listed inzooms
takes precedence, and overrides themax_zoom
parameter. Themin_display_zoom
also automatically defaults to the first entry in thezooms
list.
- In some cases it may be unnecessary or undesirable to load new tile data at every zoom level. The new
- Enable setting of
blend_order
at thedraw
group level #703- Rather than requiring the
blend_order
to be set at thestyles
level (which has led to an unwieldy pattern of several "template" styles that vary only byblend_order
), this change enablesblend_order
to be set within adraw
group. This allows for much more flexibleblend_order
expressions, and a semantic use that aligns with theorder
parameter used for geometry world order ofopaque
-rendered features. For example, for a style withoverlay
blending:layers: overlays: draw: polygons-overlay: blend_order: 3 ...
- Rather than requiring the
- Quadkey support for tile URL templates #701
- Support for the quadkey tile URL scheme is now available with the
{q}
token (as an alternative to the{x}
/{y}
/{z}
URL pattern). For example, a Microsoft aerial imagery raster layer:sources: msft-aerial: type: Raster url: https://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=587
- Support for the quadkey tile URL scheme is now available with the
Improvements
- Improved label collision when zooming #709
- Remove compounding alpha flicker artifacts when zooming non-
opaque
features #704
Bug Fixes
- Fix force disable of Vertex Array Objects (for dev/debugging) f4235db