// Generated by bench/moonbit/gen-style.mjs from MapLibre's style specification (@maplibre/maplibre-gl-style-spec 26.5.0); do not edit.

///|
/// A `fill` layer (https://maplibre.org/maplibre-style-spec/layers/#fill): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn fill(
  id : String,
  source~ : String,
  source_layer? : String,
  filter? : @expr.Expr,
  minzoom? : Double,
  maxzoom? : Double,
  fill_antialias? : @expr.Expr,
  fill_opacity? : @expr.Expr,
  fill_layer_opacity? : @expr.Expr,
  fill_layer_blend? : @expr.Expr,
  fill_color? : @expr.Expr,
  fill_outline_color? : @expr.Expr,
  fill_translate? : @expr.Expr,
  fill_translate_anchor? : @expr.Expr,
  fill_pattern? : @expr.Expr,
  fill_sort_key? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "fill-antialias", fill_antialias)
  put_expr(paint, "fill-opacity", fill_opacity)
  put_expr(paint, "fill-layer-opacity", fill_layer_opacity)
  put_expr(paint, "fill-layer-blend", fill_layer_blend)
  put_expr(paint, "fill-color", fill_color)
  put_expr(paint, "fill-outline-color", fill_outline_color)
  put_expr(paint, "fill-translate", fill_translate)
  put_expr(paint, "fill-translate-anchor", fill_translate_anchor)
  put_expr(paint, "fill-pattern", fill_pattern)
  let layout = Map([])
  put_expr(layout, "fill-sort-key", fill_sort_key)
  put_expr(layout, "visibility", visibility)
  layer(
    id,
    "fill",
    Some(source),
    source_layer,
    filter,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `line` layer (https://maplibre.org/maplibre-style-spec/layers/#line): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn line(
  id : String,
  source~ : String,
  source_layer? : String,
  filter? : @expr.Expr,
  minzoom? : Double,
  maxzoom? : Double,
  line_opacity? : @expr.Expr,
  line_layer_opacity? : @expr.Expr,
  line_layer_blend? : @expr.Expr,
  line_color? : @expr.Expr,
  line_translate? : @expr.Expr,
  line_translate_anchor? : @expr.Expr,
  line_width? : @expr.Expr,
  line_gap_width? : @expr.Expr,
  line_offset? : @expr.Expr,
  line_blur? : @expr.Expr,
  line_dasharray? : @expr.Expr,
  line_pattern? : @expr.Expr,
  line_gradient? : @expr.Expr,
  line_cap? : @expr.Expr,
  line_join? : @expr.Expr,
  line_miter_limit? : @expr.Expr,
  line_round_limit? : @expr.Expr,
  line_sort_key? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "line-opacity", line_opacity)
  put_expr(paint, "line-layer-opacity", line_layer_opacity)
  put_expr(paint, "line-layer-blend", line_layer_blend)
  put_expr(paint, "line-color", line_color)
  put_expr(paint, "line-translate", line_translate)
  put_expr(paint, "line-translate-anchor", line_translate_anchor)
  put_expr(paint, "line-width", line_width)
  put_expr(paint, "line-gap-width", line_gap_width)
  put_expr(paint, "line-offset", line_offset)
  put_expr(paint, "line-blur", line_blur)
  put_expr(paint, "line-dasharray", line_dasharray)
  put_expr(paint, "line-pattern", line_pattern)
  put_expr(paint, "line-gradient", line_gradient)
  let layout = Map([])
  put_expr(layout, "line-cap", line_cap)
  put_expr(layout, "line-join", line_join)
  put_expr(layout, "line-miter-limit", line_miter_limit)
  put_expr(layout, "line-round-limit", line_round_limit)
  put_expr(layout, "line-sort-key", line_sort_key)
  put_expr(layout, "visibility", visibility)
  layer(
    id,
    "line",
    Some(source),
    source_layer,
    filter,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `symbol` layer (https://maplibre.org/maplibre-style-spec/layers/#symbol): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn symbol(
  id : String,
  source~ : String,
  source_layer? : String,
  filter? : @expr.Expr,
  minzoom? : Double,
  maxzoom? : Double,
  icon_opacity? : @expr.Expr,
  icon_color? : @expr.Expr,
  icon_halo_color? : @expr.Expr,
  icon_halo_width? : @expr.Expr,
  icon_halo_blur? : @expr.Expr,
  icon_translate? : @expr.Expr,
  icon_translate_anchor? : @expr.Expr,
  text_opacity? : @expr.Expr,
  text_color? : @expr.Expr,
  text_halo_color? : @expr.Expr,
  text_halo_width? : @expr.Expr,
  text_halo_blur? : @expr.Expr,
  text_translate? : @expr.Expr,
  text_translate_anchor? : @expr.Expr,
  symbol_placement? : @expr.Expr,
  symbol_spacing? : @expr.Expr,
  symbol_avoid_edges? : @expr.Expr,
  symbol_sort_key? : @expr.Expr,
  symbol_z_order? : @expr.Expr,
  icon_allow_overlap? : @expr.Expr,
  icon_overlap? : @expr.Expr,
  icon_ignore_placement? : @expr.Expr,
  icon_optional? : @expr.Expr,
  icon_rotation_alignment? : @expr.Expr,
  icon_size? : @expr.Expr,
  icon_text_fit? : @expr.Expr,
  icon_text_fit_padding? : @expr.Expr,
  icon_image? : @expr.Expr,
  icon_rotate? : @expr.Expr,
  icon_padding? : @expr.Expr,
  icon_keep_upright? : @expr.Expr,
  icon_offset? : @expr.Expr,
  icon_anchor? : @expr.Expr,
  icon_pitch_alignment? : @expr.Expr,
  text_pitch_alignment? : @expr.Expr,
  text_rotation_alignment? : @expr.Expr,
  text_field? : @expr.Expr,
  text_font? : @expr.Expr,
  text_size? : @expr.Expr,
  text_max_width? : @expr.Expr,
  text_line_height? : @expr.Expr,
  text_letter_spacing? : @expr.Expr,
  text_justify? : @expr.Expr,
  text_radial_offset? : @expr.Expr,
  text_variable_anchor? : @expr.Expr,
  text_variable_anchor_offset? : @expr.Expr,
  text_anchor? : @expr.Expr,
  text_max_angle? : @expr.Expr,
  text_writing_mode? : @expr.Expr,
  text_rotate? : @expr.Expr,
  text_padding? : @expr.Expr,
  text_keep_upright? : @expr.Expr,
  text_transform? : @expr.Expr,
  text_offset? : @expr.Expr,
  text_allow_overlap? : @expr.Expr,
  text_overlap? : @expr.Expr,
  text_ignore_placement? : @expr.Expr,
  text_optional? : @expr.Expr,
  symbol_height_offset? : @expr.Expr,
  symbol_height_anchor? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "icon-opacity", icon_opacity)
  put_expr(paint, "icon-color", icon_color)
  put_expr(paint, "icon-halo-color", icon_halo_color)
  put_expr(paint, "icon-halo-width", icon_halo_width)
  put_expr(paint, "icon-halo-blur", icon_halo_blur)
  put_expr(paint, "icon-translate", icon_translate)
  put_expr(paint, "icon-translate-anchor", icon_translate_anchor)
  put_expr(paint, "text-opacity", text_opacity)
  put_expr(paint, "text-color", text_color)
  put_expr(paint, "text-halo-color", text_halo_color)
  put_expr(paint, "text-halo-width", text_halo_width)
  put_expr(paint, "text-halo-blur", text_halo_blur)
  put_expr(paint, "text-translate", text_translate)
  put_expr(paint, "text-translate-anchor", text_translate_anchor)
  let layout = Map([])
  put_expr(layout, "symbol-placement", symbol_placement)
  put_expr(layout, "symbol-spacing", symbol_spacing)
  put_expr(layout, "symbol-avoid-edges", symbol_avoid_edges)
  put_expr(layout, "symbol-sort-key", symbol_sort_key)
  put_expr(layout, "symbol-z-order", symbol_z_order)
  put_expr(layout, "icon-allow-overlap", icon_allow_overlap)
  put_expr(layout, "icon-overlap", icon_overlap)
  put_expr(layout, "icon-ignore-placement", icon_ignore_placement)
  put_expr(layout, "icon-optional", icon_optional)
  put_expr(layout, "icon-rotation-alignment", icon_rotation_alignment)
  put_expr(layout, "icon-size", icon_size)
  put_expr(layout, "icon-text-fit", icon_text_fit)
  put_expr(layout, "icon-text-fit-padding", icon_text_fit_padding)
  put_expr(layout, "icon-image", icon_image)
  put_expr(layout, "icon-rotate", icon_rotate)
  put_expr(layout, "icon-padding", icon_padding)
  put_expr(layout, "icon-keep-upright", icon_keep_upright)
  put_expr(layout, "icon-offset", icon_offset)
  put_expr(layout, "icon-anchor", icon_anchor)
  put_expr(layout, "icon-pitch-alignment", icon_pitch_alignment)
  put_expr(layout, "text-pitch-alignment", text_pitch_alignment)
  put_expr(layout, "text-rotation-alignment", text_rotation_alignment)
  put_expr(layout, "text-field", text_field)
  put_expr(layout, "text-font", text_font)
  put_expr(layout, "text-size", text_size)
  put_expr(layout, "text-max-width", text_max_width)
  put_expr(layout, "text-line-height", text_line_height)
  put_expr(layout, "text-letter-spacing", text_letter_spacing)
  put_expr(layout, "text-justify", text_justify)
  put_expr(layout, "text-radial-offset", text_radial_offset)
  put_expr(layout, "text-variable-anchor", text_variable_anchor)
  put_expr(layout, "text-variable-anchor-offset", text_variable_anchor_offset)
  put_expr(layout, "text-anchor", text_anchor)
  put_expr(layout, "text-max-angle", text_max_angle)
  put_expr(layout, "text-writing-mode", text_writing_mode)
  put_expr(layout, "text-rotate", text_rotate)
  put_expr(layout, "text-padding", text_padding)
  put_expr(layout, "text-keep-upright", text_keep_upright)
  put_expr(layout, "text-transform", text_transform)
  put_expr(layout, "text-offset", text_offset)
  put_expr(layout, "text-allow-overlap", text_allow_overlap)
  put_expr(layout, "text-overlap", text_overlap)
  put_expr(layout, "text-ignore-placement", text_ignore_placement)
  put_expr(layout, "text-optional", text_optional)
  put_expr(layout, "symbol-height-offset", symbol_height_offset)
  put_expr(layout, "symbol-height-anchor", symbol_height_anchor)
  put_expr(layout, "visibility", visibility)
  layer(
    id,
    "symbol",
    Some(source),
    source_layer,
    filter,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `circle` layer (https://maplibre.org/maplibre-style-spec/layers/#circle): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn circle(
  id : String,
  source~ : String,
  source_layer? : String,
  filter? : @expr.Expr,
  minzoom? : Double,
  maxzoom? : Double,
  circle_radius? : @expr.Expr,
  circle_color? : @expr.Expr,
  circle_blur? : @expr.Expr,
  circle_opacity? : @expr.Expr,
  circle_translate? : @expr.Expr,
  circle_translate_anchor? : @expr.Expr,
  circle_pitch_scale? : @expr.Expr,
  circle_pitch_alignment? : @expr.Expr,
  circle_stroke_width? : @expr.Expr,
  circle_stroke_color? : @expr.Expr,
  circle_stroke_opacity? : @expr.Expr,
  circle_sort_key? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "circle-radius", circle_radius)
  put_expr(paint, "circle-color", circle_color)
  put_expr(paint, "circle-blur", circle_blur)
  put_expr(paint, "circle-opacity", circle_opacity)
  put_expr(paint, "circle-translate", circle_translate)
  put_expr(paint, "circle-translate-anchor", circle_translate_anchor)
  put_expr(paint, "circle-pitch-scale", circle_pitch_scale)
  put_expr(paint, "circle-pitch-alignment", circle_pitch_alignment)
  put_expr(paint, "circle-stroke-width", circle_stroke_width)
  put_expr(paint, "circle-stroke-color", circle_stroke_color)
  put_expr(paint, "circle-stroke-opacity", circle_stroke_opacity)
  let layout = Map([])
  put_expr(layout, "circle-sort-key", circle_sort_key)
  put_expr(layout, "visibility", visibility)
  layer(
    id,
    "circle",
    Some(source),
    source_layer,
    filter,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `heatmap` layer (https://maplibre.org/maplibre-style-spec/layers/#heatmap): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn heatmap(
  id : String,
  source~ : String,
  source_layer? : String,
  filter? : @expr.Expr,
  minzoom? : Double,
  maxzoom? : Double,
  heatmap_radius? : @expr.Expr,
  heatmap_weight? : @expr.Expr,
  heatmap_intensity? : @expr.Expr,
  heatmap_color? : @expr.Expr,
  heatmap_opacity? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "heatmap-radius", heatmap_radius)
  put_expr(paint, "heatmap-weight", heatmap_weight)
  put_expr(paint, "heatmap-intensity", heatmap_intensity)
  put_expr(paint, "heatmap-color", heatmap_color)
  put_expr(paint, "heatmap-opacity", heatmap_opacity)
  let layout = Map([])
  put_expr(layout, "visibility", visibility)
  layer(
    id,
    "heatmap",
    Some(source),
    source_layer,
    filter,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `fill-extrusion` layer (https://maplibre.org/maplibre-style-spec/layers/#fill-extrusion): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn fill_extrusion(
  id : String,
  source~ : String,
  source_layer? : String,
  filter? : @expr.Expr,
  minzoom? : Double,
  maxzoom? : Double,
  fill_extrusion_opacity? : @expr.Expr,
  fill_extrusion_color? : @expr.Expr,
  fill_extrusion_translate? : @expr.Expr,
  fill_extrusion_translate_anchor? : @expr.Expr,
  fill_extrusion_pattern? : @expr.Expr,
  fill_extrusion_height? : @expr.Expr,
  fill_extrusion_base? : @expr.Expr,
  fill_extrusion_vertical_gradient? : @expr.Expr,
  visibility? : @expr.Expr,
  fill_extrusion_rounded_corner_distance? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "fill-extrusion-opacity", fill_extrusion_opacity)
  put_expr(paint, "fill-extrusion-color", fill_extrusion_color)
  put_expr(paint, "fill-extrusion-translate", fill_extrusion_translate)
  put_expr(
    paint, "fill-extrusion-translate-anchor", fill_extrusion_translate_anchor,
  )
  put_expr(paint, "fill-extrusion-pattern", fill_extrusion_pattern)
  put_expr(paint, "fill-extrusion-height", fill_extrusion_height)
  put_expr(paint, "fill-extrusion-base", fill_extrusion_base)
  put_expr(
    paint, "fill-extrusion-vertical-gradient", fill_extrusion_vertical_gradient,
  )
  let layout = Map([])
  put_expr(layout, "visibility", visibility)
  put_expr(
    layout, "fill-extrusion-rounded-corner-distance", fill_extrusion_rounded_corner_distance,
  )
  layer(
    id,
    "fill-extrusion",
    Some(source),
    source_layer,
    filter,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `raster` layer (https://maplibre.org/maplibre-style-spec/layers/#raster): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn raster(
  id : String,
  source~ : String,
  minzoom? : Double,
  maxzoom? : Double,
  raster_opacity? : @expr.Expr,
  raster_hue_rotate? : @expr.Expr,
  raster_brightness_min? : @expr.Expr,
  raster_brightness_max? : @expr.Expr,
  raster_saturation? : @expr.Expr,
  raster_contrast? : @expr.Expr,
  resampling? : @expr.Expr,
  raster_resampling? : @expr.Expr,
  raster_fade_duration? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "raster-opacity", raster_opacity)
  put_expr(paint, "raster-hue-rotate", raster_hue_rotate)
  put_expr(paint, "raster-brightness-min", raster_brightness_min)
  put_expr(paint, "raster-brightness-max", raster_brightness_max)
  put_expr(paint, "raster-saturation", raster_saturation)
  put_expr(paint, "raster-contrast", raster_contrast)
  put_expr(paint, "resampling", resampling)
  put_expr(paint, "raster-resampling", raster_resampling)
  put_expr(paint, "raster-fade-duration", raster_fade_duration)
  let layout = Map([])
  put_expr(layout, "visibility", visibility)
  layer(id, "raster", Some(source), None, None, minzoom, maxzoom, paint, layout)
}

///|
/// A `hillshade` layer (https://maplibre.org/maplibre-style-spec/layers/#hillshade): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn hillshade(
  id : String,
  source~ : String,
  minzoom? : Double,
  maxzoom? : Double,
  hillshade_illumination_direction? : @expr.Expr,
  hillshade_illumination_altitude? : @expr.Expr,
  hillshade_illumination_anchor? : @expr.Expr,
  hillshade_exaggeration? : @expr.Expr,
  hillshade_shadow_color? : @expr.Expr,
  hillshade_highlight_color? : @expr.Expr,
  hillshade_accent_color? : @expr.Expr,
  hillshade_method? : @expr.Expr,
  resampling? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(
    paint, "hillshade-illumination-direction", hillshade_illumination_direction,
  )
  put_expr(
    paint, "hillshade-illumination-altitude", hillshade_illumination_altitude,
  )
  put_expr(
    paint, "hillshade-illumination-anchor", hillshade_illumination_anchor,
  )
  put_expr(paint, "hillshade-exaggeration", hillshade_exaggeration)
  put_expr(paint, "hillshade-shadow-color", hillshade_shadow_color)
  put_expr(paint, "hillshade-highlight-color", hillshade_highlight_color)
  put_expr(paint, "hillshade-accent-color", hillshade_accent_color)
  put_expr(paint, "hillshade-method", hillshade_method)
  put_expr(paint, "resampling", resampling)
  let layout = Map([])
  put_expr(layout, "visibility", visibility)
  layer(
    id,
    "hillshade",
    Some(source),
    None,
    None,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `color-relief` layer (https://maplibre.org/maplibre-style-spec/layers/#color-relief): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn color_relief(
  id : String,
  source~ : String,
  minzoom? : Double,
  maxzoom? : Double,
  color_relief_opacity? : @expr.Expr,
  color_relief_color? : @expr.Expr,
  resampling? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "color-relief-opacity", color_relief_opacity)
  put_expr(paint, "color-relief-color", color_relief_color)
  put_expr(paint, "resampling", resampling)
  let layout = Map([])
  put_expr(layout, "visibility", visibility)
  layer(
    id,
    "color-relief",
    Some(source),
    None,
    None,
    minzoom,
    maxzoom,
    paint,
    layout,
  )
}

///|
/// A `background` layer (https://maplibre.org/maplibre-style-spec/layers/#background): its paint and layout
/// properties are the labelled arguments, named as the specification's with `_` for `-`.
pub fn background(
  id : String,
  minzoom? : Double,
  maxzoom? : Double,
  background_color? : @expr.Expr,
  background_pattern? : @expr.Expr,
  background_opacity? : @expr.Expr,
  visibility? : @expr.Expr,
) -> Layer {
  let paint = Map([])
  put_expr(paint, "background-color", background_color)
  put_expr(paint, "background-pattern", background_pattern)
  put_expr(paint, "background-opacity", background_opacity)
  let layout = Map([])
  put_expr(layout, "visibility", visibility)
  layer(id, "background", None, None, None, minzoom, maxzoom, paint, layout)
}