Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

properties

Add properties to a GeoJSON object


Description

Add properties to a GeoJSON object

Usage

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

Arguments

x

(list) GeoJSON as a list

style

(list) named list of color, fillColor, etc. attributes. Default: NULL

popup

(list) named list of popup values. Default: NULL

Examples

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

wellknown

Convert Between 'WKT' and 'GeoJSON'

v0.7.2
MIT + file LICENSE
Authors
Scott Chamberlain [aut, cre] (<https://orcid.org/0000-0003-1444-9135>), Os Keyes [aut] (author of code in src/)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.