History Options
historyOptions(
position = c("topright", "topleft", "bottomleft", "bottomright"),
maxMovesToSave = 10,
backImage = "fa fa-caret-left",
forwardImage = "fa fa-caret-right",
backText = "",
forwardText = "",
backTooltip = "Go to Previous Extent",
forwardTooltip = "Go to Next Extent",
backImageBeforeText = TRUE,
forwardImageBeforeText = FALSE,
orientation = c("horizontal", "vertical"),
shouldSaveMoveInHistory = NULL
)
Set the position of the History control. Default is
topright
.
Number of moves in the history to save before clearing out the oldest. Default value is 10, use 0 or a negative number to make unlimited.
The class for the `back` button icon. Default is
"fa fa-caret-left"
.
The class for the `forward` button icon. Default is
"fa fa-caret-right"
.
The text in the buttons. Default is ''.
The text in the buttons. Default is ''.
Tooltip content. Default is "Go to Previous Extent"
.
Tooltip content. Default is "Go to Next Extent"
.
When both text and image are present, whether to
show the image first or the text first (left to right). Default is
TRUE
When both text and image are present, whether
to show the image first or the text first (left to right). Default is
FALSE
Whether to position the buttons on top of one another or
side-by-side. Default is horizontal
A JS callback you can provide that gets called with every move. return false to not save a move.
A list of further options for addHistory
Other History Functions:
addHistory()
,
clearFuture()
,
clearHistory()
,
goBackHistory()
,
goForwardHistory()