attribution: Add Targomo Attributions

Description Usage Arguments Value Examples

Description

Functions providing link to Targomo Attributions page, depending on plan.

Usage

1
2
3
4
5
6
7

Arguments

map

A leaflet map

free_plan

Logical - is the Targomo plan you're using free or paid?

...

Further arguments to pass to leaflet::addControl e.g. position

Value

A link or iframe to the attributions page.

Examples

1
2
3
4
5
6
7
8
9
# load leaflet package
library(leaflet)

# add an attribution iframe to a map
leaflet() %>%
  addTargomoAttribution(free_plan = FALSE)

# return the attribution link
attributionLink()

cwthom/TargomoR documentation built on Dec. 24, 2019, 7:02 p.m.