interactiveIconStyle | R Documentation |
This function is usually automatically entered by calling yourkmlobj$styleBuilder(). However it can be called on its own, but you must supply an id.
interactiveIconStyle(id)
id |
Mandatory. Define the id for this style. This id can be the same as other non-icon style ids previously created. |
id
Do not attempt to define more than one IconStyle for the same id.
Brent Cameron
Department of Fisheries and Oceans Canada
Population Ecology Division
mykml = RKmlObject()
##ANSWER THE QUESTIONS. For this example the answers are supplied below. Typically the questions
##will be answered on the fly.
## Not run:
mykml$interactiveIconStyle(id = "mystyle")
upload.wikimedia.org/wikipedia/commons/c/c1/Rlogo.png
2
180
Y
red
N
fraction
.5
fraction
.5
## End(Not run)
x = data.frame(cbind(c(45.9178, 46.807), c(-59.967, -60.321), c("Example1", "Example2"), c("Louisbourg", "Neil's Harbour" )))
names(x) = c("lat", "lon", "name", "description")
mykml$addPoint(x, styleUrl = "mystyle")
#mykml$preview()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.