Skip to contents

This function sets a scale bar on a Leaflet map based on the properties of a `ScaleBar` object.

Usage

# S3 method for class 'ScaleBar'
set(obj, map, ...)

Arguments

obj

An object of class `ScaleBar`.

map

A Leaflet map object.

...

Additional arguments (not used).

Value

A Leaflet map object with the scale bar added.