addTitle | R Documentation |
Function for creating a h1 title to the leaflet
addTitle(object, text, color = "black", fontSize = "20px",
fontFamily = "Sans", leftPosition = 50, topPosition = 2)
object |
an leaflet object |
text |
content of the title |
color |
title color, default: 'black' |
fontSize |
font size for the title default: '20px' |
fontFamily |
font family for the title, default: 'Sans' |
leftPosition |
the percent of the title postition to left, default: 50 |
topPosition |
the percent of the title postition to top, default:2 |
demomap('china') %>% addTitle("Hello World")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.