Skip to contents

Add an accessible floor control

Usage

addIndoorControl(
  map,
  dataset_id = "indoor",
  control_id = dataset_id,
  position = "topright",
  options = indoorControlOptions()
)

Arguments

map

A Leaflet map or proxy.

dataset_id

Indoor data set controlled by these buttons.

control_id

Unique control identifier scoped to this map.

position

One of "topleft", "topright", "bottomleft", or "bottomright".

options

Options created by indoorControlOptions().

Value

The input map or proxy.