On this page

    Add a stretchable image to the map

    Use a stretchable image as a background for text. Stretchable images allow some parts of the image to stretch while keeping other parts, such as corners, at a constant size. Set the layout property 'icon-text-fit': 'both' to use the image as background for the text.

    An extension of MapLibre GL JS

    Was this helpful?

    SDK JS
    Examples
    Add a stretchable image to the map
    Add a stretchable image to the map