Learn R Programming

TargomoR (version 0.2.0)

attribution: Add Targomo Attributions

Description

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

Usage

attributionFreeIframe()

attributionOtherIframe()

attributionLink()

addTargomoAttribution(map, free_plan = TRUE, ...)

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

Run this code
# NOT RUN {
# load leaflet package
library(leaflet)

# add an attribution iframe to a map
leaflet() %>%
  addTargomoAttribution(free_plan = FALSE)
# }
# NOT RUN {
# return the attribution link
attributionLink()

# }

Run the code above in your browser using DataLab