Hi Tim,
Thanks again for your response !
It fit perfectly !
Best
Ben
De : Tim Salabim
Envoyé : mardi 9 juillet 2019 16:25
À : Benjamin Pauget ; r-sig-geo
Objet : Re: [R-sig-Geo] geoJSON and leaflet
Hi Benjamin,
please respond to the list as well. Other people may have similar issues and
t
Hi Benjamin,
please respond to the list as well. Other people may have similar issues
and this way we can find the solutions online.
If you want to extract the data along with the geometries, here's how you
could do it:
library(leaflet)
library(jsonlite)
library(sf)
url <- "
http://www.georisque
Hi Benjamin,
What you get back from the jsonlite::fromJSON() call is a simplified list
with the data (including the geometry information) as a data frame in one
of the list slots. GeoJson is usually a character string. Therefore, if you
open your map in the browser and open the console (Ctrl + i) y
Hi,
I’m writting because I have some trouble with a geoJSON file and a leaflet.
I’m trying to display polygon on a leaflet map, but nothing append ☹
I have no error message.
Do you have some advice/ideas?
Best regards
Here is my code :
library(leaflet)
library(jsonlite)
url <-
"http://www.geori