openmaptiles / openmaptiles-tools

Tools to turn the schema into other formats
MIT License
397 stars 136 forks source link

Implement buffer_size overrides #399

Closed nyurik closed 2 years ago

nyurik commented 2 years ago

Layer file changes

layer:
  id: housenumber
  # Only one of these is mandatory
  min_buffer_size: 1
  buffer_size: 8

Tileset file changes

This example will load two layers. Mountain peak will be used as is, and house numbers's min buffer zoom is modified. The global override=0 will set mountain peaks buffer to 0 (because it has no min_buffer_size defined inside the layer file), but the house number buffer size will be 5.

tileset:
  layers:
    - mountain_peak/mountain_peak.yaml
    - file: housenumber/housenumber.yaml
      min_buffer_size: 5
  overrides:
    buffer_size: 0

Breaking

farfromrefug commented 2 years ago

@nyurik this look pretty awesome!