Skip to contents

Update the unit of an existing scale control

Usage

set_scale_control_unit(
  proxy,
  id = "scale_control",
  unit = c("metric", "imperial", "nautical")
)

Arguments

proxy

The map proxy object created by mapProxy().

id

Unique identifier of the scale control to update. Default is "scale_control".

unit

Unit of measurement to display. One of "metric", "imperial", or "nautical".

Value

The map proxy object for chaining.