Skip to content

Instantly share code, notes, and snippets.

@jeroen
Last active January 11, 2020 11:55
Show Gist options
  • Save jeroen/0fe9e9667491804108472b3ace3cae2c to your computer and use it in GitHub Desktop.
Save jeroen/0fe9e9667491804108472b3ace3cae2c to your computer and use it in GitHub Desktop.
library(V8)
library(mapview)
library(geojsonsf)
ct$source("https://cdn.jsdelivr.net/npm/[email protected]/dist/flatgeobuf-geojson.min.js")
ct$source("https://cdn.jsdelivr.net/npm/[email protected]/lib/encoding.min.js")
json = sf_geojson(franconia)
ct$call('flatgeobuf.serialize', JS(json))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment