t-ujiie-g/mbtmap/style does not have a README file

    Layer

    pub struct Layer {
    // private fields
    }

    A style layer (MapLibre's layer specification). The functions named after the layer types (fill, line, circle, …; layers.g.mbt) build one with types; Layer::json takes one as written.

    Layer::id

    fn Layer::id(self : Layer) -> String

    The layer's id ("" when it has none).

    Layer::json

    json as it is: a layer written as JSON.

    Layer::to_json

    Source

    pub struct Source {
    // private fields
    }

    A source (MapLibre's source specification). vector_source, raster_source, raster_dem_source, geojson_source, image_source and video_source (sources.g.mbt) build one with types; Source::json takes one as written.

    Source::json

    Source::to_json

    Style

    pub struct Style {
    // private fields
    }

    A style: a document at a URL (fetched without credentials), or one written here.

    Style::json

    json as it is: a style document written as JSON.

    Style::new

    fn Style::new(sources~ : Array[(String, Source)], layers~ : Array[Layer], name? : String, sprite? : String, glyphs? : String, center? : (Double, Double), zoom? : Double, bearing? : Double, pitch? : Double, terrain? :
    Json
    , sky? :
    Json
    , projection? :
    Json
    , light? :
    Json
    ) -> Style

    A style of sources (id, source) and layers (bottom first), with the sprite and glyphs URLs, the default camera and the top-level terrain, sky, projection and light as JSON if given.

    Style::to_json

    The style document written here (null for a style given by URL).

    Style::to_url

    fn Style::to_url(self : Style) -> String?

    The style's URL, if it is given by one.

    Style::url

    fn Style::url(url : String) -> Style

    The style document at url.

    background

    fn background(id : String, minzoom? : Double, maxzoom? : Double, background_color? :
    Expr
    , background_pattern? :
    Expr
    , background_opacity? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    circle

    fn circle(id : String, source~ : String, source_layer? : String, filter? :
    Expr
    , minzoom? : Double, maxzoom? : Double, circle_radius? :
    Expr
    , circle_color? :
    Expr
    , circle_blur? :
    Expr
    , circle_opacity? :
    Expr
    , circle_translate? :
    Expr
    , circle_translate_anchor? :
    Expr
    , circle_pitch_scale? :
    Expr
    , circle_pitch_alignment? :
    Expr
    , circle_stroke_width? :
    Expr
    , circle_stroke_color? :
    Expr
    , circle_stroke_opacity? :
    Expr
    , circle_sort_key? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    color_relief

    fn color_relief(id : String, source~ : String, minzoom? : Double, maxzoom? : Double, color_relief_opacity? :
    Expr
    , color_relief_color? :
    Expr
    , resampling? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    fill

    fn fill(id : String, source~ : String, source_layer? : String, filter? :
    Expr
    , minzoom? : Double, maxzoom? : Double, fill_antialias? :
    Expr
    , fill_opacity? :
    Expr
    , fill_layer_opacity? :
    Expr
    , fill_layer_blend? :
    Expr
    , fill_color? :
    Expr
    , fill_outline_color? :
    Expr
    , fill_translate? :
    Expr
    , fill_translate_anchor? :
    Expr
    , fill_pattern? :
    Expr
    , fill_sort_key? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    fill_extrusion

    fn fill_extrusion(id : String, source~ : String, source_layer? : String, filter? :
    Expr
    , minzoom? : Double, maxzoom? : Double, fill_extrusion_opacity? :
    Expr
    , fill_extrusion_color? :
    Expr
    , fill_extrusion_translate? :
    Expr
    , fill_extrusion_translate_anchor? :
    Expr
    , fill_extrusion_pattern? :
    Expr
    , fill_extrusion_height? :
    Expr
    , fill_extrusion_base? :
    Expr
    , fill_extrusion_vertical_gradient? :
    Expr
    , visibility? :
    Expr
    , fill_extrusion_rounded_corner_distance? :
    Expr
    ) -> Layer

    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 -.

    geojson_source

    fn geojson_source(data~ :
    Json
    , maxzoom? : Double, attribution? : String, buffer? : Double, filter? :
    Json
    , tolerance? : Double, cluster? : Bool, cluster_radius? : Double, cluster_max_zoom? : Double, cluster_min_points? : Double, cluster_properties? :
    Json
    , line_metrics? : Bool, generate_id? : Bool, promote_id? :
    Json
    ) -> Source

    A geojson source (https://maplibre.org/maplibre-style-spec/sources/#geojson): its properties are the labelled arguments, named as the specification's in snake case.

    heatmap

    fn heatmap(id : String, source~ : String, source_layer? : String, filter? :
    Expr
    , minzoom? : Double, maxzoom? : Double, heatmap_radius? :
    Expr
    , heatmap_weight? :
    Expr
    , heatmap_intensity? :
    Expr
    , heatmap_color? :
    Expr
    , heatmap_opacity? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    hillshade

    fn hillshade(id : String, source~ : String, minzoom? : Double, maxzoom? : Double, hillshade_illumination_direction? :
    Expr
    , hillshade_illumination_altitude? :
    Expr
    , hillshade_illumination_anchor? :
    Expr
    , hillshade_exaggeration? :
    Expr
    , hillshade_shadow_color? :
    Expr
    , hillshade_highlight_color? :
    Expr
    , hillshade_accent_color? :
    Expr
    , hillshade_method? :
    Expr
    , resampling? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    image_source

    fn image_source(coordinates~ :
    Json
    , url? : String) -> Source

    A image source (https://maplibre.org/maplibre-style-spec/sources/#image): its properties are the labelled arguments, named as the specification's in snake case.

    line

    fn line(id : String, source~ : String, source_layer? : String, filter? :
    Expr
    , minzoom? : Double, maxzoom? : Double, line_opacity? :
    Expr
    , line_layer_opacity? :
    Expr
    , line_layer_blend? :
    Expr
    , line_color? :
    Expr
    , line_translate? :
    Expr
    , line_translate_anchor? :
    Expr
    , line_width? :
    Expr
    , line_gap_width? :
    Expr
    , line_offset? :
    Expr
    , line_blur? :
    Expr
    , line_dasharray? :
    Expr
    , line_pattern? :
    Expr
    , line_gradient? :
    Expr
    , line_cap? :
    Expr
    , line_join? :
    Expr
    , line_miter_limit? :
    Expr
    , line_round_limit? :
    Expr
    , line_sort_key? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    raster

    fn raster(id : String, source~ : String, minzoom? : Double, maxzoom? : Double, raster_opacity? :
    Expr
    , raster_hue_rotate? :
    Expr
    , raster_brightness_min? :
    Expr
    , raster_brightness_max? :
    Expr
    , raster_saturation? :
    Expr
    , raster_contrast? :
    Expr
    , resampling? :
    Expr
    , raster_resampling? :
    Expr
    , raster_fade_duration? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    raster_dem_source

    fn raster_dem_source(url? : String, tiles? : Array[String], bounds? : Array[Double], minzoom? : Double, maxzoom? : Double, tile_size? : Double, attribution? : String, encoding? : String, red_factor? : Double, blue_factor? : Double, green_factor? : Double, base_shift? : Double, volatile_? : Bool) -> Source

    A raster-dem source (https://maplibre.org/maplibre-style-spec/sources/#raster-dem): its properties are the labelled arguments, named as the specification's in snake case.

    raster_source

    fn raster_source(url? : String, tiles? : Array[String], bounds? : Array[Double], minzoom? : Double, maxzoom? : Double, tile_size? : Double, scheme? : String, attribution? : String, volatile_? : Bool) -> Source

    A raster source (https://maplibre.org/maplibre-style-spec/sources/#raster): its properties are the labelled arguments, named as the specification's in snake case.

    symbol

    fn symbol(id : String, source~ : String, source_layer? : String, filter? :
    Expr
    , minzoom? : Double, maxzoom? : Double, icon_opacity? :
    Expr
    , icon_color? :
    Expr
    , icon_halo_color? :
    Expr
    , icon_halo_width? :
    Expr
    , icon_halo_blur? :
    Expr
    , icon_translate? :
    Expr
    , icon_translate_anchor? :
    Expr
    , text_opacity? :
    Expr
    , text_color? :
    Expr
    , text_halo_color? :
    Expr
    , text_halo_width? :
    Expr
    , text_halo_blur? :
    Expr
    , text_translate? :
    Expr
    , text_translate_anchor? :
    Expr
    , symbol_placement? :
    Expr
    , symbol_spacing? :
    Expr
    , symbol_avoid_edges? :
    Expr
    , symbol_sort_key? :
    Expr
    , symbol_z_order? :
    Expr
    , icon_allow_overlap? :
    Expr
    , icon_overlap? :
    Expr
    , icon_ignore_placement? :
    Expr
    , icon_optional? :
    Expr
    , icon_rotation_alignment? :
    Expr
    , icon_size? :
    Expr
    , icon_text_fit? :
    Expr
    , icon_text_fit_padding? :
    Expr
    , icon_image? :
    Expr
    , icon_rotate? :
    Expr
    , icon_padding? :
    Expr
    , icon_keep_upright? :
    Expr
    , icon_offset? :
    Expr
    , icon_anchor? :
    Expr
    , icon_pitch_alignment? :
    Expr
    , text_pitch_alignment? :
    Expr
    , text_rotation_alignment? :
    Expr
    , text_field? :
    Expr
    , text_font? :
    Expr
    , text_size? :
    Expr
    , text_max_width? :
    Expr
    , text_line_height? :
    Expr
    , text_letter_spacing? :
    Expr
    , text_justify? :
    Expr
    , text_radial_offset? :
    Expr
    , text_variable_anchor? :
    Expr
    , text_variable_anchor_offset? :
    Expr
    , text_anchor? :
    Expr
    , text_max_angle? :
    Expr
    , text_writing_mode? :
    Expr
    , text_rotate? :
    Expr
    , text_padding? :
    Expr
    , text_keep_upright? :
    Expr
    , text_transform? :
    Expr
    , text_offset? :
    Expr
    , text_allow_overlap? :
    Expr
    , text_overlap? :
    Expr
    , text_ignore_placement? :
    Expr
    , text_optional? :
    Expr
    , symbol_height_offset? :
    Expr
    , symbol_height_anchor? :
    Expr
    , visibility? :
    Expr
    ) -> Layer

    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 -.

    vector_source

    fn vector_source(url? : String, tiles? : Array[String], bounds? : Array[Double], scheme? : String, minzoom? : Double, maxzoom? : Double, attribution? : String, promote_id? :
    Json
    , volatile_? : Bool, encoding? : String) -> Source

    A vector source (https://maplibre.org/maplibre-style-spec/sources/#vector): its properties are the labelled arguments, named as the specification's in snake case.

    video_source

    fn video_source(urls~ : Array[String], coordinates~ :
    Json
    ) -> Source

    A video source (https://maplibre.org/maplibre-style-spec/sources/#video): its properties are the labelled arguments, named as the specification's in snake case.