styleBuilder: Interactive Style Builder

styleBuilderR Documentation

Interactive Style Builder

Description

Build a complete style with this function. The builder has the option to include mouseover effects in the style. Remember the style id that you provide as you will need it to link to features that you wish to have that style

Usage

yourkmlobj$styleBuilder()

Author(s)

Brent Cameron
Department of Fisheries and Oceans Canada
Population Ecology Division

Examples

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$styleBuilder()
ms
Y
nms
mms
Y
Hello World
green
red
Y
N
Y
purple
9
1.1
N
N
N
Y
Hello Google
red
green
Y
N
N
N
N


## End(Not run)
lat = c(44, 44.1, 44, 44.2, 44.2, 44, 44.3, 44.3, 44)
lon = c(-60, -59.9, -59.8, -60, -59.8, -60.4, -60, -59.8, -59.4)
extrude = c(0, 0, 1, 1, 1, 0, 0, 1, 0)
altitude = c(100, 80, 100, 100, 120, 500, 500, 1000, 1000)
name = c("p1","p2","p3","p4","p5","p6","p7","p8","p9")
x = cbind(lat, lon, extrude, altitude, name)
  
mykml$addPoint(x, styleUrl = "ms", description = "This is an example description applied to all points")
#mykml$preview()


brent0/kmlbuilder documentation built on Feb. 2, 2024, 2:05 a.m.