lstyle: Define styles for map layers

Description Usage Arguments Details Value Author(s) Examples

View source: R/lstyle.R

Description

Create and manipulate style (colors, markers, outlines etc) for map layers.

Usage

1
2
3
4
lstyle(...)
## S3 method for class 'lstyle'
print(x,...)
OLStyle(x)

Arguments

...

Named style parameters, as documented in the OpenLayers documentation - or see the source code (just type 'lstyle' at the R prompt) for valid names.

x

A layer style object as returned by lstyle()

Details

Map layers are styles using layer styles.

Value

lstyle returns a list with the style names and values. The names are checked for correctness.

OLStyle returns a chunk of Javascript for using a layer style in OpenLayers. It's not really a user-level function.

Author(s)

Barry Rowlingson

Examples

1
2
3
4
l1 = lstyle()
l2 = lstyle(fillColor="red", fillOpacity="0.5")
l3 = lstyle(pointRadius="${size}")
OLStyle(l3)

webmaps documentation built on May 31, 2017, 2:24 a.m.