Create a list of further options for the easyprint plugin.
easyprintOptions(
title = "Print map",
position = "topleft",
sizeModes = list("A4Portrait", "A4Landscape", "Current"),
defaultSizeTitles = NULL,
exportOnly = FALSE,
tileLayer = NULL,
tileWait = 500,
filename = "map",
hidden = FALSE,
hideControlContainer = TRUE,
hideClasses = list(),
customWindowTitle = NULL,
spinnerBgColor = "#0DC5C1",
customSpinnerClass = "epLoader"
)
Sets the text which appears as the tooltip of the print/export button
Positions the print button
Options available include CurrentSize
, A4Portrait
,
A4Landscape
or a custom size object
Button tooltips for the default page sizes
If set to TRUE
the map is exported to a .png file
A tile layer that you can wait for to draw (helpful when resizing)
How long to wait for the tiles to draw (helpful when resizing)
Name of the file if exportOnly
option is TRUE
Set to TRUE
if you don't want to display the toolbar.
Instead you can create your own buttons or fire print events programmatically.
Hides the leaflet controls like the zoom buttons and the attribution on the print out
Hides classes on the print out. Use a list of strings as follow : list('div1', 'div2')
A title for the print window which will get added the printed paper
A valid css colour for the spinner background color
A class for a custom css spinner to use while waiting for the print.
A list of options for the 'easyprint' control
Other EasyPrint Functions:
addEasyprint()
,
easyprintMap()
,
removeEasyprint()