Update layer properties

set_paint_property(map, layer_id, property, value)

set_layout_property(map, layer_id, property, value)

Arguments

map

A mapboxer object.

layer_id

The ID of the layer whose property should be updated.

property

The name of the property that should be updated.

value

The new value of the property.

Functions

  • set_paint_property: Update a paint property of a layer.

  • set_layout_property: Update a layout property of a layer.