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()

TargomoR documentation built on Dec. 7, 2019, 1:07 a.m.