properties: Add properties to a geojson object

Description Usage Arguments Examples

View source: R/properties.R

Description

Add properties to a geojson object

Usage

1
properties(x, style = NULL, popup = NULL)

Arguments

x

Input

style

List of color, fillColor, etc., or NULL

popup

Popup text, or NULL

Examples

1
2
3
str <- "POINT (-116.4000000000000057 45.2000000000000028)"
x <- wkt2geojson(str)
properties(x, style=list(color = "red"))

wellknown documentation built on May 29, 2017, 7:03 p.m.