2022-06-07 21:34:21 +00:00
|
|
|
package com.onthegomap.planetiler.custommap.configschema;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
public record AttributeDefinition(
|
|
|
|
String key,
|
2022-09-23 10:49:09 +00:00
|
|
|
@JsonProperty("include_when") Object includeWhen,
|
|
|
|
@JsonProperty("exclude_when") Object excludeWhen,
|
|
|
|
@JsonProperty("min_zoom") Object minZoom,
|
2022-06-07 21:34:21 +00:00
|
|
|
@JsonProperty("min_zoom_by_value") Map<Object, Integer> minZoomByValue,
|
2022-09-23 10:49:09 +00:00
|
|
|
@JsonProperty("min_tile_cover_size") Double minTileCoverSize,
|
|
|
|
@JsonProperty("else") Object fallback,
|
|
|
|
// pass-through to value expression
|
|
|
|
@JsonProperty("value") Object value,
|
|
|
|
@JsonProperty("tag_value") String tagValue,
|
|
|
|
Object type,
|
|
|
|
Object coalesce
|
2022-06-07 21:34:21 +00:00
|
|
|
) {}
|