set_layout_property function

Set a layout property on a map layer

Set a layout property on a map layer

set_layout_property(map, layer, name, value)

Arguments

  • map: A map object created by the mapboxgl or maplibre function, or a proxy object.
  • layer: The ID of the layer to update.
  • name: The name of the layout property to set.
  • value: The value to set the property to.

Returns

The updated map object.

  • Maintainer: Kyle Walker
  • License: MIT + file LICENSE
  • Last published: 2025-03-18