View source: R/sp_from_js_array.R
sp_from_js_array | R Documentation |
JavaScript arrays take the form of:
[[54.35221,-0.88518],[54.35237,-0.88544]]
.
sp_from_js_array(text, type = "points", projection = projection_wgs84())
text |
Character vector, file, or url containing a JavaScript array. |
type |
Spatial data type. Default is |
projection |
Projection string. |
Spatial object.
Stuart K. Grange
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.