Add properties to a GeoJSON object
Add properties to a GeoJSON object
properties(x, style = NULL, popup = NULL)
x |
(list) GeoJSON as a list |
style |
(list) named list of color, fillColor, etc. attributes.
Default: |
popup |
(list) named list of popup values. Default: |
str <- "POINT (-116.4000000000000057 45.2000000000000028)" x <- wkt2geojson(str) properties(x, style = list(color = "red"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.