Skip to contents

Attach a Registered or Inline Plugin to a glmap Map

Usage

use_plugin(
  map,
  name,
  config = list(),
  js_init = NULL,
  css = NULL,
  dependencies = NULL
)

Arguments

map

A glmap widget or glmap_proxy.

name

Name of a registered plugin (see register_plugin() and list_plugins()).

config

Named list of options merged into the plugin's default_config.

js_init

Optional ad-hoc JavaScript initialization function string if name is not pre-registered.

css

Optional ad-hoc CSS string.

dependencies

Optional list of htmltools::htmlDependency objects.