On this page

    Add a pattern to a polygon

    Use the fill-pattern feature to draw a polygon by employing a repeating image pattern. This technique allows for the creation of visually appealing shapes by using a repeated image as a fill. To implement this, refer to the layer ⇾ fill ⇾ fill-pattern section in the GL Style Specification.

    
    
    An extension of MapLibre GL JS

    Was this helpful?

    SDK JS
    Examples
    Polygon add pattern fill
    Polygon pattern fill